Mercurial > pidgin
comparison libpurple/prpl.h @ 26593:b290c7b9fc73
propagate from branch 'im.pidgin.pidgin' (head 3c568b43fb4447b65a2b06e6767340edd7763c53)
to branch 'org.darkrain42.pidgin.disco' (head ead0d4fe7ad002d288919e966edd3a24ef98edfc)
author | Paul Aurich <paul@darkrain42.org> |
---|---|
date | Thu, 09 Apr 2009 04:27:58 +0000 |
parents | f5f08111da52 c619bef09bec |
children | 4851546210a1 |
comparison
equal
deleted
inserted
replaced
26519:00f13da82914 | 26593:b290c7b9fc73 |
---|---|
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)(PurpleConnection *gc, | 483 PurpleMediaCaps (*get_media_caps)(PurpleConnection *gc, |
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)) && \ |