/**
* GMyth Library
*
* @file gmyth/gmyth_upnp.h
*
* @brief
GMythUPnP allows that a MythTV frontend discovers a
* MythTV backend, using the UPnP architecture.
*
* Copyright (C) 2006 INdT - Instituto Nokia de Tecnologia.
* @author Rosfran Lins Borges
*
*//*
*
* This program is free software; you can redistribute it and/or modify
* it under the terms of the GNU Lesser General Public License as published by
* the Free Software Foundation; either version 2 of the License, or
* (at your option) any later version.
*
* This program is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
* GNU General Public License for more details.
*
* You should have received a copy of the GNU Lesser General Public License
* along with this program; if not, write to the Free Software
* Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
*
*/
#ifndef _GMYTH_UPNP_H_
#define _GMYTH_UPNP_H_
#include
#include
#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))
typedef struct _GMythUPnP GMythUPnP;
typedef struct _GMythUPnPClass GMythUPnPClass;
/****************************************
* Data Type
****************************************/
struct _GMythUPnPClass
{
GObjectClass parent_class;
/* callbacks */
/* no one for now */
};
struct _GMythUPnP {
GObject parent;
gchar *uri;
gchar *host;
gint port;
gchar *protocol;
CgUpnpControlPoint* control_point;
gchar *udn;
GMythBackendInfo *gmyth_backend_info;
GList* mythtv_servers;
gboolean upnp_dev_found;
};
GType gmyth_upnp_get_type (void);
GMythUPnP * gmyth_upnp_new ( GMythBackendInfo *gmyth_backend_info );
gchar* gmyth_upnp_get_host ( GMythUPnP *gmyth_upnp );
gint gmyth_upnp_get_port ( GMythUPnP *gmyth_upnp );
GMythBackendInfo* gmyth_upnp_get_backend_info ( GMythUPnP *gmyth_upnp );
G_END_DECLS
#endif /* _GMYTH_UPNP_H_ */