author | renatofilho |
Fri Feb 01 19:21:52 2008 +0000 (2008-02-01) | |
branch | trunk |
changeset 907 | 9fa6794e53fb |
parent 755 | 4b5efa290285 |
permissions | -rw-r--r-- |
leo_sobral@1 | 1 |
/** |
leo_sobral@1 | 2 |
* GMyth Library |
leo_sobral@1 | 3 |
* |
leo_sobral@1 | 4 |
* @file gmyth/gmyth_common.h |
leo_sobral@1 | 5 |
* |
leo_sobral@1 | 6 |
* @brief <p> This file contains basic common functions for the gmyth library. |
leo_sobral@1 | 7 |
* |
leo_sobral@1 | 8 |
* Copyright (C) 2006 INdT - Instituto Nokia de Tecnologia. |
leo_sobral@1 | 9 |
* @author Leonardo Sobral Cunha <leonardo.cunha@indt.org.br> |
rosfran@420 | 10 |
* @author Rosfran Borges <rosfran.borges@indt.org.br> |
leo_sobral@1 | 11 |
* |
rosfran@701 | 12 |
* |
rosfran@701 | 13 |
* This program is free software; you can redistribute it and/or modify |
rosfran@701 | 14 |
* it under the terms of the GNU Lesser General Public License as published by |
rosfran@701 | 15 |
* the Free Software Foundation; either version 2 of the License, or |
rosfran@701 | 16 |
* (at your option) any later version. |
rosfran@701 | 17 |
* |
rosfran@701 | 18 |
* This program is distributed in the hope that it will be useful, |
rosfran@701 | 19 |
* but WITHOUT ANY WARRANTY; without even the implied warranty of |
rosfran@701 | 20 |
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the |
rosfran@701 | 21 |
* GNU General Public License for more details. |
rosfran@701 | 22 |
* |
rosfran@701 | 23 |
* You should have received a copy of the GNU Lesser General Public License |
rosfran@701 | 24 |
* along with this program; if not, write to the Free Software |
rosfran@701 | 25 |
* Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA |
rosfran@701 | 26 |
*/ |
leo_sobral@1 | 27 |
|
leo_sobral@1 | 28 |
#ifndef GMYTH_COMMON_H_ |
leo_sobral@1 | 29 |
#define GMYTH_COMMON_H_ |
leo_sobral@1 | 30 |
|
leo_sobral@1 | 31 |
#include <glib.h> |
leo_sobral@1 | 32 |
#include <time.h> |
leo_sobral@1 | 33 |
|
rosfran@291 | 34 |
#include "gmyth_programinfo.h" |
rosfran@291 | 35 |
|
leo_sobral@6 | 36 |
G_BEGIN_DECLS |
renatofilho@886 | 37 |
/** |
renatofilho@886 | 38 |
* The GMythChannelInfo structure represents the channel information |
renatofilho@886 | 39 |
* stored in the backend database. |
renatofilho@886 | 40 |
*/ |
renatofilho@754 | 41 |
typedef struct { |
renatofilho@754 | 42 |
/** The channel ID in backend database */ |
renatofilho@754 | 43 |
gint channel_ID; |
rosfran@698 | 44 |
|
renatofilho@754 | 45 |
/** The channel number */ |
renatofilho@754 | 46 |
GString *channel_num; |
rosfran@698 | 47 |
|
renatofilho@754 | 48 |
/** The channel name in backend database */ |
renatofilho@754 | 49 |
GString *channel_name; |
leo_sobral@1 | 50 |
|
renatofilho@754 | 51 |
/** The channel icon path in the backend database */ |
renatofilho@754 | 52 |
GString *channel_icon; |
renatofilho@750 | 53 |
} GMythChannelInfo; |
leo_sobral@1 | 54 |
|
renatofilho@755 | 55 |
void gmyth_free_channel_list (GList *list); |
renatofilho@755 | 56 |
void gmyth_free_program_list (GList *list); |
renatofilho@755 | 57 |
void gmyth_channel_info_free (GMythChannelInfo *channel_info); |
renatofilho@755 | 58 |
void gmyth_channel_info_print (GMythChannelInfo *channel_info); |
renatofilho@755 | 59 |
void gmyth_program_info_print (GMythProgramInfo *program_info); |
leo_sobral@49 | 60 |
|
leo_sobral@6 | 61 |
G_END_DECLS |
renatofilho@754 | 62 |
#endif /* GMYTH_COMMON_H_ */ |