gmyth-upnp/src/gmyth_upnp.h
author renatofilho
Mon Mar 03 13:50:41 2008 +0000 (2008-03-03)
branchtrunk
changeset 938 d2bfa2e06cfa
parent 922 04cd5e61dca3
permissions -rw-r--r--
[svn r947] fixed bugs
     1 /**
     2  * GMyth Library
     3  *
     4  * @file gmyth/gmyth_upnp.h
     5  * 
     6  * @brief <p> GMythUPnP allows that a MythTV frontend discovers a 
     7  * MythTV backend, using the UPnP architecture.
     8  *
     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>
    12  *
    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.
    17  *
    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.
    22  *
    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.
    27  */
    28 
    29 #ifndef _GMYTH_UPNP_H_
    30 #define _GMYTH_UPNP_H_
    31 
    32 #include <glib.h>
    33 #include <glib-object.h>
    34 
    35 G_BEGIN_DECLS
    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))
    42 
    43 typedef struct _GMythUPnP GMythUPnP;
    44 typedef struct _GMythUPnPClass GMythUPnPClass;
    45 
    46 struct _GMythUPnPClass {
    47     GObjectClass    parent_class;
    48 };
    49 
    50 struct _GMythUPnP {
    51     GObject         parent;
    52 };
    53 
    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);
    58 
    59 G_END_DECLS
    60 #endif                          /* _GMYTH_UPNP_H_ */