Mercurial > pidgin.yaz
comparison src/connection.h @ 5944:158196b2db19
[gaim-migrate @ 6385]
Added #ifdef __cplusplus lines so that things will link right with C++.
Also added some doxygen comment blocks that didn't previously exist.
committer: Tailor Script <tailor@pidgin.im>
author | Christian Hammond <chipx86@chipx86.com> |
---|---|
date | Mon, 23 Jun 2003 06:40:13 +0000 |
parents | 059d95c67cda |
children | 0922bb7a7bbc |
comparison
equal
deleted
inserted
replaced
5943:a4f2aba0848d | 5944:158196b2db19 |
---|---|
26 #include <stdlib.h> | 26 #include <stdlib.h> |
27 #include <time.h> | 27 #include <time.h> |
28 | 28 |
29 typedef struct _GaimConnection GaimConnection; | 29 typedef struct _GaimConnection GaimConnection; |
30 | 30 |
31 #include "account.h" | |
32 #include "plugin.h" | |
33 | |
34 #define OPT_CONN_HTML 0x00000001 | 31 #define OPT_CONN_HTML 0x00000001 |
35 /* set this flag on a gc if you want serv_got_im to autoreply when away */ | 32 /* set this flag on a gc if you want serv_got_im to autoreply when away */ |
36 #define OPT_CONN_AUTO_RESP 0x00000002 | 33 #define OPT_CONN_AUTO_RESP 0x00000002 |
37 | 34 |
38 typedef enum | 35 typedef enum |
40 GAIM_DISCONNECTED = 0, /**< Disconnected. */ | 37 GAIM_DISCONNECTED = 0, /**< Disconnected. */ |
41 GAIM_CONNECTED, /**< Connected. */ | 38 GAIM_CONNECTED, /**< Connected. */ |
42 GAIM_CONNECTING /**< Connecting. */ | 39 GAIM_CONNECTING /**< Connecting. */ |
43 | 40 |
44 } GaimConnectionState; | 41 } GaimConnectionState; |
42 | |
43 #include "account.h" | |
44 #include "plugin.h" | |
45 | 45 |
46 typedef struct | 46 typedef struct |
47 { | 47 { |
48 void (*connect_progress)(GaimConnection *gc, const char *text, | 48 void (*connect_progress)(GaimConnection *gc, const char *text, |
49 size_t step, size_t step_count); | 49 size_t step, size_t step_count); |
84 this here?) */ | 84 this here?) */ |
85 | 85 |
86 gboolean wants_to_die; /**< Wants to Die state. */ | 86 gboolean wants_to_die; /**< Wants to Die state. */ |
87 }; | 87 }; |
88 | 88 |
89 #ifdef __cplusplus | |
90 extern "C" { | |
91 #endif | |
92 | |
93 /**************************************************************************/ | |
94 /** @name Connection API */ | |
95 /**************************************************************************/ | |
96 | |
89 /** | 97 /** |
90 * Creates a connection to the specified account. | 98 * Creates a connection to the specified account. |
91 * | 99 * |
92 * @param account The account the connection should be connecting to. | 100 * @param account The account the connection should be connecting to. |
93 * | 101 * |
196 * @param gc The connection. | 204 * @param gc The connection. |
197 * @param reason The error text. | 205 * @param reason The error text. |
198 */ | 206 */ |
199 void gaim_connection_error(GaimConnection *gc, const char *reason); | 207 void gaim_connection_error(GaimConnection *gc, const char *reason); |
200 | 208 |
209 /*@}*/ | |
210 | |
211 /**************************************************************************/ | |
212 /** @name Connections API */ | |
213 /**************************************************************************/ | |
214 /*@{*/ | |
215 | |
201 /** | 216 /** |
202 * Disconnects from all connections. | 217 * Disconnects from all connections. |
203 */ | 218 */ |
204 void gaim_connections_disconnect_all(void); | 219 void gaim_connections_disconnect_all(void); |
205 | 220 |
215 * | 230 * |
216 * @return A list of connecting connections. | 231 * @return A list of connecting connections. |
217 */ | 232 */ |
218 GList *gaim_connections_get_connecting(void); | 233 GList *gaim_connections_get_connecting(void); |
219 | 234 |
235 /*@}*/ | |
236 | |
220 /**************************************************************************/ | 237 /**************************************************************************/ |
221 /** @name UI Operations API */ | 238 /** @name UI Operations API */ |
222 /**************************************************************************/ | 239 /**************************************************************************/ |
223 /*@{*/ | 240 /*@{*/ |
224 | 241 |
236 */ | 253 */ |
237 GaimConnectionUiOps *gaim_get_connection_ui_ops(void); | 254 GaimConnectionUiOps *gaim_get_connection_ui_ops(void); |
238 | 255 |
239 /*@}*/ | 256 /*@}*/ |
240 | 257 |
258 #ifdef __cplusplus | |
259 } | |
260 #endif | |
261 | |
241 #endif /* _GAIM_CONNECTION_H_ */ | 262 #endif /* _GAIM_CONNECTION_H_ */ |