diff -r 8a052155157a -r f19df037ac58 src/connection.h --- a/src/connection.h Mon Jun 23 02:00:15 2003 +0000 +++ b/src/connection.h Mon Jun 23 06:40:13 2003 +0000 @@ -28,9 +28,6 @@ typedef struct _GaimConnection GaimConnection; -#include "account.h" -#include "plugin.h" - #define OPT_CONN_HTML 0x00000001 /* set this flag on a gc if you want serv_got_im to autoreply when away */ #define OPT_CONN_AUTO_RESP 0x00000002 @@ -43,6 +40,9 @@ } GaimConnectionState; +#include "account.h" +#include "plugin.h" + typedef struct { void (*connect_progress)(GaimConnection *gc, const char *text, @@ -86,6 +86,14 @@ gboolean wants_to_die; /**< Wants to Die state. */ }; +#ifdef __cplusplus +extern "C" { +#endif + +/**************************************************************************/ +/** @name Connection API */ +/**************************************************************************/ + /** * Creates a connection to the specified account. * @@ -198,6 +206,13 @@ */ void gaim_connection_error(GaimConnection *gc, const char *reason); +/*@}*/ + +/**************************************************************************/ +/** @name Connections API */ +/**************************************************************************/ +/*@{*/ + /** * Disconnects from all connections. */ @@ -217,6 +232,8 @@ */ GList *gaim_connections_get_connecting(void); +/*@}*/ + /**************************************************************************/ /** @name UI Operations API */ /**************************************************************************/ @@ -238,4 +255,8 @@ /*@}*/ +#ifdef __cplusplus +} +#endif + #endif /* _GAIM_CONNECTION_H_ */