~ubuntu-branches/ubuntu/quantal/pidgin/quantal

« back to all changes in this revision

Viewing changes to libpurple/prpl.h

  • Committer: Bazaar Package Importer
  • Author(s): Ari Pollak
  • Date: 2011-06-13 21:17:20 UTC
  • mfrom: (1.3.19 upstream)
  • mto: This revision was merged to the branch mainline in revision 73.
  • Revision ID: james.westby@ubuntu.com-20110613211720-ke87vzmdcuaxams7
Tags: 2.8.0-1
* Imported Upstream version 2.8.0 (Closes: #630124)
* Remove SILC support since the library will be orphaned (Closes: #629222)
* Fix typo in libpurple-bin description (Closes: #625462)

Show diffs side-by-side

added added

removed removed

Lines of Context:
202
202
         * Used as a hint that unknown commands should not be sent as messages.
203
203
         * @since 2.1.0
204
204
         */
205
 
        OPT_PROTO_SLASH_COMMANDS_NATIVE = 0x00000400
 
205
        OPT_PROTO_SLASH_COMMANDS_NATIVE = 0x00000400,
 
206
 
 
207
        /**
 
208
         * Indicates that this protocol supports sending a user-supplied message
 
209
         * along with an invitation.
 
210
         * @since 2.8.0
 
211
         */
 
212
        OPT_PROTO_INVITE_MESSAGE = 0x00000800
206
213
 
207
214
} PurpleProtocolOptions;
208
215
 
333
340
         * already in the specified group. If the protocol supports
334
341
         * authorization and the user is not already authorized to see the
335
342
         * status of \a buddy, \a add_buddy should request authorization.
 
343
         *
 
344
         * @deprecated Since 2.8.0, add_buddy_with_invite is preferred.
 
345
         * @see add_buddy_with_invite
336
346
         */
337
347
        void (*add_buddy)(PurpleConnection *, PurpleBuddy *buddy, PurpleGroup *group);
338
348
        void (*add_buddies)(PurpleConnection *, GList *buddies, GList *groups);
622
632
        void (*get_public_alias)(PurpleConnection *gc,
623
633
                                 PurpleGetPublicAliasSuccessCallback success_cb,
624
634
                                 PurpleGetPublicAliasFailureCallback failure_cb);
 
635
 
 
636
        /**
 
637
         * Add a buddy to a group on the server.
 
638
         *
 
639
         * This PRPL function may be called in situations in which the buddy is
 
640
         * already in the specified group. If the protocol supports
 
641
         * authorization and the user is not already authorized to see the
 
642
         * status of \a buddy, \a add_buddy should request authorization.
 
643
         *
 
644
         * If authorization is required, then use the supplied invite message.
 
645
         *
 
646
         * @since 2.8.0
 
647
         */
 
648
        void (*add_buddy_with_invite)(PurpleConnection *pc, PurpleBuddy *buddy, PurpleGroup *group, const char *message);
 
649
        void (*add_buddies_with_invite)(PurpleConnection *pc, GList *buddies, GList *groups, const char *message);
625
650
};
626
651
 
627
652
#define PURPLE_PROTOCOL_PLUGIN_HAS_FUNC(prpl, member) \