1: #include <pthread.h>
2:
3: enum types { WIDGET, APPCONTEXT };
4:
5: #ifdef string
6: # undef string
7: #endif
8:
9: #include "Xm/XmAll.h"
10:
11: #define string char *
12:
13: declareStructure
14: XtAppContext context;
15: Widget widget;
16: as(sXtAppContext)
17:
18: declarePersistantObject(callbacksList);
19:
20: #ifdef __RPLC_MAIN
21: # define __MUTEX_INITIALIZER = PTHREAD_MUTEX_INITIALIZER
22: # define __RPLSO_EXTERN__
23: #else
24: # define __MUTEX_INITIALIZER
25: # define __RPLSO_EXTERN__ extern
26: #endif
27:
28: __RPLSO_EXTERN__ volatile logical exitMainLoop;
29: __RPLSO_EXTERN__ volatile logical initializationDone;
30: __RPLSO_EXTERN__ pthread_mutex_t callbackMutex __MUTEX_INITIALIZER;
31:
32: #include "variables.h"
33:
34: int usleep(useconds_t usec);
35:
36: logical1 evaluation(struct_processus *, struct_objet *, unsigned char);
37:
38: void rplCallback(Widget x_objet, XtPointer argument, XtPointer call);
39:
40: // vim: ts=4
CVSweb interface <joel.bertrand@systella.fr>