]> sjero.net Git - linphone/blobdiff - coreapi/upnp.h
update ms2 and cleanup dead function
[linphone] / coreapi / upnp.h
index a98e15574f45b78d2d9cfd3c735b540fd43179ec..d785954a4b6006557ecbc044c7e72ce55d0aea84 100644 (file)
@@ -24,16 +24,6 @@ Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA  02111-1307, USA.
 #include "linphonecore.h"
 #include "sal.h"
 
-typedef enum {
-       LinphoneUpnpStateIdle,
-       LinphoneUpnpStatePending, // Only used by uPnP context
-       LinphoneUpnpStateAdding,   // Only used by port binding
-       LinphoneUpnpStateRemoving, // Only used by port binding
-       LinphoneUpnpStateNotAvailable,  // Only used by uPnP context
-       LinphoneUpnpStateOk,
-       LinphoneUpnpStateKo,
-} LinphoneUpnpState;
-
 typedef struct _UpnpSession UpnpSession;
 typedef struct _UpnpContext UpnpContext;
 
@@ -48,7 +38,11 @@ LinphoneUpnpState linphone_upnp_session_get_state(UpnpSession *session);
 
 UpnpContext *linphone_upnp_context_new(LinphoneCore *lc);
 void linphone_upnp_context_destroy(UpnpContext *ctx);
+void linphone_upnp_refresh(UpnpContext *ctx);
 LinphoneUpnpState linphone_upnp_context_get_state(UpnpContext *ctx);
 const char *linphone_upnp_context_get_external_ipaddress(UpnpContext *ctx);
+int linphone_upnp_context_get_external_port(UpnpContext *ctx);
+bool_t linphone_upnp_context_is_ready_for_register(UpnpContext *ctx);
+void linphone_core_update_upnp_state_in_call_stats(LinphoneCall *call);
 
 #endif //LINPHONE_UPNP_H