branches/gmyth-0.1b/src/gmyth_common.h
branchtrunk
changeset 333 f9d778bb88a2
     1.1 --- /dev/null	Thu Jan 01 00:00:00 1970 +0000
     1.2 +++ b/branches/gmyth-0.1b/src/gmyth_common.h	Wed Feb 07 20:38:39 2007 +0000
     1.3 @@ -0,0 +1,61 @@
     1.4 +/**
     1.5 + * GMyth Library
     1.6 + * 
     1.7 + * @file gmyth/gmyth_common.h
     1.8 + * 
     1.9 + * @brief <p> This file contains basic common functions for the gmyth library.
    1.10 + *
    1.11 + * Copyright (C) 2006 INdT - Instituto Nokia de Tecnologia.
    1.12 + * @author Leonardo Sobral Cunha <leonardo.cunha@indt.org.br>
    1.13 + *
    1.14 + *//*
    1.15 + * 
    1.16 + * This program is free software; you can redistribute it and/or modify
    1.17 + * it under the terms of the GNU Lesser General Public License as published by
    1.18 + * the Free Software Foundation; either version 2 of the License, or
    1.19 + * (at your option) any later version.
    1.20 + *
    1.21 + * This program is distributed in the hope that it will be useful,
    1.22 + * but WITHOUT ANY WARRANTY; without even the implied warranty of
    1.23 + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
    1.24 + * GNU General Public License for more details.
    1.25 + *
    1.26 + * You should have received a copy of the GNU Lesser General Public License
    1.27 + * along with this program; if not, write to the Free Software
    1.28 + * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA  02111-1307  USA
    1.29 + */
    1.30 +
    1.31 +#ifndef GMYTH_COMMON_H_
    1.32 +#define GMYTH_COMMON_H_
    1.33 +
    1.34 +#include <glib.h>
    1.35 +#include <time.h>
    1.36 +
    1.37 +#include "gmyth_programinfo.h"
    1.38 +
    1.39 +G_BEGIN_DECLS
    1.40 +
    1.41 +/**
    1.42 + * The GMythChannelInfo structure represents the channel information
    1.43 + * stored in the backend database.
    1.44 + */
    1.45 +typedef struct {
    1.46 +	/** The channel ID in backend database */
    1.47 +	gint channel_ID;
    1.48 +	
    1.49 +	GString* channel_num; 
    1.50 +	
    1.51 +	/** The channel name in backend database */
    1.52 +	GString *channel_name;
    1.53 +
    1.54 +} GMythChannelInfo;
    1.55 +
    1.56 +void gmyth_free_channel_list(GList *list);
    1.57 +void gmyth_free_program_list(GList *list);
    1.58 +
    1.59 +void gmyth_channel_info_print(GMythChannelInfo *channel_info);
    1.60 +void gmyth_program_info_print(GMythProgramInfo *program_info);
    1.61 +
    1.62 +G_END_DECLS
    1.63 +
    1.64 +#endif /* GMYTH_COMMON_H_ */