Annotation of rpl/modules/motif/motif.h, revision 1.4

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.4     ! bertrand   18: declareStructure
        !            19:    struct_processus    *status;
        !            20:    struct_objet        *callback;
        !            21:    Widget              widget;
        !            22: as(sXtCallback)
1.1       bertrand   23: 
                     24: #ifdef __RPLC_MAIN
1.3       bertrand   25: #  define  __MUTEX_INITIALIZER = PTHREAD_MUTEX_INITIALIZER
                     26: #  define  __RPLSO_EXTERN__
1.1       bertrand   27: #else
1.3       bertrand   28: #  define  __MUTEX_INITIALIZER
                     29: #  define  __RPLSO_EXTERN__    extern
1.1       bertrand   30: #endif
                     31: 
1.3       bertrand   32: __RPLSO_EXTERN__ volatile logical      exitMainLoop;
                     33: __RPLSO_EXTERN__ volatile logical      initializationDone;
                     34: __RPLSO_EXTERN__ pthread_mutex_t       callbackMutex __MUTEX_INITIALIZER;
1.4     ! bertrand   35: __RPLSO_EXTERN__ struct_liste_chainee  *lCallbacks;
1.3       bertrand   36: 
1.1       bertrand   37: #include "variables.h"
                     38: 
1.2       bertrand   39: int usleep(useconds_t usec);
1.1       bertrand   40: 
1.3       bertrand   41: logical1 evaluation(struct_processus *, struct_objet *, unsigned char);
                     42: 
                     43: void rplCallback(Widget x_objet, XtPointer argument, XtPointer call);
                     44: 
1.1       bertrand   45: // vim: ts=4

CVSweb interface <joel.bertrand@systella.fr>