comparison src/prpl.h @ 10160:7a75a264ac20

[gaim-migrate @ 11243] I forgot to commit this a few days ago. It's just some comments. committer: Tailor Script <tailor@pidgin.im>
author Mark Doliner <mark@kingant.net>
date Mon, 08 Nov 2004 00:07:14 +0000
parents 60db14d54914
children 17c3fc112410
comparison
equal deleted inserted replaced
10159:952fb08c60b0 10160:7a75a264ac20
158 158
159 /** 159 /**
160 * A protocol plugin information structure. 160 * A protocol plugin information structure.
161 * 161 *
162 * Every protocol plugin initializes this structure. It is the gateway 162 * Every protocol plugin initializes this structure. It is the gateway
163 * between gaim and the protocol plugin. 163 * between gaim and the protocol plugin. Many of this callbacks can be
164 * NULL. If a callback must be implemented, it has a comment indicated so.
164 */ 165 */
165 struct _GaimPluginProtocolInfo 166 struct _GaimPluginProtocolInfo
166 { 167 {
167 GaimProtocolOptions options; /**< Protocol options. */ 168 GaimProtocolOptions options; /**< Protocol options. */
168 169
169 GList *user_splits; /* A GList of GaimAccountUserSplit */ 170 GList *user_splits; /* A GList of GaimAccountUserSplit */
170 GList *protocol_options; /* A GList of GaimAccountOption */ 171 GList *protocol_options; /* A GList of GaimAccountOption */
171 172
172 GaimBuddyIconSpec icon_spec; /* The icon spec. */ 173 GaimBuddyIconSpec icon_spec; /* The icon spec. */
173 174
174 /** 175 /**
175 * Returns the base icon name for the given buddy and account. 176 * Returns the base icon name for the given buddy and account.
176 * If buddy is NULL, it will return the name to use for the account's icon 177 * If buddy is NULL, it will return the name to use for the account's
178 * icon. This must be implemented.
177 */ 179 */
178 const char *(*list_icon)(GaimAccount *account, GaimBuddy *buddy); 180 const char *(*list_icon)(GaimAccount *account, GaimBuddy *buddy);
179 181
180 /** 182 /**
181 * Fills the four char**'s with string identifiers for "emblems" 183 * Fills the four char**'s with string identifiers for "emblems"
200 GList *(*blist_node_menu)(GaimBlistNode *node); 202 GList *(*blist_node_menu)(GaimBlistNode *node);
201 GList *(*chat_info)(GaimConnection *); 203 GList *(*chat_info)(GaimConnection *);
202 GHashTable *(*chat_info_defaults)(GaimConnection *, const char *chat_name); 204 GHashTable *(*chat_info_defaults)(GaimConnection *, const char *chat_name);
203 205
204 /* All the server-related functions */ 206 /* All the server-related functions */
207
208 /** This must be implemented. */
205 void (*login)(GaimAccount *); 209 void (*login)(GaimAccount *);
210
211 /** This must be implemented. */
206 void (*close)(GaimConnection *); 212 void (*close)(GaimConnection *);
207 int (*send_im)(GaimConnection *, const char *who, 213 int (*send_im)(GaimConnection *, const char *who,
208 const char *message, 214 const char *message,
209 GaimConvImFlags flags); 215 GaimConvImFlags flags);
210 void (*set_info)(GaimConnection *, const char *info); 216 void (*set_info)(GaimConnection *, const char *info);