home *** CD-ROM | disk | FTP | other *** search
/ The Fred Fish Collection 1.5 / ffcollection-1-5-1992-11.iso / ff_disks / 200-299 / ff225.lzh / MyMenu / MyMenu.h < prev    next >
C/C++ Source or Header  |  1989-06-24  |  1KB  |  51 lines

  1. /* Copyright ) Darin Johnson, 1989 */
  2.  
  3. #define VERSION "MyMenu v1.0"
  4.  
  5. #define MYMENU_NAME "MyMenu"
  6. #define WBPORT_NAME "MyMenu-WBPort"
  7.  
  8. #define DO_WB
  9. /* #define DO_PATH    - not working yet */
  10. /* #define DO_AREXX     - future plans... */
  11.  
  12. #define SEPARATE 32    /* distance between menus */
  13. #define STACK 4096    /* 2048 is too small */
  14.  
  15. struct ext_MenuItem {
  16.   struct MenuItem MenuItem;
  17.   struct ext_MenuItem *next_item;
  18.   ULONG id;
  19.   char *cmd;
  20.   char *args;
  21.   char type;
  22. };
  23.  
  24. struct Path {
  25.   struct Path *path_Next;
  26.   struct FileLock *path_Lock;
  27. };
  28.  
  29. /* would declare whole thing 'volatile' if allowed */
  30. struct MMData {
  31.   struct MsgPort port;
  32.   struct ext_MenuItem *item_list;
  33.   struct Menu *my_menu, *prev_menu, *WBMenu;
  34.   struct Window *WBWindow;
  35.   struct Task *handler_task, *parent_task;
  36.   USHORT parent_sig, handler_sig;
  37.   char error_code;
  38.   struct Segment *segment;
  39.   struct Path *CLI_path;        /* copy of CLI path */
  40. };
  41.  
  42. extern struct MMData *MM;
  43. extern struct ext_MenuItem *add_menu();
  44.  
  45. /* error codes */
  46. #define ERR_OK        0
  47. #define ERR_LIB        1
  48. #define ERR_WIN        2
  49. #define ERR_MON        3
  50. #define ERR_WB_OPEN    4
  51.