1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65
|
/*
* libzvbi - Tables Of Pages
*
* Copyright (C) 2004 Michael H. Schimek
*
* This program is free software; you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
* the Free Software Foundation; either version 2 of the License, or
* (at your option) any later version.
*
* This program is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
* GNU General Public License for more details.
*
* You should have received a copy of the GNU General Public License
* along with this program; if not, write to the Free Software
* Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
*/
/* $Id: top_title.h,v 1.3 2005/01/31 07:13:28 mschimek Exp $ */
#ifndef __ZVBI3_TOP_TITLE_H__
#define __ZVBI3_TOP_TITLE_H__
#include <stdarg.h>
#include "bcd.h" /* vbi3_pgno, vbi3_subno */
VBI3_BEGIN_DECLS
/**
* @brief Title of a page in a Table Of Pages array.
*/
typedef struct {
/** Title of the page, localized. */
char * title;
/** Page number. */
vbi3_pgno pgno;
/** Subpage number or @c VBI3_ANY_SUBNO. */
vbi3_subno subno;
/**
* Whether this is the first page in a group or block. More
* information is available through vbi3_cache_get_ttx_page_stat().
*/
vbi3_bool group;
int reserved[2];
} vbi3_top_title;
extern void
vbi3_top_title_destroy (vbi3_top_title * tt)
__attribute__ ((_vbi3_nonnull (1)));
extern vbi3_bool
vbi3_top_title_copy (vbi3_top_title * dst,
const vbi3_top_title * src)
__attribute__ ((_vbi3_nonnull (1)));
extern void
vbi3_top_title_init (vbi3_top_title * tt)
__attribute__ ((_vbi3_nonnull (1)));
extern void
vbi3_top_title_array_delete (vbi3_top_title * tt,
unsigned int n_elements);
VBI3_END_DECLS
#endif /* __ZVBI3_TOP_TITLE_H__ */
|