ref: bd6f0231604a570b72d9468fcf7e65a2ebd284db
dir: /src/common.h/
#ifndef COMMON_H_
#define COMMON_H_
#include "config.h"
// On MacOS TARGET_OS_IOS is defined as 0, so make sure that it's consistent on other platforms as
// well
#ifndef TARGET_OS_IOS
#define TARGET_OS_IOS 0
#endif
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