File:  [local] / rpl / modules / motif / motif.h
Revision 1.4: download - view: text, annotated - select for diffs - revision graph
Tue Jul 11 16:04:53 2017 UTC (6 years, 10 months ago) by bertrand
Branches: MAIN
CVS tags: HEAD
Patches pour modules/motif.

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

CVSweb interface <joel.bertrand@systella.fr>