home *** CD-ROM | disk | FTP | other *** search
/ Amiga Plus 2000 #5 / Amiga Plus CD - 2000 - No. 5.iso / Tools / Musik / Misc / Amster / Source / include / chat.h < prev    next >
Encoding:
C/C++ Source or Header  |  2000-01-01  |  976 b   |  52 lines

  1. /*
  2. ** Chat Window Class Header
  3. */
  4.  
  5. #include <sys/types.h>
  6.  
  7. #include "include/mui.h"
  8.  
  9. #ifndef AMSTER_CHAT_H
  10. #define AMSTER_CHAT_H
  11.  
  12. typedef struct channel_struct {
  13.     struct channel_struct *next;
  14.     int joinflag;
  15.     char *name;
  16.     u_long *win;
  17. } *channel, _channel;
  18.  
  19. struct chatdata {
  20.     _channel chn;
  21.     u_long *rect,*chantxt,*topicstr;
  22.     u_long *msglist,*userlist;
  23.     u_long *msgstr;
  24. };
  25.  
  26. struct ChannelUserData {
  27.     char *Name;
  28.     int Shares;
  29.     int Link;
  30. };
  31.  
  32. /* Global variables */
  33.  
  34. extern channel chat_chans;
  35.  
  36. /* Global prototypes */
  37.  
  38. MUIF chat_dispatch(REG(a0) struct IClass *cl,REG(a2) Object *obj,REG(a1) Msg msg);
  39. extern channel chat_findchan(char *name);
  40.  
  41. #define CHAT_COMMAND       0x9001
  42. #define CHAT_JOINCHANNEL   0x9005
  43. #define CHAT_JOINACK       0x9010
  44. #define CHAT_PUBLICMSGRECV 0x9011
  45. #define CHAT_JOINMSG       0x9012
  46. #define CHAT_CHANNELTOPIC  0x9013
  47. #define CHAT_USERPART      0x9014
  48. #define CHAT_CHANNELPART   0x9015
  49. #define CHAT_USERLIST      0x9016
  50.  
  51. #endif    /* AMSTER_CHAT_H */
  52.