# HG changeset patch # User renatofilho # Date 1204552241 0 # Node ID d2bfa2e06cfa58445e868c0f4c479f0d283a1228 # Parent f3eab6b2011230dcb433c5aaa0c770d87f93c7f1 [svn r947] fixed bugs diff -r f3eab6b20112 -r d2bfa2e06cfa gmyth-upnp/src/gmyth_upnp.c --- a/gmyth-upnp/src/gmyth_upnp.c Mon Mar 03 13:12:42 2008 +0000 +++ b/gmyth-upnp/src/gmyth_upnp.c Mon Mar 03 13:50:41 2008 +0000 @@ -62,7 +62,6 @@ struct _GMythUPnPPrivate { GHashTable *servers; - GMythUPnPDeviceStatus last_status; gboolean upnp_dev_found; gchar *udn; GMutex *mutex; diff -r f3eab6b20112 -r d2bfa2e06cfa gmyth-upnp/src/gmyth_upnp.h --- a/gmyth-upnp/src/gmyth_upnp.h Mon Mar 03 13:12:42 2008 +0000 +++ b/gmyth-upnp/src/gmyth_upnp.h Mon Mar 03 13:50:41 2008 +0000 @@ -32,40 +32,16 @@ #include #include -#include -#include -#include +G_BEGIN_DECLS +#define GMYTH_UPNP_TYPE (gmyth_upnp_get_type ()) +#define GMYTH_UPNP(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), GMYTH_UPNP_TYPE, GMythUPnP)) +#define GMYTH_UPNP_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), GMYTH_UPNP_TYPE, GMythUPnPClass)) +#define IS_GMYTH_UPNP(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), GMYTH_UPNP_TYPE)) +#define IS_GMYTH_UPNP_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), GMYTH_UPNP_TYPE)) +#define GMYTH_UPNP_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), GMYTH_UPNP_TYPE, GMythUPnPClass)) -#include - -G_BEGIN_DECLS -#define GMYTH_UPNP_TYPE (gmyth_upnp_get_type ()) -#define GMYTH_UPNP(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), GMYTH_UPNP_TYPE, GMythUPnP)) -#define GMYTH_UPNP_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), GMYTH_UPNP_TYPE, GMythUPnPClass)) -#define IS_GMYTH_UPNP(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), GMYTH_UPNP_TYPE)) -#define IS_GMYTH_UPNP_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), GMYTH_UPNP_TYPE)) -#define GMYTH_UPNP_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), GMYTH_UPNP_TYPE, GMythUPnPClass)) typedef struct _GMythUPnP GMythUPnP; typedef struct _GMythUPnPClass GMythUPnPClass; -typedef struct _GMythUPnPDevice GMythUPnPDevice; - -/**************************************** -* Data Type -****************************************/ - -typedef enum upnp_device_list_status { - GMYTH_UPNP_DEVICE_ADDED = 0, - GMYTH_UPNP_DEVICE_UPDATED, - GMYTH_UPNP_DEVICE_REMOVED -} GMythUPnPDeviceStatus; - -struct _GMythUPnPDevice { - gchar *uri; - gchar *host; - gint port; - gchar *protocol; -}; - struct _GMythUPnPClass { GObjectClass parent_class; diff -r f3eab6b20112 -r d2bfa2e06cfa gmyth-upnp/tests/main.c --- a/gmyth-upnp/tests/main.c Mon Mar 03 13:12:42 2008 +0000 +++ b/gmyth-upnp/tests/main.c Mon Mar 03 13:50:41 2008 +0000 @@ -28,7 +28,7 @@ #include - +#include #include "gmyth_upnp.h" static void