Annotation of rpl/modules/motif/motif.h, revision 1.6
1.1 bertrand 1: #include <pthread.h>
2:
1.5 bertrand 3: enum types { APPCONTEXT, CALLBACK, WIDGET };
1.3 bertrand 4:
1.1 bertrand 5: #ifdef string
6: # undef string
7: #endif
8:
1.3 bertrand 9: #include "Xm/XmAll.h"
1.6 ! bertrand 10: #include "X11/xpm.h"
1.1 bertrand 11:
1.3 bertrand 12: #define string char *
1.1 bertrand 13:
14: declareStructure
1.2 bertrand 15: XtAppContext context;
16: Widget widget;
17: as(sXtAppContext)
18:
1.4 bertrand 19: declareStructure
20: struct_processus *status;
21: struct_objet *callback;
22: Widget widget;
23: as(sXtCallback)
1.1 bertrand 24:
25: #ifdef __RPLC_MAIN
1.3 bertrand 26: # define __MUTEX_INITIALIZER = PTHREAD_MUTEX_INITIALIZER
27: # define __RPLSO_EXTERN__
1.1 bertrand 28: #else
1.3 bertrand 29: # define __MUTEX_INITIALIZER
30: # define __RPLSO_EXTERN__ extern
1.1 bertrand 31: #endif
32:
1.3 bertrand 33: __RPLSO_EXTERN__ volatile logical exitMainLoop;
34: __RPLSO_EXTERN__ volatile logical initializationDone;
35: __RPLSO_EXTERN__ pthread_mutex_t callbackMutex __MUTEX_INITIALIZER;
1.4 bertrand 36: __RPLSO_EXTERN__ struct_liste_chainee *lCallbacks;
1.3 bertrand 37:
1.1 bertrand 38: #include "variables.h"
39:
1.2 bertrand 40: int usleep(useconds_t usec);
1.1 bertrand 41:
1.3 bertrand 42: logical1 evaluation(struct_processus *, struct_objet *, unsigned char);
43:
44: void rplCallback(Widget x_objet, XtPointer argument, XtPointer call);
45:
1.1 bertrand 46: // vim: ts=4
CVSweb interface <joel.bertrand@systella.fr>