Thu, 02 Sep 2004 19:01:33 +0000
[gaim-migrate @ 10831]
More doc cleanups from Gary
committer: Ethan Blanton <elb@pidgin.im>
| 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
fc288e7221ca
[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
e1d416a4a4bc
[gaim-migrate @ 7251]
Christian Hammond <chipx86@chipx86.com>
parents:
6720
diff
changeset
|
24 | * |
|
e1d416a4a4bc
[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 | #include <stdlib.h> | |
|
5733
535f3a4679ef
[gaim-migrate @ 6157]
Christian Hammond <chipx86@chipx86.com>
parents:
5717
diff
changeset
|
31 | #include <time.h> |
| 5563 | 32 | |
| 33 | typedef struct _GaimConnection GaimConnection; | |
| 34 | ||
|
6622
277eb0b14653
[gaim-migrate @ 7146]
Robert McQueen <robot101@debian.org>
parents:
6605
diff
changeset
|
35 | /** |
|
277eb0b14653
[gaim-migrate @ 7146]
Robert McQueen <robot101@debian.org>
parents:
6605
diff
changeset
|
36 | * Flags to change behavior of the client for a given connection. |
|
277eb0b14653
[gaim-migrate @ 7146]
Robert McQueen <robot101@debian.org>
parents:
6605
diff
changeset
|
37 | */ |
|
277eb0b14653
[gaim-migrate @ 7146]
Robert McQueen <robot101@debian.org>
parents:
6605
diff
changeset
|
38 | typedef enum |
|
277eb0b14653
[gaim-migrate @ 7146]
Robert McQueen <robot101@debian.org>
parents:
6605
diff
changeset
|
39 | { |
|
6982
12f08de92674
[gaim-migrate @ 7538]
Mark Doliner <markdoliner@pidgin.im>
parents:
6724
diff
changeset
|
40 | GAIM_CONNECTION_HTML = 0x0001, /**< Connection sends/receives in 'HTML'. */ |
|
8735
01248ea222d3
[gaim-migrate @ 9490]
Jonathan Champ <royanee@users.sourceforge.net>
parents:
8691
diff
changeset
|
41 | GAIM_CONNECTION_NO_BGCOLOR = 0x0002, /**< Connection does not send/receive |
|
6982
12f08de92674
[gaim-migrate @ 7538]
Mark Doliner <markdoliner@pidgin.im>
parents:
6724
diff
changeset
|
42 | background colors. */ |
| 8677 | 43 | GAIM_CONNECTION_AUTO_RESP = 0x0004, /**< Send auto responses when away. */ |
| 44 | GAIM_CONNECTION_FORMATTING_WBFO = 0x0008, /**< The text buffer must be formatted as a whole */ | |
| 8691 | 45 | GAIM_CONNECTION_NO_NEWLINES = 0x0010, /**< No new lines are allowed in outgoing messages */ |
| 9041 | 46 | GAIM_CONNECTION_NO_FONTSIZE = 0x0020, /**< Connection does not send/receive font sizes */ |
| 47 | GAIM_CONNECTION_NO_URLDESC = 0x0040 /**< Connection does not support descriptions with links */ | |
|
6622
277eb0b14653
[gaim-migrate @ 7146]
Robert McQueen <robot101@debian.org>
parents:
6605
diff
changeset
|
48 | } GaimConnectionFlags; |
|
5872
754c63f29b77
[gaim-migrate @ 6304]
Christian Hammond <chipx86@chipx86.com>
parents:
5733
diff
changeset
|
49 | |
| 5563 | 50 | typedef enum |
| 51 | { | |
| 52 | GAIM_DISCONNECTED = 0, /**< Disconnected. */ | |
| 53 | GAIM_CONNECTED, /**< Connected. */ | |
| 54 | GAIM_CONNECTING /**< Connecting. */ | |
| 55 | ||
| 56 | } GaimConnectionState; | |
| 57 | ||
|
5944
f19df037ac58
[gaim-migrate @ 6385]
Christian Hammond <chipx86@chipx86.com>
parents:
5872
diff
changeset
|
58 | #include "account.h" |
|
f19df037ac58
[gaim-migrate @ 6385]
Christian Hammond <chipx86@chipx86.com>
parents:
5872
diff
changeset
|
59 | #include "plugin.h" |
|
f19df037ac58
[gaim-migrate @ 6385]
Christian Hammond <chipx86@chipx86.com>
parents:
5872
diff
changeset
|
60 | |
| 5563 | 61 | typedef struct |
| 62 | { | |
| 63 | void (*connect_progress)(GaimConnection *gc, const char *text, | |
| 64 | size_t step, size_t step_count); | |
| 65 | void (*connected)(GaimConnection *gc); | |
|
6460
fc288e7221ca
[gaim-migrate @ 6969]
Christian Hammond <chipx86@chipx86.com>
parents:
6393
diff
changeset
|
66 | void (*disconnected)(GaimConnection *gc); |
|
5571
b709464f507e
[gaim-migrate @ 5973]
Christian Hammond <chipx86@chipx86.com>
parents:
5564
diff
changeset
|
67 | void (*notice)(GaimConnection *gc, const char *text); |
|
6460
fc288e7221ca
[gaim-migrate @ 6969]
Christian Hammond <chipx86@chipx86.com>
parents:
6393
diff
changeset
|
68 | void (*report_disconnect)(GaimConnection *gc, const char *text); |
| 5563 | 69 | |
| 70 | } GaimConnectionUiOps; | |
| 71 | ||
| 72 | struct _GaimConnection | |
| 73 | { | |
| 74 | GaimPlugin *prpl; /**< The protocol plugin. */ | |
|
6622
277eb0b14653
[gaim-migrate @ 7146]
Robert McQueen <robot101@debian.org>
parents:
6605
diff
changeset
|
75 | GaimConnectionFlags flags; /**< Connection flags. */ |
| 5563 | 76 | |
| 77 | GaimConnectionState state; /**< The connection state. */ | |
| 78 | ||
| 79 | GaimAccount *account; /**< The account being connected to. */ | |
| 80 | int inpa; /**< The input watcher. */ | |
| 81 | ||
| 82 | GSList *buddy_chats; /**< A list of active chats. */ | |
| 83 | void *proto_data; /**< Protocol-specific data. */ | |
| 84 | ||
| 85 | char *display_name; /**< The name displayed. */ | |
| 86 | guint keep_alive; /**< Keep-alive. */ | |
| 87 | ||
| 88 | guint idle_timer; /**< The idle timer. */ | |
| 89 | time_t login_time; /**< Time of login. */ | |
| 90 | time_t login_time_official; /**< Official time of login. */ | |
| 91 | time_t last_sent_time; /**< The time something was last sent. */ | |
| 92 | int is_idle; /**< Idle state of the connection. */ | |
| 93 | ||
| 94 | char *away; /**< The current away message, or NULL */ | |
| 95 | char *away_state; /**< The last away type. */ | |
| 96 | gboolean is_auto_away; /**< Whether or not it's auto-away. */ | |
| 97 | ||
| 98 | int evil; /**< Warning level for AIM (why is | |
| 99 | this here?) */ | |
| 100 | ||
|
8430
13694e7d1aaa
[gaim-migrate @ 9160]
Mark Doliner <markdoliner@pidgin.im>
parents:
8046
diff
changeset
|
101 | gboolean wants_to_die; /**< Wants to Die state. This is set |
|
13694e7d1aaa
[gaim-migrate @ 9160]
Mark Doliner <markdoliner@pidgin.im>
parents:
8046
diff
changeset
|
102 | when the user chooses to sign off, |
|
13694e7d1aaa
[gaim-migrate @ 9160]
Mark Doliner <markdoliner@pidgin.im>
parents:
8046
diff
changeset
|
103 | or when the protocol is |
|
13694e7d1aaa
[gaim-migrate @ 9160]
Mark Doliner <markdoliner@pidgin.im>
parents:
8046
diff
changeset
|
104 | disconnected and should not be |
|
13694e7d1aaa
[gaim-migrate @ 9160]
Mark Doliner <markdoliner@pidgin.im>
parents:
8046
diff
changeset
|
105 | automatically reconnected |
|
13694e7d1aaa
[gaim-migrate @ 9160]
Mark Doliner <markdoliner@pidgin.im>
parents:
8046
diff
changeset
|
106 | (incorrect password, etc.) */ |
| 6393 | 107 | guint disconnect_timeout; /**< Timer used for nasty stack tricks */ |
| 5563 | 108 | }; |
| 109 | ||
|
5944
f19df037ac58
[gaim-migrate @ 6385]
Christian Hammond <chipx86@chipx86.com>
parents:
5872
diff
changeset
|
110 | #ifdef __cplusplus |
|
f19df037ac58
[gaim-migrate @ 6385]
Christian Hammond <chipx86@chipx86.com>
parents:
5872
diff
changeset
|
111 | extern "C" { |
|
f19df037ac58
[gaim-migrate @ 6385]
Christian Hammond <chipx86@chipx86.com>
parents:
5872
diff
changeset
|
112 | #endif |
|
f19df037ac58
[gaim-migrate @ 6385]
Christian Hammond <chipx86@chipx86.com>
parents:
5872
diff
changeset
|
113 | |
|
f19df037ac58
[gaim-migrate @ 6385]
Christian Hammond <chipx86@chipx86.com>
parents:
5872
diff
changeset
|
114 | /**************************************************************************/ |
|
f19df037ac58
[gaim-migrate @ 6385]
Christian Hammond <chipx86@chipx86.com>
parents:
5872
diff
changeset
|
115 | /** @name Connection API */ |
|
f19df037ac58
[gaim-migrate @ 6385]
Christian Hammond <chipx86@chipx86.com>
parents:
5872
diff
changeset
|
116 | /**************************************************************************/ |
|
6488
6a47a95e4dbb
[gaim-migrate @ 7002]
Christian Hammond <chipx86@chipx86.com>
parents:
6485
diff
changeset
|
117 | /*@{*/ |
|
5944
f19df037ac58
[gaim-migrate @ 6385]
Christian Hammond <chipx86@chipx86.com>
parents:
5872
diff
changeset
|
118 | |
| 5563 | 119 | /** |
| 120 | * Creates a connection to the specified account. | |
| 121 | * | |
| 122 | * @param account The account the connection should be connecting to. | |
| 123 | * | |
| 124 | * @return The gaim connection. | |
| 125 | */ | |
| 126 | GaimConnection *gaim_connection_new(GaimAccount *account); | |
| 127 | ||
| 128 | /** | |
| 129 | * Destroys and closes a gaim connection. | |
| 130 | * | |
| 131 | * @param gc The gaim connection to destroy. | |
| 132 | */ | |
| 133 | void gaim_connection_destroy(GaimConnection *gc); | |
| 134 | ||
| 135 | /** | |
| 136 | * Signs a connection on. | |
| 137 | * | |
| 138 | * @param gc The connection to sign on. | |
| 139 | * | |
| 140 | * @see gaim_connection_disconnect() | |
| 141 | */ | |
| 142 | void gaim_connection_connect(GaimConnection *gc); | |
| 143 | ||
| 144 | /** | |
| 6581 | 145 | * Registers a connection. |
| 146 | * | |
| 147 | * @param gc The connection to register. | |
| 148 | */ | |
| 149 | void gaim_connection_register(GaimConnection *gc); | |
| 150 | ||
| 151 | /** | |
| 5563 | 152 | * Signs a connection off. |
|
6583
198cb8cc465c
[gaim-migrate @ 7105]
Christian Hammond <chipx86@chipx86.com>
parents:
6581
diff
changeset
|
153 | * |
| 5563 | 154 | * @param gc The connection to sign off. |
| 155 | * | |
| 156 | * @see gaim_connection_connect() | |
| 157 | */ | |
| 158 | void gaim_connection_disconnect(GaimConnection *gc); | |
| 159 | ||
| 160 | /** | |
| 161 | * Sets the connection state. | |
| 162 | * | |
| 163 | * @param gc The connection. | |
| 164 | * @param state The connection state. | |
| 165 | */ | |
| 166 | void gaim_connection_set_state(GaimConnection *gc, GaimConnectionState state); | |
| 167 | ||
| 168 | /** | |
| 169 | * Sets the connection's account. | |
| 170 | * | |
| 171 | * @param gc The connection. | |
| 172 | * @param account The account. | |
| 173 | */ | |
| 174 | void gaim_connection_set_account(GaimConnection *gc, GaimAccount *account); | |
| 175 | ||
| 176 | /** | |
| 177 | * Sets the connection's displayed name. | |
| 178 | * | |
| 179 | * @param gc The connection. | |
| 180 | * @param name The displayed name. | |
| 181 | */ | |
| 182 | void gaim_connection_set_display_name(GaimConnection *gc, const char *name); | |
| 183 | ||
| 184 | /** | |
| 185 | * Returns the connection state. | |
| 186 | * | |
| 187 | * @param gc The connection. | |
| 188 | * | |
| 189 | * @return The connection state. | |
| 190 | */ | |
| 191 | GaimConnectionState gaim_connection_get_state(const GaimConnection *gc); | |
| 192 | ||
| 193 | /** | |
|
9019
b9a333b36763
[gaim-migrate @ 9795]
Mark Doliner <markdoliner@pidgin.im>
parents:
8735
diff
changeset
|
194 | * Returns TRUE if the account is connected, otherwise returns FALSE. |
|
b9a333b36763
[gaim-migrate @ 9795]
Mark Doliner <markdoliner@pidgin.im>
parents:
8735
diff
changeset
|
195 | * |
|
b9a333b36763
[gaim-migrate @ 9795]
Mark Doliner <markdoliner@pidgin.im>
parents:
8735
diff
changeset
|
196 | * @return TRUE if the account is connected, otherwise returns FALSE. |
|
b9a333b36763
[gaim-migrate @ 9795]
Mark Doliner <markdoliner@pidgin.im>
parents:
8735
diff
changeset
|
197 | */ |
|
b9a333b36763
[gaim-migrate @ 9795]
Mark Doliner <markdoliner@pidgin.im>
parents:
8735
diff
changeset
|
198 | #define GAIM_CONNECTION_IS_CONNECTED(gc) \ |
|
b9a333b36763
[gaim-migrate @ 9795]
Mark Doliner <markdoliner@pidgin.im>
parents:
8735
diff
changeset
|
199 | (gc->state == GAIM_CONNECTED) |
|
b9a333b36763
[gaim-migrate @ 9795]
Mark Doliner <markdoliner@pidgin.im>
parents:
8735
diff
changeset
|
200 | |
|
b9a333b36763
[gaim-migrate @ 9795]
Mark Doliner <markdoliner@pidgin.im>
parents:
8735
diff
changeset
|
201 | /** |
| 5563 | 202 | * Returns the connection's account. |
| 203 | * | |
| 204 | * @param gc The connection. | |
| 205 | * | |
| 206 | * @return The connection's account. | |
| 207 | */ | |
| 208 | GaimAccount *gaim_connection_get_account(const GaimConnection *gc); | |
| 209 | ||
| 210 | /** | |
| 211 | * Returns the connection's displayed name. | |
| 212 | * | |
| 213 | * @param gc The connection. | |
| 214 | * | |
| 215 | * @return The connection's displayed name. | |
| 216 | */ | |
| 217 | const char *gaim_connection_get_display_name(const GaimConnection *gc); | |
| 218 | ||
| 219 | /** | |
| 220 | * Updates the connection progress. | |
| 221 | * | |
| 222 | * @param gc The connection. | |
| 223 | * @param text Information on the current step. | |
| 224 | * @param step The current step. | |
| 225 | * @param count The total number of steps. | |
| 226 | */ | |
| 227 | void gaim_connection_update_progress(GaimConnection *gc, const char *text, | |
| 228 | size_t step, size_t count); | |
| 229 | ||
| 230 | /** | |
|
5571
b709464f507e
[gaim-migrate @ 5973]
Christian Hammond <chipx86@chipx86.com>
parents:
5564
diff
changeset
|
231 | * Displays a connection-specific notice. |
|
b709464f507e
[gaim-migrate @ 5973]
Christian Hammond <chipx86@chipx86.com>
parents:
5564
diff
changeset
|
232 | * |
|
b709464f507e
[gaim-migrate @ 5973]
Christian Hammond <chipx86@chipx86.com>
parents:
5564
diff
changeset
|
233 | * @param gc The connection. |
|
b709464f507e
[gaim-migrate @ 5973]
Christian Hammond <chipx86@chipx86.com>
parents:
5564
diff
changeset
|
234 | * @param text The notice text. |
|
b709464f507e
[gaim-migrate @ 5973]
Christian Hammond <chipx86@chipx86.com>
parents:
5564
diff
changeset
|
235 | */ |
|
b709464f507e
[gaim-migrate @ 5973]
Christian Hammond <chipx86@chipx86.com>
parents:
5564
diff
changeset
|
236 | void gaim_connection_notice(GaimConnection *gc, const char *text); |
|
b709464f507e
[gaim-migrate @ 5973]
Christian Hammond <chipx86@chipx86.com>
parents:
5564
diff
changeset
|
237 | |
|
b709464f507e
[gaim-migrate @ 5973]
Christian Hammond <chipx86@chipx86.com>
parents:
5564
diff
changeset
|
238 | /** |
|
5564
1779a1bfbdb8
[gaim-migrate @ 5966]
Christian Hammond <chipx86@chipx86.com>
parents:
5563
diff
changeset
|
239 | * Closes a connection with an error. |
|
1779a1bfbdb8
[gaim-migrate @ 5966]
Christian Hammond <chipx86@chipx86.com>
parents:
5563
diff
changeset
|
240 | * |
|
1779a1bfbdb8
[gaim-migrate @ 5966]
Christian Hammond <chipx86@chipx86.com>
parents:
5563
diff
changeset
|
241 | * @param gc The connection. |
|
1779a1bfbdb8
[gaim-migrate @ 5966]
Christian Hammond <chipx86@chipx86.com>
parents:
5563
diff
changeset
|
242 | * @param reason The error text. |
|
1779a1bfbdb8
[gaim-migrate @ 5966]
Christian Hammond <chipx86@chipx86.com>
parents:
5563
diff
changeset
|
243 | */ |
|
1779a1bfbdb8
[gaim-migrate @ 5966]
Christian Hammond <chipx86@chipx86.com>
parents:
5563
diff
changeset
|
244 | void gaim_connection_error(GaimConnection *gc, const char *reason); |
|
1779a1bfbdb8
[gaim-migrate @ 5966]
Christian Hammond <chipx86@chipx86.com>
parents:
5563
diff
changeset
|
245 | |
|
5944
f19df037ac58
[gaim-migrate @ 6385]
Christian Hammond <chipx86@chipx86.com>
parents:
5872
diff
changeset
|
246 | /*@}*/ |
|
f19df037ac58
[gaim-migrate @ 6385]
Christian Hammond <chipx86@chipx86.com>
parents:
5872
diff
changeset
|
247 | |
|
f19df037ac58
[gaim-migrate @ 6385]
Christian Hammond <chipx86@chipx86.com>
parents:
5872
diff
changeset
|
248 | /**************************************************************************/ |
|
f19df037ac58
[gaim-migrate @ 6385]
Christian Hammond <chipx86@chipx86.com>
parents:
5872
diff
changeset
|
249 | /** @name Connections API */ |
|
f19df037ac58
[gaim-migrate @ 6385]
Christian Hammond <chipx86@chipx86.com>
parents:
5872
diff
changeset
|
250 | /**************************************************************************/ |
|
f19df037ac58
[gaim-migrate @ 6385]
Christian Hammond <chipx86@chipx86.com>
parents:
5872
diff
changeset
|
251 | /*@{*/ |
|
f19df037ac58
[gaim-migrate @ 6385]
Christian Hammond <chipx86@chipx86.com>
parents:
5872
diff
changeset
|
252 | |
|
5564
1779a1bfbdb8
[gaim-migrate @ 5966]
Christian Hammond <chipx86@chipx86.com>
parents:
5563
diff
changeset
|
253 | /** |
| 5563 | 254 | * Disconnects from all connections. |
| 255 | */ | |
| 256 | void gaim_connections_disconnect_all(void); | |
| 257 | ||
| 258 | /** | |
| 259 | * Returns a list of all active connections. | |
| 260 | * | |
| 261 | * @return A list of all active connections. | |
| 262 | */ | |
| 263 | GList *gaim_connections_get_all(void); | |
| 264 | ||
|
5564
1779a1bfbdb8
[gaim-migrate @ 5966]
Christian Hammond <chipx86@chipx86.com>
parents:
5563
diff
changeset
|
265 | /** |
|
1779a1bfbdb8
[gaim-migrate @ 5966]
Christian Hammond <chipx86@chipx86.com>
parents:
5563
diff
changeset
|
266 | * Returns a list of all connections in the process of connecting. |
|
1779a1bfbdb8
[gaim-migrate @ 5966]
Christian Hammond <chipx86@chipx86.com>
parents:
5563
diff
changeset
|
267 | * |
|
1779a1bfbdb8
[gaim-migrate @ 5966]
Christian Hammond <chipx86@chipx86.com>
parents:
5563
diff
changeset
|
268 | * @return A list of connecting connections. |
|
1779a1bfbdb8
[gaim-migrate @ 5966]
Christian Hammond <chipx86@chipx86.com>
parents:
5563
diff
changeset
|
269 | */ |
|
1779a1bfbdb8
[gaim-migrate @ 5966]
Christian Hammond <chipx86@chipx86.com>
parents:
5563
diff
changeset
|
270 | GList *gaim_connections_get_connecting(void); |
|
1779a1bfbdb8
[gaim-migrate @ 5966]
Christian Hammond <chipx86@chipx86.com>
parents:
5563
diff
changeset
|
271 | |
| 9221 | 272 | /** |
| 273 | * Checks if gc is still a valid pointer to a gc. | |
| 274 | * | |
| 275 | * @return @c TRUE if gc is valid. | |
| 276 | */ | |
| 277 | #define GAIM_CONNECTION_IS_VALID(gc) (g_list_find(gaim_connections_get_all(), (gc)) || g_list_find(gaim_connections_get_connecting(), (gc))) | |
| 278 | ||
|
5944
f19df037ac58
[gaim-migrate @ 6385]
Christian Hammond <chipx86@chipx86.com>
parents:
5872
diff
changeset
|
279 | /*@}*/ |
|
f19df037ac58
[gaim-migrate @ 6385]
Christian Hammond <chipx86@chipx86.com>
parents:
5872
diff
changeset
|
280 | |
| 5563 | 281 | /**************************************************************************/ |
|
7122
5f40c16a4ae4
[gaim-migrate @ 7689]
Christian Hammond <chipx86@chipx86.com>
parents:
7035
diff
changeset
|
282 | /** @name UI Registration Functions */ |
| 5563 | 283 | /**************************************************************************/ |
| 284 | /*@{*/ | |
| 285 | ||
| 286 | /** | |
| 287 | * Sets the UI operations structure to be used for connections. | |
| 288 | * | |
| 289 | * @param ops The UI operations structure. | |
| 290 | */ | |
|
7035
76bca80cd91d
[gaim-migrate @ 7598]
Christian Hammond <chipx86@chipx86.com>
parents:
6982
diff
changeset
|
291 | void gaim_connections_set_ui_ops(GaimConnectionUiOps *ops); |
| 5563 | 292 | |
| 293 | /** | |
| 294 | * Returns the UI operations structure used for connections. | |
| 295 | * | |
| 296 | * @return The UI operations structure in use. | |
| 297 | */ | |
|
7035
76bca80cd91d
[gaim-migrate @ 7598]
Christian Hammond <chipx86@chipx86.com>
parents:
6982
diff
changeset
|
298 | GaimConnectionUiOps *gaim_connections_get_ui_ops(void); |
| 5563 | 299 | |
| 300 | /*@}*/ | |
| 301 | ||
|
6488
6a47a95e4dbb
[gaim-migrate @ 7002]
Christian Hammond <chipx86@chipx86.com>
parents:
6485
diff
changeset
|
302 | /**************************************************************************/ |
|
6a47a95e4dbb
[gaim-migrate @ 7002]
Christian Hammond <chipx86@chipx86.com>
parents:
6485
diff
changeset
|
303 | /** @name Connections Subsystem */ |
|
6a47a95e4dbb
[gaim-migrate @ 7002]
Christian Hammond <chipx86@chipx86.com>
parents:
6485
diff
changeset
|
304 | /**************************************************************************/ |
|
6a47a95e4dbb
[gaim-migrate @ 7002]
Christian Hammond <chipx86@chipx86.com>
parents:
6485
diff
changeset
|
305 | /*@{*/ |
|
6a47a95e4dbb
[gaim-migrate @ 7002]
Christian Hammond <chipx86@chipx86.com>
parents:
6485
diff
changeset
|
306 | |
|
6a47a95e4dbb
[gaim-migrate @ 7002]
Christian Hammond <chipx86@chipx86.com>
parents:
6485
diff
changeset
|
307 | /** |
|
6a47a95e4dbb
[gaim-migrate @ 7002]
Christian Hammond <chipx86@chipx86.com>
parents:
6485
diff
changeset
|
308 | * Initializes the connections subsystem. |
|
6a47a95e4dbb
[gaim-migrate @ 7002]
Christian Hammond <chipx86@chipx86.com>
parents:
6485
diff
changeset
|
309 | */ |
|
6a47a95e4dbb
[gaim-migrate @ 7002]
Christian Hammond <chipx86@chipx86.com>
parents:
6485
diff
changeset
|
310 | void gaim_connections_init(void); |
|
6a47a95e4dbb
[gaim-migrate @ 7002]
Christian Hammond <chipx86@chipx86.com>
parents:
6485
diff
changeset
|
311 | |
|
6a47a95e4dbb
[gaim-migrate @ 7002]
Christian Hammond <chipx86@chipx86.com>
parents:
6485
diff
changeset
|
312 | /** |
|
6a47a95e4dbb
[gaim-migrate @ 7002]
Christian Hammond <chipx86@chipx86.com>
parents:
6485
diff
changeset
|
313 | * Uninitializes the connections subsystem. |
|
6a47a95e4dbb
[gaim-migrate @ 7002]
Christian Hammond <chipx86@chipx86.com>
parents:
6485
diff
changeset
|
314 | */ |
|
6a47a95e4dbb
[gaim-migrate @ 7002]
Christian Hammond <chipx86@chipx86.com>
parents:
6485
diff
changeset
|
315 | void gaim_connections_uninit(void); |
|
6a47a95e4dbb
[gaim-migrate @ 7002]
Christian Hammond <chipx86@chipx86.com>
parents:
6485
diff
changeset
|
316 | |
|
6a47a95e4dbb
[gaim-migrate @ 7002]
Christian Hammond <chipx86@chipx86.com>
parents:
6485
diff
changeset
|
317 | /** |
|
6a47a95e4dbb
[gaim-migrate @ 7002]
Christian Hammond <chipx86@chipx86.com>
parents:
6485
diff
changeset
|
318 | * Returns the handle to the connections subsystem. |
|
6a47a95e4dbb
[gaim-migrate @ 7002]
Christian Hammond <chipx86@chipx86.com>
parents:
6485
diff
changeset
|
319 | * |
|
6a47a95e4dbb
[gaim-migrate @ 7002]
Christian Hammond <chipx86@chipx86.com>
parents:
6485
diff
changeset
|
320 | * @return The connections subsystem handle. |
|
6a47a95e4dbb
[gaim-migrate @ 7002]
Christian Hammond <chipx86@chipx86.com>
parents:
6485
diff
changeset
|
321 | */ |
|
6a47a95e4dbb
[gaim-migrate @ 7002]
Christian Hammond <chipx86@chipx86.com>
parents:
6485
diff
changeset
|
322 | void *gaim_connections_get_handle(void); |
|
6a47a95e4dbb
[gaim-migrate @ 7002]
Christian Hammond <chipx86@chipx86.com>
parents:
6485
diff
changeset
|
323 | |
|
6a47a95e4dbb
[gaim-migrate @ 7002]
Christian Hammond <chipx86@chipx86.com>
parents:
6485
diff
changeset
|
324 | /*@}*/ |
|
6a47a95e4dbb
[gaim-migrate @ 7002]
Christian Hammond <chipx86@chipx86.com>
parents:
6485
diff
changeset
|
325 | |
|
6a47a95e4dbb
[gaim-migrate @ 7002]
Christian Hammond <chipx86@chipx86.com>
parents:
6485
diff
changeset
|
326 | |
|
5944
f19df037ac58
[gaim-migrate @ 6385]
Christian Hammond <chipx86@chipx86.com>
parents:
5872
diff
changeset
|
327 | #ifdef __cplusplus |
|
f19df037ac58
[gaim-migrate @ 6385]
Christian Hammond <chipx86@chipx86.com>
parents:
5872
diff
changeset
|
328 | } |
|
f19df037ac58
[gaim-migrate @ 6385]
Christian Hammond <chipx86@chipx86.com>
parents:
5872
diff
changeset
|
329 | #endif |
|
f19df037ac58
[gaim-migrate @ 6385]
Christian Hammond <chipx86@chipx86.com>
parents:
5872
diff
changeset
|
330 | |
| 5563 | 331 | #endif /* _GAIM_CONNECTION_H_ */ |