home *** CD-ROM | disk | FTP | other *** search
/ BCI NET 2 / BCI NET 2.iso / archives / programming / languages / fpl-v115.lha / FPL / debug / Debugmail.h < prev    next >
Encoding:
C/C++ Source or Header  |  1994-08-04  |  1.4 KB  |  44 lines

  1.  
  2. #define MSGPORT_NAME "FPL_debug" /* message port name */
  3.  
  4. /* flag defines coming up */
  5. typedef enum {
  6.   MAIL_STRING=0, /* data points to a zero terminated string */
  7.   MAIL_FUNCTION, /* data points to the name of the fpl.library
  8.             function just invoked (should be an ID number instead) */
  9.   MAIL_START,    /* *NO* data, just intialized a new FPL session */
  10.   MAIL_EXIT,     /* *NO* data, just exited an FPL session */
  11.   MAIL_HIDE,     /* data is which mail subject that should be hidden */
  12.   MAIL_SHOW,     /* data is which mail subject that should be shown */
  13.  
  14.   MAIL_EXITALL,     /* *NO* data, FPLdb should quit! */
  15.   MAIL_EXECUTE,  /* *NO* data, output current line! */
  16.  
  17.   NO_OF_SUBJECTS /* NO SUBJECT */
  18. } MailSubj;
  19.  
  20. /*
  21.  *  Return codes from the debugger!
  22.  */
  23.  
  24. typedef enum {
  25.   FPLDB_OK,
  26.   FPLDB_CANT_IGNORE,    /* can't ignore a function */
  27.   FPLDB_NOTFOUND,    /* didn't find the parameter */
  28.   FPLDB_RESOURCE,    /* failed to get resource */
  29.   FPLDB_NOTALIVE,    /* FPLdb is not alive! */
  30.   FPLDB_FULL,        /* FPLdb is full! No more debugging allowed! */
  31.  
  32.   NO_OF_RETCODES    /* LAST CODE */
  33. } DebugRet;
  34.  
  35. struct Messy {
  36.   struct Message mess;
  37.   struct Data *scr; /* the *universe* */
  38.   MailSubj flag; /* message subject */
  39.   long prio;     /* 0 - most important, MAX_INT - least important! */
  40.   void *data;     /* custom data, read 'flag' to find what kind */
  41.   DebugRet ret;  /* result from the debugger */
  42. };
  43.  
  44.