diff -r 5cc97240e238 -r 366b0fd1eead gmyth-upnp/src/gmyth_upnp.h --- a/gmyth-upnp/src/gmyth_upnp.h Thu May 24 01:26:10 2007 +0100 +++ b/gmyth-upnp/src/gmyth_upnp.h Wed Jul 04 08:38:36 2007 +0100 @@ -39,76 +39,79 @@ #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 _GMythUPnPPrivate GMythUPnPPrivate; +typedef struct _GMythUPnP GMythUPnP; +typedef struct _GMythUPnPClass GMythUPnPClass; +typedef struct _GMythUPnPPrivate GMythUPnPPrivate; /**************************************** * Data Type ****************************************/ typedef enum upnp_device_list_status { - GMYTH_UPNP_DEVICE_ADDED = 0, - GMYTH_UPNP_DEVICE_UPDATED, - GMYTH_UPNP_DEVICE_REMOVED + GMYTH_UPNP_DEVICE_ADDED = 0, + GMYTH_UPNP_DEVICE_UPDATED, + GMYTH_UPNP_DEVICE_REMOVED } GMythUPnPDeviceStatus; -typedef void (*GMythUPnPDeviceListener) ( GMythUPnP *gmyth_upnp, GMythUPnPDeviceStatus status, gchar *dev ); +typedef void (*GMythUPnPDeviceListener) (GMythUPnP * gmyth_upnp, + GMythUPnPDeviceStatus status, + gchar * dev); -struct _GMythUPnPClass -{ - GObjectClass parent_class; +struct _GMythUPnPClass { + GObjectClass parent_class; - /* callbacks */ - guint device_found_handler_signal_id; + /* + * callbacks + */ + guint device_found_handler_signal_id; - GMythUPnPDeviceListener device_found_handler; + GMythUPnPDeviceListener device_found_handler; - /* no one for now */ + /* + * no one for now + */ }; struct _GMythUPnPDevice { - gchar *uri; - gchar *host; - gint port; - gchar *protocol; + gchar *uri; + gchar *host; + gint port; + gchar *protocol; }; typedef struct _GMythUPnPDevice GMythUPnPDevice; struct _GMythUPnP { - - GObject parent; - GMythUPnPPrivate *priv; - - CgUpnpControlPoint* control_point; - - gchar *udn; - - GMythBackendInfo *backend_info; + GObject parent; + GMythUPnPPrivate *priv; - gboolean upnp_dev_found; + + CgUpnpControlPoint *control_point; + + gchar *udn; + + GMythBackendInfo *backend_info; + + gboolean upnp_dev_found; }; -GType gmyth_upnp_get_type (void); -GMythUPnP * gmyth_upnp_new ( GMythBackendInfo *gmyth_backend_info, - GMythUPnPDeviceListener handler ); +GType gmyth_upnp_get_type(void); +GMythUPnP *gmyth_upnp_new(GMythBackendInfo * gmyth_backend_info, + GMythUPnPDeviceListener handler); -GList * gmyth_upnp_do_search_sync( GMythUPnP* gmyth_upnp ); +GList *gmyth_upnp_do_search_sync(GMythUPnP * gmyth_upnp); -GMythBackendInfo* gmyth_upnp_get_backend_info ( GMythUPnP *gmyth_upnp ); +GMythBackendInfo *gmyth_upnp_get_backend_info(GMythUPnP * gmyth_upnp); -gchar * gmyth_upnp_device_status_to_string( GMythUPnPDeviceStatus status ); +gchar *gmyth_upnp_device_status_to_string(GMythUPnPDeviceStatus + status); G_END_DECLS - -#endif /* _GMYTH_UPNP_H_ */ +#endif /* _GMYTH_UPNP_H_ */