comparison libpurple/prpl.h @ 32031:cd1d9e04c587

Rename the _with_invite functions to their counterparts.
author Elliott Sales de Andrade <qulogic@pidgin.im>
date Sat, 03 Sep 2011 23:13:11 +0000
parents 2c58de59bd57
children 743bb6b1aa30
comparison
equal deleted inserted replaced
32030:4f6b06139734 32031:cd1d9e04c587
314 void (*set_status)(PurpleAccount *account, PurpleStatus *status); 314 void (*set_status)(PurpleAccount *account, PurpleStatus *status);
315 315
316 void (*set_idle)(PurpleConnection *, int idletime); 316 void (*set_idle)(PurpleConnection *, int idletime);
317 void (*change_passwd)(PurpleConnection *, const char *old_pass, 317 void (*change_passwd)(PurpleConnection *, const char *old_pass,
318 const char *new_pass); 318 const char *new_pass);
319
319 /** 320 /**
320 * Add a buddy to a group on the server. 321 * Add a buddy to a group on the server.
321 * 322 *
322 * This PRPL function may be called in situations in which the buddy is 323 * This PRPL function may be called in situations in which the buddy is
323 * already in the specified group. If the protocol supports 324 * already in the specified group. If the protocol supports
324 * authorization and the user is not already authorized to see the 325 * authorization and the user is not already authorized to see the
325 * status of \a buddy, \a add_buddy should request authorization. 326 * status of \a buddy, \a add_buddy should request authorization.
326 * 327 *
327 * @deprecated Since 2.8.0, add_buddy_with_invite is preferred. 328 * If authorization is required, then use the supplied invite message.
328 * @see add_buddy_with_invite 329 */
329 */ 330 void (*add_buddy)(PurpleConnection *pc, PurpleBuddy *buddy, PurpleGroup *group, const char *message);
330 void (*add_buddy)(PurpleConnection *, PurpleBuddy *buddy, PurpleGroup *group); 331 void (*add_buddies)(PurpleConnection *pc, GList *buddies, GList *groups, const char *message);
331 void (*add_buddies)(PurpleConnection *, GList *buddies, GList *groups);
332 void (*remove_buddy)(PurpleConnection *, PurpleBuddy *buddy, PurpleGroup *group); 332 void (*remove_buddy)(PurpleConnection *, PurpleBuddy *buddy, PurpleGroup *group);
333 void (*remove_buddies)(PurpleConnection *, GList *buddies, GList *groups); 333 void (*remove_buddies)(PurpleConnection *, GList *buddies, GList *groups);
334 void (*add_permit)(PurpleConnection *, const char *name); 334 void (*add_permit)(PurpleConnection *, const char *name);
335 void (*add_deny)(PurpleConnection *, const char *name); 335 void (*add_deny)(PurpleConnection *, const char *name);
336 void (*rem_permit)(PurpleConnection *, const char *name); 336 void (*rem_permit)(PurpleConnection *, const char *name);
613 * @since 2.7.0 613 * @since 2.7.0
614 */ 614 */
615 void (*get_public_alias)(PurpleConnection *gc, 615 void (*get_public_alias)(PurpleConnection *gc,
616 PurpleGetPublicAliasSuccessCallback success_cb, 616 PurpleGetPublicAliasSuccessCallback success_cb,
617 PurpleGetPublicAliasFailureCallback failure_cb); 617 PurpleGetPublicAliasFailureCallback failure_cb);
618
619 /**
620 * Add a buddy to a group on the server.
621 *
622 * This PRPL function may be called in situations in which the buddy is
623 * already in the specified group. If the protocol supports
624 * authorization and the user is not already authorized to see the
625 * status of \a buddy, \a add_buddy should request authorization.
626 *
627 * If authorization is required, then use the supplied invite message.
628 *
629 * @since 2.8.0
630 */
631 void (*add_buddy_with_invite)(PurpleConnection *pc, PurpleBuddy *buddy, PurpleGroup *group, const char *message);
632 void (*add_buddies_with_invite)(PurpleConnection *pc, GList *buddies, GList *groups, const char *message);
633 }; 618 };
634 619
635 #define PURPLE_PROTOCOL_PLUGIN_HAS_FUNC(prpl, member) \ 620 #define PURPLE_PROTOCOL_PLUGIN_HAS_FUNC(prpl, member) \
636 (((G_STRUCT_OFFSET(PurplePluginProtocolInfo, member) < G_STRUCT_OFFSET(PurplePluginProtocolInfo, struct_size)) \ 621 (((G_STRUCT_OFFSET(PurplePluginProtocolInfo, member) < G_STRUCT_OFFSET(PurplePluginProtocolInfo, struct_size)) \
637 || (G_STRUCT_OFFSET(PurplePluginProtocolInfo, member) < prpl->struct_size)) && \ 622 || (G_STRUCT_OFFSET(PurplePluginProtocolInfo, member) < prpl->struct_size)) && \