home *** CD-ROM | disk | FTP | other *** search
/ Dream 52 / Amiga_Dream_52.iso / Linux / Divers / yagirc-0.51.tar.gz / yagirc-0.51.tar / yagirc-0.51 / no_ui.h < prev    next >
C/C++ Source or Header  |  1998-05-06  |  2KB  |  80 lines

  1. #include "data.h"
  2.  
  3. #ifndef __TEXTUI_H
  4. #define __TEXTUI_H
  5.  
  6. /* Input functions */
  7. typedef void (*GUI_INPUT_FUNC)(void *);
  8. #define GUI_INPUT_READ 1
  9. #define GUI_INPUT_WRITE 2
  10. int gui_input_add(int fh, int mode, GUI_INPUT_FUNC func, void *data);
  11. void gui_input_remove(int tag);
  12.  
  13. /* Timeout functions */
  14. typedef void (*GUI_TIMEOUT_FUNC)(void *);
  15.  
  16. int gui_timeout_new(int ms, GUI_TIMEOUT_FUNC func, void *data);
  17. void gui_timeout_remove(int tag);
  18.  
  19. typedef void GUI_WINDOW_REC;
  20. typedef void GUI_CHAN_REC;
  21. typedef void GUI_DCC_REC;
  22.  
  23. enum
  24. {
  25.     NOCOLOR,
  26.     BLACK,
  27.     BLUE,
  28.     GREEN,
  29.     CYAN,
  30.     RED,
  31.     MAGENTA,
  32.     YELLOW,
  33.     WHITE,
  34.     BBLACK,
  35.     BBLUE,
  36.     BGREEN,
  37.     BCYAN,
  38.     BRED,
  39.     BMAGENTA,
  40.     BYELLOW,
  41.     BWHITE,
  42.     COLORS
  43. };
  44.  
  45. #define DEFAULT_COLOR WHITE
  46.  
  47. /* Initialize IRC window */
  48. void gui_window_init(WINDOW_REC *win, WINDOW_REC *parent);
  49.  
  50. /* Deinitialize IRC window */
  51. void gui_window_deinit(WINDOW_REC *win);
  52.  
  53. /* IRC channel/window changed, update everything you can think of.. */
  54. void gui_window_update(WINDOW_REC *win);
  55.  
  56. /* Change focus to specified window */
  57. void gui_window_select(WINDOW_REC *win);
  58.  
  59. /* Quit program requested */
  60. void gui_exit(void);
  61.  
  62. /* Inform GUI what connection state we are in - 0 = disconnected, 1 = socket
  63.    connected, 2 = IRC server ready */
  64. void gui_connected(SERVER_REC *serv, int state);
  65.  
  66. /* Someone in notify list joined IRC */
  67. void gui_notify_join(char *nick);
  68. /* Someone in notify list left IRC */
  69. void gui_notify_part(char *nick);
  70.  
  71. /* Update status bar */
  72. void gui_update_statusbar(WINDOW_REC *win);
  73.  
  74. #include "gui_dcc.h"
  75. #include "gui_setup.h"
  76. #include "gui_channels.h"
  77. #include "gui_nicklist.h"
  78.  
  79. #endif
  80.