- Timestamp:
- 2010-03-27T02:39:08Z (14 years ago)
- Branches:
- master
- Children:
- b9e020a
- Parents:
- ebaebfe
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
irc.h
rebaebfe r4be8239 73 73 struct account *accounts; 74 74 GSList *file_transfers; 75 struct chat *chatrooms;76 75 77 GSList *users ;76 GSList *users, *channels; 78 77 GHashTable *nick_user_hash; 79 78 GHashTable *watches; … … 106 105 } irc_user_t; 107 106 107 typedef enum 108 { 109 IRC_CHANNEL_JOINED = 1, 110 } irc_channel_flags_t; 111 112 typedef struct irc_channel 113 { 114 irc_t *irc; 115 int flags; 116 char *name; 117 char *topic; 118 char mode[8]; 119 GSList *users; 120 struct set *set; 121 } irc_channel_t; 122 108 123 #include "user.h" 109 124 … … 125 140 int irc_check_login( irc_t *irc ); 126 141 142 /* irc_channel.c */ 143 irc_channel_t *irc_channel_new( irc_t *irc, const char *name ); 144 int irc_channel_add_user( irc_channel_t *ic, irc_user_t *iu ); 145 int irc_channel_del_user( irc_channel_t *ic, irc_user_t *iu ); 146 int irc_channel_set_topic( irc_channel_t *ic, const char *topic ); 147 127 148 /* irc_commands.c */ 128 149 void irc_exec( irc_t *irc, char **cmd ); … … 132 153 void irc_send_login( irc_t *irc ); 133 154 void irc_send_motd( irc_t *irc ); 134 int irc_usermsg( irc_t *irc, char *format, ... ); 155 void irc_usermsg( irc_t *irc, char *format, ... ); 156 void irc_send_join( irc_channel_t *ic, irc_user_t *iu ); 157 void irc_send_part( irc_channel_t *ic, irc_user_t *iu, const char *reason ); 158 void irc_send_names( irc_channel_t *ic ); 159 void irc_send_topic( irc_channel_t *ic ); 135 160 136 161 /* irc_user.c */
Note: See TracChangeset
for help on using the changeset viewer.