gmyth-upnp/src/gmyth_upnp.c
branchtrunk
changeset 699 3710052a05c9
parent 696 7afeec40ed62
child 700 9ade4c5e5db8
     1.1 --- a/gmyth-upnp/src/gmyth_upnp.c	Tue May 22 19:14:37 2007 +0100
     1.2 +++ b/gmyth-upnp/src/gmyth_upnp.c	Wed May 23 16:29:42 2007 +0100
     1.3 @@ -66,7 +66,7 @@
     1.4  static void gmyth_upnp_dispose  (GObject *object);
     1.5  static void gmyth_upnp_finalize (GObject *object);
     1.6  
     1.7 -static void _mythtv_device_found ( GMythUPnPDeviceStatus status, gchar *dev );
     1.8 +static void _mythtv_device_found ( GMythUPnPDeviceStatus status, gchar *dev, gpointer obj );
     1.9  static void _clinkc_mythtv_device_found ( gchar *udn, GMythUPnPDeviceStatus status );
    1.10  
    1.11  static gboolean gmyth_upnp_initialize ( GMythUPnP *gmyth_upnp, GMythBackendInfo *gmyth_backend_info,
    1.12 @@ -182,7 +182,7 @@
    1.13   * GObject's signal handler
    1.14   */ 
    1.15  static void
    1.16 -_mythtv_device_found( GMythUPnPDeviceStatus status, gchar* udn )
    1.17 +_mythtv_device_found( GMythUPnPDeviceStatus status, gchar* udn, gpointer obj )
    1.18  {
    1.19  	g_debug( "status = %d, UDN = %s\n", status, udn );
    1.20  }
    1.21 @@ -193,7 +193,7 @@
    1.22  static void 
    1.23  _clinkc_mythtv_device_found ( gchar *udn, GMythUPnPDeviceStatus status )
    1.24  {
    1.25 -	if ( gmyth_upnp_static != NULL )
    1.26 +	if ( gmyth_upnp_static != NULL && udn != NULL )
    1.27  		g_signal_emit ( gmyth_upnp_static, 
    1.28  			GMYTH_UPNP_GET_CLASS (gmyth_upnp_static)->device_found_handler_signal_id, 0, /* details */
    1.29  			status, udn );
    1.30 @@ -308,7 +308,7 @@
    1.31  
    1.32  	*mythtv_servers_lst = g_hash_table_new( g_str_hash, g_str_equal );
    1.33  	
    1.34 -	gchar* mythtvFriendlyName = "Myth";
    1.35 +	const gchar* mythtvFriendlyName = "Myth";
    1.36  	/* begin assertion about the size of discovered devices */
    1.37  	gint numDevices = cg_upnp_controlpoint_getndevices(controlPt);
    1.38  	gint cntDevs = 0;