- Timestamp:
- 2010-03-27T17:36:47Z (15 years ago)
- Branches:
- master
- Children:
- 74f1cde
- Parents:
- 2f53ada
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
irc.h
r2f53ada r280c56a 107 107 108 108 //struct user *b; 109 110 const struct irc_user_funcs *f; 109 111 } irc_user_t; 112 113 struct irc_user_funcs 114 { 115 gboolean (*privmsg)( irc_user_t *iu, const char *msg ); 116 }; 117 118 extern const struct irc_user_funcs irc_user_root_funcs; 119 extern const struct irc_user_funcs irc_user_self_funcs; 110 120 111 121 typedef enum … … 117 127 { 118 128 irc_t *irc; 129 char *name; 130 char mode[8]; 119 131 int flags; 120 char *name;132 121 133 char *topic; 122 134 char *topic_who; 123 135 time_t topic_time; 124 char mode[8];136 125 137 GSList *users; 126 138 struct set *set; 139 140 const struct irc_channel_funcs *f; 127 141 } irc_channel_t; 142 143 struct irc_channel_funcs 144 { 145 gboolean (*privmsg)( irc_channel_t *iu, const char *msg ); 146 }; 128 147 129 148 #include "user.h" … … 175 194 irc_user_t *irc_user_new( irc_t *irc, const char *nick ); 176 195 int irc_user_free( irc_t *irc, const char *nick ); 177 irc_user_t *irc_user_ find( irc_t *irc, const char *nick );196 irc_user_t *irc_user_by_name( irc_t *irc, const char *nick ); 178 197 int irc_user_rename( irc_t *irc, const char *old, const char *new ); 179 198 gint irc_user_cmp( gconstpointer a_, gconstpointer b_ );
Note: See TracChangeset
for help on using the changeset viewer.