Mercurial > pidgin
comparison libpurple/prpl.h @ 26594:4851546210a1
propagate from branch 'im.pidgin.pidgin' (head 0068cedd03804855a4ded8aeb153ccaffb8158bc)
to branch 'org.darkrain42.pidgin.disco' (head 7a48183ef659df8a9f45f8e6187fbb2abac019d1)
author | Paul Aurich <paul@darkrain42.org> |
---|---|
date | Sat, 11 Apr 2009 18:20:52 +0000 |
parents | df9042312063 b290c7b9fc73 |
children | 1de01f9594c8 |
comparison
equal
deleted
inserted
replaced
26543:d68b338d9eed | 26594:4851546210a1 |
---|---|
68 #include "media.h" | 68 #include "media.h" |
69 #include "notify.h" | 69 #include "notify.h" |
70 #include "proxy.h" | 70 #include "proxy.h" |
71 #include "plugin.h" | 71 #include "plugin.h" |
72 #include "roomlist.h" | 72 #include "roomlist.h" |
73 #include "disco.h" | |
73 #include "status.h" | 74 #include "status.h" |
74 #include "whiteboard.h" | 75 #include "whiteboard.h" |
75 | 76 |
76 | 77 |
77 /** @copydoc PurpleBuddyIconSpec */ | 78 /** @copydoc PurpleBuddyIconSpec */ |
479 * @param who The remote user to check for media capability with. | 480 * @param who The remote user to check for media capability with. |
480 * @return The media caps the contact supports. | 481 * @return The media caps the contact supports. |
481 */ | 482 */ |
482 PurpleMediaCaps (*get_media_caps)(PurpleAccount *account, | 483 PurpleMediaCaps (*get_media_caps)(PurpleAccount *account, |
483 const char *who); | 484 const char *who); |
485 | |
486 /** | |
487 * Service discovery prpl callbacks | |
488 */ | |
489 PurpleDiscoList *(*disco_get_list)(PurpleConnection *gc); | |
490 | |
491 /** | |
492 * Cancel fetching service list | |
493 */ | |
494 void (*disco_cancel)(PurpleDiscoList *list); | |
495 | |
496 /** | |
497 * Register service | |
498 */ | |
499 int (*disco_service_register)(PurpleConnection *gc, PurpleDiscoService *service); | |
484 }; | 500 }; |
485 | 501 |
486 #define PURPLE_PROTOCOL_PLUGIN_HAS_FUNC(prpl, member) \ | 502 #define PURPLE_PROTOCOL_PLUGIN_HAS_FUNC(prpl, member) \ |
487 (((G_STRUCT_OFFSET(PurplePluginProtocolInfo, member) < G_STRUCT_OFFSET(PurplePluginProtocolInfo, struct_size)) \ | 503 (((G_STRUCT_OFFSET(PurplePluginProtocolInfo, member) < G_STRUCT_OFFSET(PurplePluginProtocolInfo, struct_size)) \ |
488 || (G_STRUCT_OFFSET(PurplePluginProtocolInfo, member) < prpl->struct_size)) && \ | 504 || (G_STRUCT_OFFSET(PurplePluginProtocolInfo, member) < prpl->struct_size)) && \ |