Tipro API
Communicate with Tipro devices
globals.h
1 // globals.h :
3 // Global variables
4 //
5 
6 #ifndef global_h
7  #define global_h
8 
9  #ifdef global_cpp
10  #define EXTERN
11  #define DATA(x) = x
12  #else
13  #define EXTERN extern
14  #define DATA(x)
15  #endif
16 
17  // TODO: It might be nice to add list of connected tipro devices as global variable
18  // to speed-up switching between different controllers. Keep in mind
19  // that device can be disconnected while API calls in progress.
20  // Ref.fn: DetectTiproDevice / SelectTiproDevice
21  // Ref.task: #126
22 
23 //20190710 EXTERN CTiproHid g_hidTiproDevice;
24  EXTERN int g_nNumOfDetectedDevices;
25 //20190712 EXTERN TiproBus g_TiproBus;
26 
27  /* Telephony devices */
28 //20190710 EXTERN std::vector <CTiproTelephonyHid> g_vTiproTelephonyDevices;
29 
30  #undef EXTERN
31  #undef DATA
32 #endif