Mercurial > pidgin
annotate src/connection.h @ 12067:e859c1663a27
[gaim-migrate @ 14362]
Revert GtkSpell dynamic loading. A GtkSpell plugin is a better idea, and nosnilmot says he has one that's close to fully functional.
committer: Tailor Script <tailor@pidgin.im>
| author | Richard Laager <rlaager@wiktel.com> |
|---|---|
| date | Sun, 13 Nov 2005 01:44:11 +0000 |
| parents | 0fab529c01fc |
| children | 3ef381cdc47e |
| rev | line source |
|---|---|
| 5563 | 1 /** |
| 2 * @file connection.h Connection API | |
| 3 * @ingroup core | |
| 4 * | |
| 5 * gaim | |
| 6 * | |
| 8046 | 7 * Gaim is the legal property of its developers, whose names are too numerous |
| 8 * to list here. Please refer to the COPYRIGHT file distributed with this | |
| 9 * source distribution. | |
|
6460
ff4551719cc7
[gaim-migrate @ 6969]
Christian Hammond <chipx86@chipx86.com>
parents:
6393
diff
changeset
|
10 * |
| 5563 | 11 * This program is free software; you can redistribute it and/or modify |
| 12 * it under the terms of the GNU General Public License as published by | |
| 13 * the Free Software Foundation; either version 2 of the License, or | |
| 14 * (at your option) any later version. | |
| 15 * | |
| 16 * This program is distributed in the hope that it will be useful, | |
| 17 * but WITHOUT ANY WARRANTY; without even the implied warranty of | |
| 18 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the | |
| 19 * GNU General Public License for more details. | |
| 20 * | |
| 21 * You should have received a copy of the GNU General Public License | |
| 22 * along with this program; if not, write to the Free Software | |
| 23 * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA | |
|
6724
aca39e77db85
[gaim-migrate @ 7251]
Christian Hammond <chipx86@chipx86.com>
parents:
6720
diff
changeset
|
24 * |
|
aca39e77db85
[gaim-migrate @ 7251]
Christian Hammond <chipx86@chipx86.com>
parents:
6720
diff
changeset
|
25 * @see @ref connection-signals |
| 5563 | 26 */ |
| 27 #ifndef _GAIM_CONNECTION_H_ | |
| 28 #define _GAIM_CONNECTION_H_ | |
| 29 | |
| 30 typedef struct _GaimConnection GaimConnection; | |
| 31 | |
| 6622 | 32 /** |
| 33 * Flags to change behavior of the client for a given connection. | |
| 34 */ | |
| 35 typedef enum | |
| 36 { | |
| 6982 | 37 GAIM_CONNECTION_HTML = 0x0001, /**< Connection sends/receives in 'HTML'. */ |
|
8735
92cbf9713795
[gaim-migrate @ 9490]
Christian Hammond <chipx86@chipx86.com>
parents:
8691
diff
changeset
|
38 GAIM_CONNECTION_NO_BGCOLOR = 0x0002, /**< Connection does not send/receive |
| 6982 | 39 background colors. */ |
| 8677 | 40 GAIM_CONNECTION_AUTO_RESP = 0x0004, /**< Send auto responses when away. */ |
| 41 GAIM_CONNECTION_FORMATTING_WBFO = 0x0008, /**< The text buffer must be formatted as a whole */ | |
|
8691
0eb5161ef333
[gaim-migrate @ 9444]
Christian Hammond <chipx86@chipx86.com>
parents:
8677
diff
changeset
|
42 GAIM_CONNECTION_NO_NEWLINES = 0x0010, /**< No new lines are allowed in outgoing messages */ |
| 9041 | 43 GAIM_CONNECTION_NO_FONTSIZE = 0x0020, /**< Connection does not send/receive font sizes */ |
| 10665 | 44 GAIM_CONNECTION_NO_URLDESC = 0x0040, /**< Connection does not support descriptions with links */ |
| 45 GAIM_CONNECTION_NO_IMAGES = 0x0080, /**< Connection does not support sending of images */ | |
| 10008 | 46 |
| 6622 | 47 } GaimConnectionFlags; |
|
5872
059d95c67cda
[gaim-migrate @ 6304]
Christian Hammond <chipx86@chipx86.com>
parents:
5733
diff
changeset
|
48 |
| 5563 | 49 typedef enum |
| 50 { | |
| 51 GAIM_DISCONNECTED = 0, /**< Disconnected. */ | |
| 52 GAIM_CONNECTED, /**< Connected. */ | |
| 53 GAIM_CONNECTING /**< Connecting. */ | |
| 54 | |
| 55 } GaimConnectionState; | |
| 56 | |
| 10021 | 57 #include <time.h> |
| 58 | |
|
5944
158196b2db19
[gaim-migrate @ 6385]
Christian Hammond <chipx86@chipx86.com>
parents:
5872
diff
changeset
|
59 #include "account.h" |
|
158196b2db19
[gaim-migrate @ 6385]
Christian Hammond <chipx86@chipx86.com>
parents:
5872
diff
changeset
|
60 #include "plugin.h" |
| 10400 | 61 #include "status.h" |
|
5944
158196b2db19
[gaim-migrate @ 6385]
Christian Hammond <chipx86@chipx86.com>
parents:
5872
diff
changeset
|
62 |
| 5563 | 63 typedef struct |
| 64 { | |
| 65 void (*connect_progress)(GaimConnection *gc, const char *text, | |
| 66 size_t step, size_t step_count); | |
| 67 void (*connected)(GaimConnection *gc); | |
|
6460
ff4551719cc7
[gaim-migrate @ 6969]
Christian Hammond <chipx86@chipx86.com>
parents:
6393
diff
changeset
|
68 void (*disconnected)(GaimConnection *gc); |
|
5571
113090160626
[gaim-migrate @ 5973]
Christian Hammond <chipx86@chipx86.com>
parents:
5564
diff
changeset
|
69 void (*notice)(GaimConnection *gc, const char *text); |
|
6460
ff4551719cc7
[gaim-migrate @ 6969]
Christian Hammond <chipx86@chipx86.com>
parents:
6393
diff
changeset
|
70 void (*report_disconnect)(GaimConnection *gc, const char *text); |
| 5563 | 71 |
| 72 } GaimConnectionUiOps; | |
| 73 | |
| 74 struct _GaimConnection | |
| 75 { | |
| 76 GaimPlugin *prpl; /**< The protocol plugin. */ | |
| 6622 | 77 GaimConnectionFlags flags; /**< Connection flags. */ |
| 5563 | 78 |
| 79 GaimConnectionState state; /**< The connection state. */ | |
| 80 | |
| 81 GaimAccount *account; /**< The account being connected to. */ | |
| 10740 | 82 char *password; /**< The password used. */ |
| 5563 | 83 int inpa; /**< The input watcher. */ |
| 84 | |
| 85 GSList *buddy_chats; /**< A list of active chats. */ | |
| 86 void *proto_data; /**< Protocol-specific data. */ | |
| 87 | |
| 88 char *display_name; /**< The name displayed. */ | |
| 10745 | 89 guint keepalive; /**< Keep-alive. */ |
| 5563 | 90 |
| 91 guint idle_timer; /**< The idle timer. */ | |
| 92 time_t last_sent_time; /**< The time something was last sent. */ | |
| 93 | |
| 94 gboolean is_auto_away; /**< Whether or not it's auto-away. */ | |
| 95 | |
| 8430 | 96 gboolean wants_to_die; /**< Wants to Die state. This is set |
| 10272 | 97 when the user chooses to log out, |
| 8430 | 98 or when the protocol is |
| 99 disconnected and should not be | |
| 100 automatically reconnected | |
| 101 (incorrect password, etc.) */ | |
| 6393 | 102 guint disconnect_timeout; /**< Timer used for nasty stack tricks */ |
| 5563 | 103 }; |
| 104 | |
|
5944
158196b2db19
[gaim-migrate @ 6385]
Christian Hammond <chipx86@chipx86.com>
parents:
5872
diff
changeset
|
105 #ifdef __cplusplus |
|
158196b2db19
[gaim-migrate @ 6385]
Christian Hammond <chipx86@chipx86.com>
parents:
5872
diff
changeset
|
106 extern "C" { |
|
158196b2db19
[gaim-migrate @ 6385]
Christian Hammond <chipx86@chipx86.com>
parents:
5872
diff
changeset
|
107 #endif |
|
158196b2db19
[gaim-migrate @ 6385]
Christian Hammond <chipx86@chipx86.com>
parents:
5872
diff
changeset
|
108 |
|
158196b2db19
[gaim-migrate @ 6385]
Christian Hammond <chipx86@chipx86.com>
parents:
5872
diff
changeset
|
109 /**************************************************************************/ |
|
158196b2db19
[gaim-migrate @ 6385]
Christian Hammond <chipx86@chipx86.com>
parents:
5872
diff
changeset
|
110 /** @name Connection API */ |
|
158196b2db19
[gaim-migrate @ 6385]
Christian Hammond <chipx86@chipx86.com>
parents:
5872
diff
changeset
|
111 /**************************************************************************/ |
|
6488
e5e8d21bd4d8
[gaim-migrate @ 7002]
Christian Hammond <chipx86@chipx86.com>
parents:
6485
diff
changeset
|
112 /*@{*/ |
|
5944
158196b2db19
[gaim-migrate @ 6385]
Christian Hammond <chipx86@chipx86.com>
parents:
5872
diff
changeset
|
113 |
| 5563 | 114 /** |
| 10742 | 115 * This function should only be called by gaim_account_connect() |
| 10740 | 116 * in account.c. If you're trying to sign on an account, use that |
| 117 * function instead. | |
| 118 * | |
| 119 * Creates a connection to the specified account and either connects | |
| 120 * or attempts to register a new account. If you are logging in, | |
| 121 * the connection uses the current active status for this account. | |
| 122 * So if you want to sign on as "away," for example, you need to | |
| 123 * have called gaim_account_set_status(account, "away"). | |
| 124 * (And this will call gaim_account_connect() automatically). | |
| 5563 | 125 * |
| 10758 | 126 * @param account The account the connection should be connecting to. |
| 127 * @param regist Whether we are registering a new account or just | |
| 128 * trying to do a normal signon. | |
| 10740 | 129 * @param password The password to use. |
| 5563 | 130 */ |
| 10740 | 131 void gaim_connection_new(GaimAccount *account, gboolean regist, |
| 132 const char *password); | |
| 5563 | 133 |
| 134 /** | |
| 10742 | 135 * This function should only be called by gaim_account_disconnect() |
| 10738 | 136 * in account.c. If you're trying to sign on an account, use that |
| 137 * function instead. | |
| 138 * | |
| 10740 | 139 * Disconnects and destroys a GaimConnection. |
| 5563 | 140 * |
| 10740 | 141 * @param gc The gaim connection to destroy. |
| 5563 | 142 */ |
| 10740 | 143 void gaim_connection_destroy(GaimConnection *gc); |
| 6581 | 144 |
| 145 /** | |
| 11718 | 146 * Sets the connection state. PRPLs should call this and pass in |
| 147 * the state "GAIM_CONNECTED" when the account is completely | |
| 148 * signed on. What does it mean to be completely signed on? If | |
| 149 * the core can call prpl->set_status, and it successfully changes | |
| 150 * your status, then the account is online. | |
| 5563 | 151 * |
| 152 * @param gc The connection. | |
| 153 * @param state The connection state. | |
| 154 */ | |
| 155 void gaim_connection_set_state(GaimConnection *gc, GaimConnectionState state); | |
| 156 | |
| 157 /** | |
| 158 * Sets the connection's account. | |
| 159 * | |
| 160 * @param gc The connection. | |
| 161 * @param account The account. | |
| 162 */ | |
| 163 void gaim_connection_set_account(GaimConnection *gc, GaimAccount *account); | |
| 164 | |
| 165 /** | |
| 166 * Sets the connection's displayed name. | |
| 167 * | |
| 168 * @param gc The connection. | |
| 169 * @param name The displayed name. | |
| 170 */ | |
| 171 void gaim_connection_set_display_name(GaimConnection *gc, const char *name); | |
| 172 | |
| 173 /** | |
| 174 * Returns the connection state. | |
| 175 * | |
| 176 * @param gc The connection. | |
| 177 * | |
| 178 * @return The connection state. | |
| 179 */ | |
| 180 GaimConnectionState gaim_connection_get_state(const GaimConnection *gc); | |
| 181 | |
| 182 /** | |
| 9019 | 183 * Returns TRUE if the account is connected, otherwise returns FALSE. |
| 184 * | |
| 185 * @return TRUE if the account is connected, otherwise returns FALSE. | |
| 186 */ | |
| 187 #define GAIM_CONNECTION_IS_CONNECTED(gc) \ | |
| 188 (gc->state == GAIM_CONNECTED) | |
| 189 | |
| 190 /** | |
| 5563 | 191 * Returns the connection's account. |
| 192 * | |
| 193 * @param gc The connection. | |
| 194 * | |
| 195 * @return The connection's account. | |
| 196 */ | |
| 197 GaimAccount *gaim_connection_get_account(const GaimConnection *gc); | |
| 198 | |
| 199 /** | |
| 10740 | 200 * Returns the connection's password. |
| 201 * | |
| 202 * @param gc The connection. | |
| 203 * | |
| 204 * @return The connection's password. | |
| 205 */ | |
| 206 const char *gaim_connection_get_password(const GaimConnection *gc); | |
| 207 | |
| 208 /** | |
| 5563 | 209 * Returns the connection's displayed name. |
| 210 * | |
| 211 * @param gc The connection. | |
| 212 * | |
| 213 * @return The connection's displayed name. | |
| 214 */ | |
| 215 const char *gaim_connection_get_display_name(const GaimConnection *gc); | |
| 216 | |
| 217 /** | |
| 218 * Updates the connection progress. | |
| 219 * | |
| 220 * @param gc The connection. | |
| 221 * @param text Information on the current step. | |
| 222 * @param step The current step. | |
| 223 * @param count The total number of steps. | |
| 224 */ | |
| 225 void gaim_connection_update_progress(GaimConnection *gc, const char *text, | |
| 226 size_t step, size_t count); | |
| 227 | |
| 228 /** | |
|
5571
113090160626
[gaim-migrate @ 5973]
Christian Hammond <chipx86@chipx86.com>
parents:
5564
diff
changeset
|
229 * Displays a connection-specific notice. |
|
113090160626
[gaim-migrate @ 5973]
Christian Hammond <chipx86@chipx86.com>
parents:
5564
diff
changeset
|
230 * |
|
113090160626
[gaim-migrate @ 5973]
Christian Hammond <chipx86@chipx86.com>
parents:
5564
diff
changeset
|
231 * @param gc The connection. |
|
113090160626
[gaim-migrate @ 5973]
Christian Hammond <chipx86@chipx86.com>
parents:
5564
diff
changeset
|
232 * @param text The notice text. |
|
113090160626
[gaim-migrate @ 5973]
Christian Hammond <chipx86@chipx86.com>
parents:
5564
diff
changeset
|
233 */ |
|
113090160626
[gaim-migrate @ 5973]
Christian Hammond <chipx86@chipx86.com>
parents:
5564
diff
changeset
|
234 void gaim_connection_notice(GaimConnection *gc, const char *text); |
|
113090160626
[gaim-migrate @ 5973]
Christian Hammond <chipx86@chipx86.com>
parents:
5564
diff
changeset
|
235 |
|
113090160626
[gaim-migrate @ 5973]
Christian Hammond <chipx86@chipx86.com>
parents:
5564
diff
changeset
|
236 /** |
|
5564
187c740f2a4e
[gaim-migrate @ 5966]
Christian Hammond <chipx86@chipx86.com>
parents:
5563
diff
changeset
|
237 * Closes a connection with an error. |
|
187c740f2a4e
[gaim-migrate @ 5966]
Christian Hammond <chipx86@chipx86.com>
parents:
5563
diff
changeset
|
238 * |
|
187c740f2a4e
[gaim-migrate @ 5966]
Christian Hammond <chipx86@chipx86.com>
parents:
5563
diff
changeset
|
239 * @param gc The connection. |
|
187c740f2a4e
[gaim-migrate @ 5966]
Christian Hammond <chipx86@chipx86.com>
parents:
5563
diff
changeset
|
240 * @param reason The error text. |
|
187c740f2a4e
[gaim-migrate @ 5966]
Christian Hammond <chipx86@chipx86.com>
parents:
5563
diff
changeset
|
241 */ |
|
187c740f2a4e
[gaim-migrate @ 5966]
Christian Hammond <chipx86@chipx86.com>
parents:
5563
diff
changeset
|
242 void gaim_connection_error(GaimConnection *gc, const char *reason); |
|
187c740f2a4e
[gaim-migrate @ 5966]
Christian Hammond <chipx86@chipx86.com>
parents:
5563
diff
changeset
|
243 |
|
5944
158196b2db19
[gaim-migrate @ 6385]
Christian Hammond <chipx86@chipx86.com>
parents:
5872
diff
changeset
|
244 /*@}*/ |
|
158196b2db19
[gaim-migrate @ 6385]
Christian Hammond <chipx86@chipx86.com>
parents:
5872
diff
changeset
|
245 |
|
158196b2db19
[gaim-migrate @ 6385]
Christian Hammond <chipx86@chipx86.com>
parents:
5872
diff
changeset
|
246 /**************************************************************************/ |
|
158196b2db19
[gaim-migrate @ 6385]
Christian Hammond <chipx86@chipx86.com>
parents:
5872
diff
changeset
|
247 /** @name Connections API */ |
|
158196b2db19
[gaim-migrate @ 6385]
Christian Hammond <chipx86@chipx86.com>
parents:
5872
diff
changeset
|
248 /**************************************************************************/ |
|
158196b2db19
[gaim-migrate @ 6385]
Christian Hammond <chipx86@chipx86.com>
parents:
5872
diff
changeset
|
249 /*@{*/ |
|
158196b2db19
[gaim-migrate @ 6385]
Christian Hammond <chipx86@chipx86.com>
parents:
5872
diff
changeset
|
250 |
|
5564
187c740f2a4e
[gaim-migrate @ 5966]
Christian Hammond <chipx86@chipx86.com>
parents:
5563
diff
changeset
|
251 /** |
| 5563 | 252 * Disconnects from all connections. |
| 253 */ | |
| 254 void gaim_connections_disconnect_all(void); | |
| 255 | |
| 256 /** | |
| 10352 | 257 * Returns a list of all active connections. This does not |
| 258 * include connections that are in the process of connecting. | |
| 5563 | 259 * |
| 260 * @return A list of all active connections. | |
| 261 */ | |
| 262 GList *gaim_connections_get_all(void); | |
| 263 | |
|
5564
187c740f2a4e
[gaim-migrate @ 5966]
Christian Hammond <chipx86@chipx86.com>
parents:
5563
diff
changeset
|
264 /** |
|
187c740f2a4e
[gaim-migrate @ 5966]
Christian Hammond <chipx86@chipx86.com>
parents:
5563
diff
changeset
|
265 * Returns a list of all connections in the process of connecting. |
|
187c740f2a4e
[gaim-migrate @ 5966]
Christian Hammond <chipx86@chipx86.com>
parents:
5563
diff
changeset
|
266 * |
|
187c740f2a4e
[gaim-migrate @ 5966]
Christian Hammond <chipx86@chipx86.com>
parents:
5563
diff
changeset
|
267 * @return A list of connecting connections. |
|
187c740f2a4e
[gaim-migrate @ 5966]
Christian Hammond <chipx86@chipx86.com>
parents:
5563
diff
changeset
|
268 */ |
|
187c740f2a4e
[gaim-migrate @ 5966]
Christian Hammond <chipx86@chipx86.com>
parents:
5563
diff
changeset
|
269 GList *gaim_connections_get_connecting(void); |
|
187c740f2a4e
[gaim-migrate @ 5966]
Christian Hammond <chipx86@chipx86.com>
parents:
5563
diff
changeset
|
270 |
| 9221 | 271 /** |
| 272 * Checks if gc is still a valid pointer to a gc. | |
| 273 * | |
| 274 * @return @c TRUE if gc is valid. | |
| 275 */ | |
| 276 #define GAIM_CONNECTION_IS_VALID(gc) (g_list_find(gaim_connections_get_all(), (gc)) || g_list_find(gaim_connections_get_connecting(), (gc))) | |
| 277 | |
|
5944
158196b2db19
[gaim-migrate @ 6385]
Christian Hammond <chipx86@chipx86.com>
parents:
5872
diff
changeset
|
278 /*@}*/ |
|
158196b2db19
[gaim-migrate @ 6385]
Christian Hammond <chipx86@chipx86.com>
parents:
5872
diff
changeset
|
279 |
| 5563 | 280 /**************************************************************************/ |
|
7122
b90c94620d1c
[gaim-migrate @ 7689]
Christian Hammond <chipx86@chipx86.com>
parents:
7035
diff
changeset
|
281 /** @name UI Registration Functions */ |
| 5563 | 282 /**************************************************************************/ |
| 283 /*@{*/ | |
| 284 | |
| 285 /** | |
| 286 * Sets the UI operations structure to be used for connections. | |
| 287 * | |
| 288 * @param ops The UI operations structure. | |
| 289 */ | |
|
7035
feb3d21a7794
[gaim-migrate @ 7598]
Christian Hammond <chipx86@chipx86.com>
parents:
6982
diff
changeset
|
290 void gaim_connections_set_ui_ops(GaimConnectionUiOps *ops); |
| 5563 | 291 |
| 292 /** | |
| 293 * Returns the UI operations structure used for connections. | |
| 294 * | |
| 295 * @return The UI operations structure in use. | |
| 296 */ | |
|
7035
feb3d21a7794
[gaim-migrate @ 7598]
Christian Hammond <chipx86@chipx86.com>
parents:
6982
diff
changeset
|
297 GaimConnectionUiOps *gaim_connections_get_ui_ops(void); |
| 5563 | 298 |
| 299 /*@}*/ | |
| 300 | |
|
6488
e5e8d21bd4d8
[gaim-migrate @ 7002]
Christian Hammond <chipx86@chipx86.com>
parents:
6485
diff
changeset
|
301 /**************************************************************************/ |
|
e5e8d21bd4d8
[gaim-migrate @ 7002]
Christian Hammond <chipx86@chipx86.com>
parents:
6485
diff
changeset
|
302 /** @name Connections Subsystem */ |
|
e5e8d21bd4d8
[gaim-migrate @ 7002]
Christian Hammond <chipx86@chipx86.com>
parents:
6485
diff
changeset
|
303 /**************************************************************************/ |
|
e5e8d21bd4d8
[gaim-migrate @ 7002]
Christian Hammond <chipx86@chipx86.com>
parents:
6485
diff
changeset
|
304 /*@{*/ |
|
e5e8d21bd4d8
[gaim-migrate @ 7002]
Christian Hammond <chipx86@chipx86.com>
parents:
6485
diff
changeset
|
305 |
|
e5e8d21bd4d8
[gaim-migrate @ 7002]
Christian Hammond <chipx86@chipx86.com>
parents:
6485
diff
changeset
|
306 /** |
|
e5e8d21bd4d8
[gaim-migrate @ 7002]
Christian Hammond <chipx86@chipx86.com>
parents:
6485
diff
changeset
|
307 * Initializes the connections subsystem. |
|
e5e8d21bd4d8
[gaim-migrate @ 7002]
Christian Hammond <chipx86@chipx86.com>
parents:
6485
diff
changeset
|
308 */ |
|
e5e8d21bd4d8
[gaim-migrate @ 7002]
Christian Hammond <chipx86@chipx86.com>
parents:
6485
diff
changeset
|
309 void gaim_connections_init(void); |
|
e5e8d21bd4d8
[gaim-migrate @ 7002]
Christian Hammond <chipx86@chipx86.com>
parents:
6485
diff
changeset
|
310 |
|
e5e8d21bd4d8
[gaim-migrate @ 7002]
Christian Hammond <chipx86@chipx86.com>
parents:
6485
diff
changeset
|
311 /** |
|
e5e8d21bd4d8
[gaim-migrate @ 7002]
Christian Hammond <chipx86@chipx86.com>
parents:
6485
diff
changeset
|
312 * Uninitializes the connections subsystem. |
|
e5e8d21bd4d8
[gaim-migrate @ 7002]
Christian Hammond <chipx86@chipx86.com>
parents:
6485
diff
changeset
|
313 */ |
|
e5e8d21bd4d8
[gaim-migrate @ 7002]
Christian Hammond <chipx86@chipx86.com>
parents:
6485
diff
changeset
|
314 void gaim_connections_uninit(void); |
|
e5e8d21bd4d8
[gaim-migrate @ 7002]
Christian Hammond <chipx86@chipx86.com>
parents:
6485
diff
changeset
|
315 |
|
e5e8d21bd4d8
[gaim-migrate @ 7002]
Christian Hammond <chipx86@chipx86.com>
parents:
6485
diff
changeset
|
316 /** |
|
e5e8d21bd4d8
[gaim-migrate @ 7002]
Christian Hammond <chipx86@chipx86.com>
parents:
6485
diff
changeset
|
317 * Returns the handle to the connections subsystem. |
|
e5e8d21bd4d8
[gaim-migrate @ 7002]
Christian Hammond <chipx86@chipx86.com>
parents:
6485
diff
changeset
|
318 * |
|
e5e8d21bd4d8
[gaim-migrate @ 7002]
Christian Hammond <chipx86@chipx86.com>
parents:
6485
diff
changeset
|
319 * @return The connections subsystem handle. |
|
e5e8d21bd4d8
[gaim-migrate @ 7002]
Christian Hammond <chipx86@chipx86.com>
parents:
6485
diff
changeset
|
320 */ |
|
e5e8d21bd4d8
[gaim-migrate @ 7002]
Christian Hammond <chipx86@chipx86.com>
parents:
6485
diff
changeset
|
321 void *gaim_connections_get_handle(void); |
|
e5e8d21bd4d8
[gaim-migrate @ 7002]
Christian Hammond <chipx86@chipx86.com>
parents:
6485
diff
changeset
|
322 |
|
e5e8d21bd4d8
[gaim-migrate @ 7002]
Christian Hammond <chipx86@chipx86.com>
parents:
6485
diff
changeset
|
323 /*@}*/ |
|
e5e8d21bd4d8
[gaim-migrate @ 7002]
Christian Hammond <chipx86@chipx86.com>
parents:
6485
diff
changeset
|
324 |
|
e5e8d21bd4d8
[gaim-migrate @ 7002]
Christian Hammond <chipx86@chipx86.com>
parents:
6485
diff
changeset
|
325 |
|
5944
158196b2db19
[gaim-migrate @ 6385]
Christian Hammond <chipx86@chipx86.com>
parents:
5872
diff
changeset
|
326 #ifdef __cplusplus |
|
158196b2db19
[gaim-migrate @ 6385]
Christian Hammond <chipx86@chipx86.com>
parents:
5872
diff
changeset
|
327 } |
|
158196b2db19
[gaim-migrate @ 6385]
Christian Hammond <chipx86@chipx86.com>
parents:
5872
diff
changeset
|
328 #endif |
|
158196b2db19
[gaim-migrate @ 6385]
Christian Hammond <chipx86@chipx86.com>
parents:
5872
diff
changeset
|
329 |
| 5563 | 330 #endif /* _GAIM_CONNECTION_H_ */ |
