shithub: m8c

ref: aa596c75ac5664401c25835c046d7ae7e1be81e1
dir: /src/common.h/

View raw version
#ifndef COMMON_H_
#define COMMON_H_
#include "config.h"

enum app_state { QUIT, INITIALIZE, WAIT_FOR_DEVICE, RUN };

struct app_context {
    config_params_s conf;
    enum app_state app_state;
    char *preferred_device;
    unsigned char device_connected;
    unsigned char app_suspended;
  };
  
#endif