root/lib/event-types.h

/* [previous][next][first][last][top][bottom][index][help]  */

INCLUDED FROM


   1 #ifndef MC__EVENT_TYPES_H
   2 #define MC__EVENT_TYPES_H
   3 
   4 #include <stdarg.h>
   5 
   6 /*** typedefs(not structures) and defined constants **********************************************/
   7 
   8 /* Event groups for main modules */
   9 #define MCEVENT_GROUP_CORE "Core"
  10 #define MCEVENT_GROUP_DIALOG "Dialog"
  11 #define MCEVENT_GROUP_DIFFVIEWER "DiffViewer"
  12 #define MCEVENT_GROUP_EDITOR "Editor"
  13 #define MCEVENT_GROUP_FILEMANAGER "FileManager"
  14 #define MCEVENT_GROUP_VIEWER "Viewer"
  15 
  16 /* Events */
  17 #define MCEVENT_HISTORY_LOAD "history_load"
  18 #define MCEVENT_HISTORY_SAVE "history_save"
  19 
  20 /*** enums ***************************************************************************************/
  21 
  22 /*** structures declarations (and typedefs of structures)*****************************************/
  23 
  24 /* MCEVENT_GROUP_CORE:vfs_timestamp */
  25 struct vfs_class;
  26 typedef struct
  27 {
  28     struct vfs_class *vclass;
  29     gpointer id;
  30     gboolean ret;
  31 } ev_vfs_stamp_create_t;
  32 
  33 /* MCEVENT_GROUP_CORE:vfs_print_message */
  34 typedef struct
  35 {
  36     char *msg;
  37 } ev_vfs_print_message_t;
  38 
  39 /* MCEVENT_GROUP_CORE:clipboard_text_from_file */
  40 typedef struct
  41 {
  42     char **text;
  43     gboolean ret;
  44 } ev_clipboard_text_from_file_t;
  45 
  46 /* MCEVENT_GROUP_CORE:help */
  47 typedef struct
  48 {
  49     const char *filename;
  50     const char *node;
  51 } ev_help_t;
  52 
  53 /* MCEVENT_GROUP_CORE:background_parent_call */
  54 /* MCEVENT_GROUP_CORE:background_parent_call_string */
  55 typedef struct
  56 {
  57     void *routine;
  58     gpointer *ctx;
  59     int argc;
  60     va_list ap;
  61     union
  62     {
  63         int i;
  64         char *s;
  65     } ret;
  66 } ev_background_parent_call_t;
  67 
  68 /* MCEVENT_GROUP_DIALOG:history_load */
  69 /* MCEVENT_GROUP_DIALOG:history_save */
  70 struct mc_config_t;
  71 struct Widget;
  72 typedef struct
  73 {
  74     struct mc_config_t *cfg;
  75     struct Widget *receiver;    /* NULL means broadcast message */
  76 } ev_history_load_save_t;
  77 
  78 /*** global variables defined in .c file *********************************************************/
  79 
  80 /*** declarations of public functions ************************************************************/
  81 
  82 /*** inline functions ****************************************************************************/
  83 
  84 #endif /* MC__EVENT_TYPES_H */

/* [previous][next][first][last][top][bottom][index][help]  */