diff options
Diffstat (limited to 'src/sip-connection.h')
-rw-r--r-- | src/sip-connection.h | 21 |
1 files changed, 12 insertions, 9 deletions
diff --git a/src/sip-connection.h b/src/sip-connection.h index 0af3775..6ddadb7 100644 --- a/src/sip-connection.h +++ b/src/sip-connection.h @@ -22,16 +22,15 @@ #define __TPSIP_CONNECTION_H__ #include <glib-object.h> -#include <dbus/dbus-glib.h> #include <telepathy-glib/base-connection.h> -G_BEGIN_DECLS +#include <tpsip/event-target.h> -typedef struct _TpsipConnection TpsipConnection; -typedef struct _TpsipConnectionClass TpsipConnectionClass; -typedef struct _TpsipConnectionPrivate TpsipConnectionPrivate; +G_BEGIN_DECLS + +#define TPSIP_DEFAULT_STUN_PORT 3478 typedef enum { @@ -42,6 +41,9 @@ typedef enum TPSIP_CONNECTION_KEEPALIVE_STUN, /** Maintain registration with STUN as described in IETF draft-sip-outbound */ } TpsipConnectionKeepaliveMechanism; +typedef struct _TpsipConnection TpsipConnection; +typedef struct _TpsipConnectionClass TpsipConnectionClass; +typedef struct _TpsipConnectionPrivate TpsipConnectionPrivate; struct _TpsipConnectionClass { TpBaseConnectionClass parent_class; @@ -51,10 +53,6 @@ struct _TpsipConnection { TpBaseConnection parent; }; -GType tpsip_connection_get_type(void); - -#define TPSIP_DEFAULT_STUN_PORT 3478 - /* TYPE MACROS */ #define TPSIP_TYPE_CONNECTION \ (tpsip_connection_get_type()) @@ -69,6 +67,11 @@ GType tpsip_connection_get_type(void); #define TPSIP_CONNECTION_GET_CLASS(obj) \ (G_TYPE_INSTANCE_GET_CLASS ((obj), TPSIP_TYPE_CONNECTION, TpsipConnectionClass)) +GType tpsip_connection_get_type (void) G_GNUC_CONST; + +void tpsip_connection_connect_auth_handler (TpsipConnection *self, + TpsipEventTarget *target); + G_END_DECLS #endif /* #ifndef __TPSIP_CONNECTION_H__*/ |