Mercurial > pidgin.yaz
diff 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 |
line wrap: on
line diff
--- 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_ */