File: page-priv.h

package info (click to toggle)
zapping 0.10~cvs6-2
  • links: PTS
  • area: main
  • in suites: lenny
  • size: 9,856 kB
  • ctags: 11,841
  • sloc: ansic: 111,154; asm: 11,770; sh: 9,812; xml: 2,742; makefile: 1,283; perl: 488
file content (89 lines) | stat: -rw-r--r-- 2,662 bytes parent folder | download | duplicates (8)
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
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
/*
 *  libzvbi - vbi3_page private stuff
 *
 *  Copyright (C) 2000, 2001, 2002, 2003, 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: page-priv.h,v 1.2 2005/01/08 14:54:21 mschimek Exp $ */

#ifndef PAGE_PRIV_H
#define PAGE_PRIV_H

#include "page.h"		/* vbi3_page, vbi3_opacity */
#include "vt.h"			/* magazine, extension, pagenum */
#include "pdc.h"		/* vbi3_preselection */
#include "lang.h"		/* vbi3_character_set */
#include "cache-priv.h"		/* cache_network, cache_page, vbi3_wst_level */

struct _vbi3_page_priv {
	vbi3_page		pg;

	/* Source network, implicitely reference counted. */
	cache_network *		cn;

	/* Only used in _vbi3_page_priv_from_cache_page_va_list(). */
	const magazine *	mag;
	const extension *	ext;

	/* Source page, reference counted. */
	cache_page *		cp;

	/* _vbi3_page_priv_from_cache_page_va_list() parameter. */
	vbi3_wst_level		max_level;

	/* PDC preselection data, if requested and available. */
	vbi3_preselection *	pdc_table;
	unsigned int		pdc_table_size;

	/* Referenced DRCS download pages. */
	cache_page *		drcs_cp[32];

	/** Default primary and secondary character set. */
	const vbi3_character_set *char_set[2];
	/** 0 header, 1 other rows. */
	vbi3_opacity		page_opacity[2];
	vbi3_opacity		boxed_opacity[2];
	/** TOP navigation. */
	vbi3_link		link[6];
	/**
	 * Points from each character in TOP/FLOF row 25 (max 64 columns)
	 * to a link[] element. -1 if no link.
	 */
	int8_t			link_ref[64];
};

/* in teletext.c */
extern vbi3_bool
_vbi3_page_priv_from_cache_page_va_list
				(vbi3_page_priv *	pgp,
				 cache_page *		cp,
				 va_list		format_options);
extern vbi3_bool
_vbi3_page_priv_from_cache_page
				(vbi3_page_priv *	pgp,
				 cache_page *		cp,
				 ...);
extern void
_vbi3_page_priv_dump		(const vbi3_page_priv *	pgp,
				 FILE *			fp,
				 unsigned int		mode);
extern void
_vbi3_page_priv_destroy		(vbi3_page_priv *	pgp);
extern void
_vbi3_page_priv_init		(vbi3_page_priv *	pgp);

#endif /* PAGE_PRIV_H */