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