comparison libpurple/prpl.h @ 19337:6d94101c7d22

propagate from branch 'im.pidgin.pidgin' (head 671cfe949215447db0da7081a7e1501693ab4f98) to branch 'im.pidgin.soc.2007.msimprpl' (head 3d41b5ffa5690ba5da2becdd342bcb118df639b6)
author Jeffrey Connelly <jaconnel@calpoly.edu>
date Mon, 20 Aug 2007 02:59:38 +0000
parents 6ea5602643ea f12bf92d64ec
children
comparison
equal deleted inserted replaced
19257:7c33cea7d21d 19337:6d94101c7d22
175 */ 175 */
176 struct _PurplePluginProtocolInfo 176 struct _PurplePluginProtocolInfo
177 { 177 {
178 PurpleProtocolOptions options; /**< Protocol options. */ 178 PurpleProtocolOptions options; /**< Protocol options. */
179 179
180 GList *user_splits; /* A GList of PurpleAccountUserSplit */ 180 GList *user_splits; /**< A GList of PurpleAccountUserSplit */
181 GList *protocol_options; /* A GList of PurpleAccountOption */ 181 GList *protocol_options; /**< A GList of PurpleAccountOption */
182 182
183 PurpleBuddyIconSpec icon_spec; /* The icon spec. */ 183 PurpleBuddyIconSpec icon_spec; /**< The icon spec. */
184 184
185 /** 185 /**
186 * Returns the base icon name for the given buddy and account. 186 * Returns the base icon name for the given buddy and account.
187 * If buddy is NULL and the account is non-NULL, it will return the 187 * If buddy is NULL and the account is non-NULL, it will return the
188 * name to use for the account's icon. If both are NULL, it will 188 * name to use for the account's icon. If both are NULL, it will
266 void (*chat_whisper)(PurpleConnection *, int id, 266 void (*chat_whisper)(PurpleConnection *, int id,
267 const char *who, const char *message); 267 const char *who, const char *message);
268 int (*chat_send)(PurpleConnection *, int id, const char *message, PurpleMessageFlags flags); 268 int (*chat_send)(PurpleConnection *, int id, const char *message, PurpleMessageFlags flags);
269 void (*keepalive)(PurpleConnection *); 269 void (*keepalive)(PurpleConnection *);
270 270
271 /* new user registration */ 271 /** new user registration */
272 void (*register_user)(PurpleAccount *); 272 void (*register_user)(PurpleAccount *);
273 273
274 /* get "chat buddy" info and away message */ 274 /* get "chat buddy" info and away message */
275 void (*get_cb_info)(PurpleConnection *, int, const char *who); 275 void (*get_cb_info)(PurpleConnection *, int, const char *who);
276 void (*get_cb_away)(PurpleConnection *, int, const char *who); 276 void (*get_cb_away)(PurpleConnection *, int, const char *who);
277 277
278 /* save/store buddy's alias on server list/roster */ 278 /** save/store buddy's alias on server list/roster */
279 void (*alias_buddy)(PurpleConnection *, const char *who, 279 void (*alias_buddy)(PurpleConnection *, const char *who,
280 const char *alias); 280 const char *alias);
281 281
282 /* change a buddy's group on a server list/roster */ 282 /** change a buddy's group on a server list/roster */
283 void (*group_buddy)(PurpleConnection *, const char *who, 283 void (*group_buddy)(PurpleConnection *, const char *who,
284 const char *old_group, const char *new_group); 284 const char *old_group, const char *new_group);
285 285
286 /* rename a group on a server list/roster */ 286 /** rename a group on a server list/roster */
287 void (*rename_group)(PurpleConnection *, const char *old_name, 287 void (*rename_group)(PurpleConnection *, const char *old_name,
288 PurpleGroup *group, GList *moved_buddies); 288 PurpleGroup *group, GList *moved_buddies);
289 289
290 void (*buddy_free)(PurpleBuddy *); 290 void (*buddy_free)(PurpleBuddy *);
291 291
292 void (*convo_closed)(PurpleConnection *, const char *who); 292 void (*convo_closed)(PurpleConnection *, const char *who);
293 293
294 const char *(*normalize)(const PurpleAccount *, const char *); 294 /**
295 295 * Convert the username @a who to its canonical form. (For example,
296 /* The prpl does NOT own a reference to img. If it needs one, it 296 * AIM treats "fOo BaR" and "foobar" as the same user; this function
297 * must purple_imgstore_ref(img) itself. */ 297 * should return the same normalized string for both of those.)
298 */
299 const char *(*normalize)(const PurpleAccount *, const char *who);
300
301 /**
302 * Set the buddy icon for the given connection to @a img. The prpl
303 * does NOT own a reference to @a img; if it needs one, it must
304 * #purple_imgstore_ref(@a img) itself.
305 */
298 void (*set_buddy_icon)(PurpleConnection *, PurpleStoredImage *img); 306 void (*set_buddy_icon)(PurpleConnection *, PurpleStoredImage *img);
299 307
300 void (*remove_group)(PurpleConnection *gc, PurpleGroup *group); 308 void (*remove_group)(PurpleConnection *gc, PurpleGroup *group);
301 309
302 char *(*get_cb_real_name)(PurpleConnection *gc, int id, const char *who); 310 char *(*get_cb_real_name)(PurpleConnection *gc, int id, const char *who);
316 PurpleXfer *(*new_xfer)(PurpleConnection *, const char *who); 324 PurpleXfer *(*new_xfer)(PurpleConnection *, const char *who);
317 gboolean (*offline_message)(const PurpleBuddy *buddy); 325 gboolean (*offline_message)(const PurpleBuddy *buddy);
318 326
319 PurpleWhiteboardPrplOps *whiteboard_prpl_ops; 327 PurpleWhiteboardPrplOps *whiteboard_prpl_ops;
320 328
321 /* For use in plugins that may understand the underlying protocol */ 329 /** For use in plugins that may understand the underlying protocol */
322 int (*send_raw)(PurpleConnection *gc, const char *buf, int len); 330 int (*send_raw)(PurpleConnection *gc, const char *buf, int len);
323 331
324 /* room list serialize */ 332 /* room list serialize */
325 char *(*roomlist_room_serialize)(PurpleRoomlistRoom *room); 333 char *(*roomlist_room_serialize)(PurpleRoomlistRoom *room);
326 334