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