[farsight2/master] Remove new-external-ip signal

Olivier Crête olivier.crete at collabora.co.uk
Tue Dec 23 15:25:05 PST 2008


---
 gst-libs/ext/fsupnp/fs-upnp-simple-igd.c |   22 ----------------------
 1 files changed, 0 insertions(+), 22 deletions(-)

diff --git a/gst-libs/ext/fsupnp/fs-upnp-simple-igd.c b/gst-libs/ext/fsupnp/fs-upnp-simple-igd.c
index cba7349..c874904 100644
--- a/gst-libs/ext/fsupnp/fs-upnp-simple-igd.c
+++ b/gst-libs/ext/fsupnp/fs-upnp-simple-igd.c
@@ -80,7 +80,6 @@ struct ProxyMapping {
 /* signals */
 enum
 {
-  SIGNAL_NEW_EXTERNAL_IP,
   SIGNAL_MAPPED_EXTERNAL_PORT,
   SIGNAL_ERROR_MAPPING_PORT,
   LAST_SIGNAL
@@ -175,24 +174,6 @@ fs_upnp_simple_igd_class_init (FsUpnpSimpleIgdClass *klass)
           "This GMainContext will be used for all async activities",
           G_PARAM_READWRITE | G_PARAM_CONSTRUCT_ONLY));
 
-   /**
-   * FsUpnpSimpleIgd::new-external-ip
-   * @self: #FsUpnpSimpleIgd that emitted the signal
-   * @ip: The string representing the new external IP
-   *
-   * This signal means that a new external IP has been found on an IGD.
-   *
-   */
-  signals[SIGNAL_NEW_EXTERNAL_IP] = g_signal_new ("new-external-ip",
-      G_TYPE_FROM_CLASS (klass),
-      G_SIGNAL_RUN_LAST,
-      0,
-      NULL,
-      NULL,
-      g_cclosure_marshal_VOID__STRING,
-      G_TYPE_NONE, 1, G_TYPE_STRING);
-
-
   /**
    * FsUpnpSimpleIgd::mapped-external-port
    * @self: #FsUpnpSimpleIgd that emitted the signal
@@ -520,9 +501,6 @@ _service_proxy_got_external_ip_address (GUPnPServiceProxy *proxy,
 
     g_free (prox->external_ip);
     prox->external_ip = g_strdup (ip);
-
-    g_signal_emit (self, signals[SIGNAL_NEW_EXTERNAL_IP], 0,
-        ip);
   }
   else
   {
-- 
1.5.6.5




More information about the farsight-commits mailing list