melunko@250: /** melunko@250: * GMyth Library melunko@250: * melunko@250: * @file gmyth/gmyth_upnp.h melunko@250: * melunko@250: * @brief

GMythUPnP allows that a MythTV frontend discovers a melunko@250: * MythTV backend, using the UPnP architecture. melunko@250: * melunko@250: * Copyright (C) 2006 INdT - Instituto Nokia de Tecnologia. melunko@250: * @author Rosfran Lins Borges renatofilho@922: * @authon Renato Araujo Oliveira Filho melunko@250: * renatofilho@922: * This library is free software; you can redistribute it and/or renatofilho@922: * modify it under the terms of the GNU Library General Public renatofilho@922: * License as published by the Free Software Foundation; either renatofilho@922: * version 2 of the License, or (at your option) any later version. melunko@250: * renatofilho@922: * This library is distributed in the hope that it will be useful, melunko@250: * but WITHOUT ANY WARRANTY; without even the implied warranty of renatofilho@922: * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU renatofilho@922: * Library General Public License for more details. melunko@250: * renatofilho@922: * You should have received a copy of the GNU Library General Public renatofilho@922: * License along with this library; if not, write to the renatofilho@922: * Free Software Foundation, Inc., 59 Temple Place - Suite 330, renatofilho@922: * Boston, MA 02111-1307, USA. melunko@250: */ melunko@250: melunko@250: #ifndef _GMYTH_UPNP_H_ melunko@250: #define _GMYTH_UPNP_H_ melunko@250: melunko@250: #include melunko@250: #include melunko@250: melunko@250: #include melunko@250: #include melunko@250: #include melunko@250: rosfran@260: #include melunko@250: melunko@250: G_BEGIN_DECLS melunko@250: #define GMYTH_UPNP_TYPE (gmyth_upnp_get_type ()) melunko@250: #define GMYTH_UPNP(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), GMYTH_UPNP_TYPE, GMythUPnP)) melunko@250: #define GMYTH_UPNP_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), GMYTH_UPNP_TYPE, GMythUPnPClass)) melunko@250: #define IS_GMYTH_UPNP(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), GMYTH_UPNP_TYPE)) melunko@250: #define IS_GMYTH_UPNP_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), GMYTH_UPNP_TYPE)) melunko@250: #define GMYTH_UPNP_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), GMYTH_UPNP_TYPE, GMythUPnPClass)) renatofilho@754: typedef struct _GMythUPnP GMythUPnP; renatofilho@754: typedef struct _GMythUPnPClass GMythUPnPClass; renatofilho@909: typedef struct _GMythUPnPDevice GMythUPnPDevice; melunko@250: melunko@250: /**************************************** melunko@250: * Data Type melunko@250: ****************************************/ melunko@250: rosfran@696: typedef enum upnp_device_list_status { renatofilho@754: GMYTH_UPNP_DEVICE_ADDED = 0, renatofilho@754: GMYTH_UPNP_DEVICE_UPDATED, renatofilho@754: GMYTH_UPNP_DEVICE_REMOVED rosfran@696: } GMythUPnPDeviceStatus; rosfran@696: renatofilho@909: struct _GMythUPnPDevice { renatofilho@909: gchar *uri; renatofilho@909: gchar *host; renatofilho@909: gint port; renatofilho@909: gchar *protocol; renatofilho@909: }; renatofilho@909: rosfran@696: renatofilho@754: struct _GMythUPnPClass { renatofilho@754: GObjectClass parent_class; melunko@250: }; melunko@250: renatofilho@909: struct _GMythUPnP { renatofilho@909: GObject parent; rosfran@696: }; rosfran@696: renatofilho@909: GType gmyth_upnp_get_type (void); renatofilho@909: GMythUPnP* gmyth_upnp_get_instance (void); renatofilho@909: void gmyth_upnp_search (GMythUPnP * gmyth_upnp); renatofilho@915: GList* gmyth_upnp_get_devices (GMythUPnP * gmyth_upnp); rosfran@706: melunko@250: G_END_DECLS renatofilho@754: #endif /* _GMYTH_UPNP_H_ */