renatofilho@320: /** renatofilho@320: * GMyth Library renatofilho@320: * renatofilho@320: * @file gmyth/gmyth_common.h renatofilho@320: * renatofilho@320: * @brief

This file contains basic common functions for the gmyth library. renatofilho@320: * renatofilho@320: * Copyright (C) 2006 INdT - Instituto Nokia de Tecnologia. renatofilho@320: * @author Leonardo Sobral Cunha renatofilho@320: * renatofilho@320: *//* renatofilho@320: * renatofilho@320: * This program is free software; you can redistribute it and/or modify renatofilho@320: * it under the terms of the GNU Lesser General Public License as published by renatofilho@320: * the Free Software Foundation; either version 2 of the License, or renatofilho@320: * (at your option) any later version. renatofilho@320: * renatofilho@320: * This program is distributed in the hope that it will be useful, renatofilho@320: * but WITHOUT ANY WARRANTY; without even the implied warranty of renatofilho@320: * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the renatofilho@320: * GNU General Public License for more details. renatofilho@320: * renatofilho@320: * You should have received a copy of the GNU Lesser General Public License renatofilho@320: * along with this program; if not, write to the Free Software renatofilho@320: * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA renatofilho@320: */ renatofilho@320: renatofilho@320: #ifndef GMYTH_COMMON_H_ renatofilho@320: #define GMYTH_COMMON_H_ renatofilho@320: renatofilho@320: #include renatofilho@320: #include renatofilho@320: renatofilho@320: #include "gmyth_programinfo.h" renatofilho@320: renatofilho@320: G_BEGIN_DECLS renatofilho@320: renatofilho@320: /** renatofilho@320: * The GMythChannelInfo structure represents the channel information renatofilho@320: * stored in the backend database. renatofilho@320: */ renatofilho@320: typedef struct { renatofilho@320: /** The channel ID in backend database */ renatofilho@320: gint channel_ID; renatofilho@320: renatofilho@320: GString* channel_num; renatofilho@320: renatofilho@320: /** The channel name in backend database */ renatofilho@320: GString *channel_name; renatofilho@320: renatofilho@320: } GMythChannelInfo; renatofilho@320: renatofilho@320: void gmyth_free_channel_list(GList *list); renatofilho@320: void gmyth_free_program_list(GList *list); renatofilho@320: renatofilho@320: void gmyth_channel_info_print(GMythChannelInfo *channel_info); renatofilho@320: void gmyth_program_info_print(GMythProgramInfo *program_info); renatofilho@320: renatofilho@320: G_END_DECLS renatofilho@320: renatofilho@320: #endif /* GMYTH_COMMON_H_ */