File:  [local] / rpl / modules / motif / motif.h
Revision 1.6: download - view: text, annotated - select for diffs - revision graph
Wed Aug 23 12:21:59 2017 UTC (6 years, 8 months ago) by bertrand
Branches: MAIN
CVS tags: rpl-4_1_35, rpl-4_1_34, rpl-4_1_33, rpl-4_1_32, rpl-4_1_31, rpl-4_1_30, rpl-4_1_29, rpl-4_1_28, HEAD
Ajout de XmSetIcon.

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

CVSweb interface <joel.bertrand@systella.fr>