Mercurial > pidgin
comparison libpurple/disco.h @ 26250:2efdd76f5dc0
Fix compilation errors and add padding to UI ops. My bad...
author | Paul Aurich <paul@darkrain42.org> |
---|---|
date | Sun, 29 Mar 2009 20:54:30 +0000 |
parents | a5010188c01e |
children | 535c866b433c |
comparison
equal
deleted
inserted
replaced
26249:a5010188c01e | 26250:2efdd76f5dc0 |
---|---|
69 PURPLE_DISCO_SERVICE_TYPE_GG, | 69 PURPLE_DISCO_SERVICE_TYPE_GG, |
70 PURPLE_DISCO_SERVICE_TYPE_GTALK, | 70 PURPLE_DISCO_SERVICE_TYPE_GTALK, |
71 PURPLE_DISCO_SERVICE_TYPE_ICQ, | 71 PURPLE_DISCO_SERVICE_TYPE_ICQ, |
72 PURPLE_DISCO_SERVICE_TYPE_IRC, | 72 PURPLE_DISCO_SERVICE_TYPE_IRC, |
73 PURPLE_DISCO_SERVICE_TYPE_MAIL, | 73 PURPLE_DISCO_SERVICE_TYPE_MAIL, |
74 PURPLE_DISCO_SERVICE_TYPE_MSN | 74 PURPLE_DISCO_SERVICE_TYPE_MSN, |
75 PURPLE_DISCO_SERVICE_TYPE_USER, | 75 PURPLE_DISCO_SERVICE_TYPE_USER, |
76 PURPLE_DISCO_SERVICE_TYPE_QQ, | 76 PURPLE_DISCO_SERVICE_TYPE_QQ, |
77 PURPLE_DISCO_SERVICE_TYPE_XMPP, | 77 PURPLE_DISCO_SERVICE_TYPE_XMPP, |
78 PURPLE_DISCO_SERVICE_TYPE_YAHOO, | 78 PURPLE_DISCO_SERVICE_TYPE_YAHOO |
79 } PurpleDiscoServiceType; | 79 } PurpleDiscoServiceType; |
80 | 80 |
81 /** | 81 /** |
82 * The flags of services. | 82 * The flags of services. |
83 */ | 83 */ |
97 guint flags; | 97 guint flags; |
98 gchar *description; /**< The name of the service. */ | 98 gchar *description; /**< The name of the service. */ |
99 }; | 99 }; |
100 | 100 |
101 struct _PurpleDiscoUiOps { | 101 struct _PurpleDiscoUiOps { |
102 void (*dialog_show_with_account)(PurpleAccount* account); /**< Force the ui to pop up a dialog */ | 102 /** Ask the UI to display a dialog for the specified account. |
103 void (*create)(PurpleDiscoList *list); /**< Init ui resources */ | 103 */ |
104 void (*destroy)(PurpleDiscoList *list); /**< Free ui resources */ | 104 void (*dialog_show_with_account)(PurpleAccount* account); |
105 void (*create)(PurpleDiscoList *list); /**< Sets UI-specific data on a disco list */ | |
106 void (*destroy)(PurpleDiscoList *list); /**< Free UI-specific data on the disco list */ | |
105 void (*add_service)(PurpleDiscoList *list, PurpleDiscoService *service, PurpleDiscoService *parent); /**< Add service to dialog */ | 107 void (*add_service)(PurpleDiscoList *list, PurpleDiscoService *service, PurpleDiscoService *parent); /**< Add service to dialog */ |
106 void (*in_progress)(PurpleDiscoList *list, gboolean in_progress); /**< Set progress to dialog */ | 108 void (*in_progress)(PurpleDiscoList *list, gboolean in_progress); /**< Set progress to dialog */ |
109 | |
110 /* Padding */ | |
111 void (*_purple_reserved1)(void); | |
112 void (*_purple_reserved2)(void); | |
113 void (*_purple_reserved3)(void); | |
114 void (*_purple_reserved4)(void); | |
107 }; | 115 }; |
108 | 116 |
109 #ifdef __cplusplus | 117 #ifdef __cplusplus |
110 extern "C" { | 118 extern "C" { |
111 #endif | 119 #endif |
195 * @param ops The UI operations structure. | 203 * @param ops The UI operations structure. |
196 */ | 204 */ |
197 void purple_disco_set_ui_ops(PurpleDiscoUiOps *ui_ops); | 205 void purple_disco_set_ui_ops(PurpleDiscoUiOps *ui_ops); |
198 | 206 |
199 /** | 207 /** |
208 * Returns the service discovery UI operations structure. | |
209 * | |
210 * @return A filled-out PurpleDiscoUiOps structure. | |
211 */ | |
212 PurpleDiscoUiOps *purple_disco_get_ui_ops(void); | |
213 | |
214 /** | |
200 * Register service | 215 * Register service |
201 * @param gc Connection | 216 * @param gc Connection |
202 * @param service The service that will be registered | 217 * @param service The service that will be registered |
203 */ | 218 */ |
204 int purple_disco_service_register(PurpleConnection *gc, PurpleDiscoService *service); | 219 int purple_disco_service_register(PurpleConnection *gc, PurpleDiscoService *service); |