diff options
author | Youness Alaoui <youness.alaoui@collabora.co.uk> | 2009-04-24 20:10:30 -0400 |
---|---|---|
committer | Youness Alaoui <youness.alaoui@collabora.co.uk> | 2009-04-24 20:10:30 -0400 |
commit | 02ff6c5f65fa1f5cd380444aa0fba98bb45c159d (patch) | |
tree | 5cf527d0cfbe48da63a63262415405f84c3285c4 /agent/agent-priv.h | |
parent | c4968e094c6bdf14f09dafa295696f6f356e38dd (diff) | |
download | libnice-02ff6c5f65fa1f5cd380444aa0fba98bb45c159d.tar.gz |
Add UPnP support to libnice
Diffstat (limited to 'agent/agent-priv.h')
-rw-r--r-- | agent/agent-priv.h | 18 |
1 files changed, 18 insertions, 0 deletions
diff --git a/agent/agent-priv.h b/agent/agent-priv.h index ff31c80..c3d389f 100644 --- a/agent/agent-priv.h +++ b/agent/agent-priv.h @@ -41,6 +41,13 @@ /* note: this is a private header part of agent.h */ + +#ifdef HAVE_CONFIG_H +# include <config.h> +#else +#define NICEAPI_EXPORT +#endif + #include <glib.h> #include "agent.h" @@ -53,6 +60,10 @@ #include "stun/usages/turn.h" #include "stun/usages/ice.h" +#ifdef HAVE_GUPNP +#include <libgupnp-igd/gupnp-simple-igd.h> +#endif + /* XXX: starting from ICE ID-18, Ta SHOULD now be set according * to session bandwidth -> this is not yet implemented in NICE */ @@ -101,6 +112,13 @@ struct _NiceAgent GStaticRecMutex mutex; /* Mutex used for thread-safe lib */ NiceCompatibility compatibility; /* property: Compatibility mode */ StunAgent stun_agent; /* STUN agent */ +#ifdef HAVE_GUPNP + GUPnPSimpleIgd* upnp; /* GUPnP Single IGD agent */ + gboolean upnp_enabled; /* whether UPnP discovery is enabled */ + guint upnp_timeout; /* UPnP discovery timeout */ + GSList *upnp_mapping; /* list of Candidates being mapped */ + GSource *upnp_timer_source; /* source of upnp timeout timer */ +#endif /* XXX: add pointer to internal data struct for ABI-safe extensions */ }; |