4 * @file gmyth/gmyth_upnp.h
6 * @brief <p> GMythUPnP allows that a MythTV frontend discovers a
7 * MythTV backend, using the UPnP architecture.
9 * Copyright (C) 2006 INdT - Instituto Nokia de Tecnologia.
10 * @author Rosfran Lins Borges <rosfran.borges@indt.org.br>
11 * @authon Renato Araujo Oliveira Filho <renato.filho@indt.org.br>
13 * This library is free software; you can redistribute it and/or
14 * modify it under the terms of the GNU Library General Public
15 * License as published by the Free Software Foundation; either
16 * version 2 of the License, or (at your option) any later version.
18 * This library is distributed in the hope that it will be useful,
19 * but WITHOUT ANY WARRANTY; without even the implied warranty of
20 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
21 * Library General Public License for more details.
23 * You should have received a copy of the GNU Library General Public
24 * License along with this library; if not, write to the
25 * Free Software Foundation, Inc., 59 Temple Place - Suite 330,
26 * Boston, MA 02111-1307, USA.
29 #ifndef _GMYTH_UPNP_H_
30 #define _GMYTH_UPNP_H_
33 #include <glib-object.h>
36 #define GMYTH_UPNP_TYPE (gmyth_upnp_get_type ())
37 #define GMYTH_UPNP(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), GMYTH_UPNP_TYPE, GMythUPnP))
38 #define GMYTH_UPNP_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), GMYTH_UPNP_TYPE, GMythUPnPClass))
39 #define IS_GMYTH_UPNP(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), GMYTH_UPNP_TYPE))
40 #define IS_GMYTH_UPNP_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), GMYTH_UPNP_TYPE))
41 #define GMYTH_UPNP_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), GMYTH_UPNP_TYPE, GMythUPnPClass))
43 typedef struct _GMythUPnP GMythUPnP;
44 typedef struct _GMythUPnPClass GMythUPnPClass;
46 struct _GMythUPnPClass {
47 GObjectClass parent_class;
54 GType gmyth_upnp_get_type (void);
55 GMythUPnP* gmyth_upnp_get_instance (void);
56 void gmyth_upnp_search (GMythUPnP * gmyth_upnp);
57 GList* gmyth_upnp_get_devices (GMythUPnP * gmyth_upnp);
60 #endif /* _GMYTH_UPNP_H_ */