comparison data-provider.h @ 239:ec81395bf08d

Solve name collisions and other problems caused by including Windows headers
author Daniele Nicolodi <daniele.nicolodi@obspm.fr>
date Thu, 12 Feb 2015 19:13:55 +0100
parents 6ccc428c412a
children
comparison
equal deleted inserted replaced
238:78fdba868884 239:ec81395bf08d
7 extern int acquiring; 7 extern int acquiring;
8 8
9 /* data queue */ 9 /* data queue */
10 extern CmtTSQHandle dataQueue; 10 extern CmtTSQHandle dataQueue;
11 11
12 /* callback receiving messages in the main thread */
13 void CVICALLBACK MessageCB (void *callbackData);
14
15 /* number of data channels */ 12 /* number of data channels */
16 #define NCHAN 8 13 #define NCHAN 8
17 14
18 /* data acquisition event */ 15 /* data acquisition event */
19 struct event { 16 struct event {
20 struct timeval time; 17 struct timeval time;
21 double data[NCHAN]; 18 double data[NCHAN];
22 }; 19 };
23 20
24 /* send messages to the main thread */ 21 /* send messages to the main thread */
25 void SendMessage(int threadId, const char *frmt, ...); 22 void send_message(int threadid, const char *frmt, ...);
26 23
27 /* data providers */ 24 /* data providers */
28 int CVICALLBACK FakeDataProvider (void *functionData); 25 int CVICALLBACK FakeDataProvider (void *functionData);
29 int CVICALLBACK FileDataProvider (void *functionData); 26 int CVICALLBACK FileDataProvider (void *functionData);
30 int CVICALLBACK KKDataProvider (void *functionData); 27 int CVICALLBACK KKDataProvider (void *functionData);