gmyth/src/gmyth_common.h
author rosfran
Tue Jan 23 21:37:27 2007 +0000 (2007-01-23)
branchtrunk
changeset 291 73fa3a0f2f08
parent 214 254e85c43269
child 307 0a8fe4427e41
permissions -rw-r--r--
[svn r292] GObject format to the GMythProgramInfo, new actions such as GET_PROGRAM_INFO and GET_CURRENT_RECORDER.
     1 /**
     2  * GMyth Library
     3  * 
     4  * @file gmyth/gmyth_common.h
     5  * 
     6  * @brief <p> This file contains basic common functions for the gmyth library.
     7  *
     8  * Copyright (C) 2006 INdT - Instituto Nokia de Tecnologia.
     9  * @author Leonardo Sobral Cunha <leonardo.cunha@indt.org.br>
    10  *
    11  *//*
    12  * 
    13  * This program is free software; you can redistribute it and/or modify
    14  * it under the terms of the GNU Lesser General Public License as published by
    15  * the Free Software Foundation; either version 2 of the License, or
    16  * (at your option) any later version.
    17  *
    18  * This program 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
    21  * GNU General Public License for more details.
    22  *
    23  * You should have received a copy of the GNU Lesser General Public License
    24  * along with this program; if not, write to the Free Software
    25  * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA  02111-1307  USA
    26  */
    27 
    28 #ifndef GMYTH_COMMON_H_
    29 #define GMYTH_COMMON_H_
    30 
    31 #include <glib.h>
    32 #include <time.h>
    33 
    34 #include "gmyth_programinfo.h"
    35 
    36 G_BEGIN_DECLS
    37 
    38 /**
    39  * The GMythChannelInfo structure represents the channel information
    40  * stored in the backend database.
    41  */
    42 typedef struct {
    43 	/** The channel ID in backend database */
    44 	gint channel_ID;
    45 	
    46 	/** The channel name in backend database */
    47 	GString *channel_name;
    48 
    49 } GMythChannelInfo;
    50 
    51 void gmyth_free_channel_list(GList *list);
    52 void gmyth_free_program_list(GList *list);
    53 
    54 void gmyth_channel_info_print(GMythChannelInfo *channel_info);
    55 void gmyth_program_info_print(GMythProgramInfo *program_info);
    56 
    57 G_END_DECLS
    58 
    59 #endif /* GMYTH_COMMON_H_ */