1 /*
2  *  libzvbi -- Video Programming System
3  *
4  *  Copyright (C) 2000-2004 Michael H. Schimek
5  *
6  *  This library is free software; you can redistribute it and/or
7  *  modify it under the terms of the GNU Library General Public
8  *  License as published by the Free Software Foundation; either
9  *  version 2 of the License, or (at your option) any later version.
10  *
11  *  This library is distributed in the hope that it will be useful,
12  *  but WITHOUT ANY WARRANTY; without even the implied warranty of
13  *  MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
14  *  Library General Public License for more details.
15  *
16  *  You should have received a copy of the GNU Library General Public
17  *  License along with this library; if not, write to the
18  *  Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor,
19  *  Boston, MA  02110-1301  USA.
20  */
21 
22 /* $Id: vps.h,v 1.9 2009/03/04 21:48:35 mschimek Exp $ */
23 
24 #ifndef __ZVBI_VPS_H__
25 #define __ZVBI_VPS_H__
26 
27 #include <inttypes.h>		/* uint8_t */
28 #include "macros.h"
29 #include "pdc.h"		/* vbi_program_id */
30 
31 VBI_BEGIN_DECLS
32 
33 /* Public */
34 
35 /**
36  * @addtogroup VPS
37  * @{
38  */
39 extern vbi_bool
40 vbi_decode_vps_cni		(unsigned int *		cni,
41 				 const uint8_t		buffer[13])
42 #ifndef DOXYGEN_SHOULD_SKIP_THIS
43   _vbi_nonnull ((1, 2))
44 #endif
45   ;
46 extern vbi_bool
47 vbi_encode_vps_cni		(uint8_t		buffer[13],
48 				 unsigned int		cni)
49   _vbi_nonnull ((1));
50 extern vbi_bool
51 vbi_decode_vps_pdc		(vbi_program_id *	pid,
52 				 const uint8_t		buffer[13])
53 #ifndef DOXYGEN_SHOULD_SKIP_THIS
54   _vbi_nonnull ((1, 2))
55 #endif
56   ;
57 extern vbi_bool
58 vbi_encode_vps_pdc		(uint8_t		buffer[13],
59 				 const vbi_program_id *	pid)
60 #ifndef DOXYGEN_SHOULD_SKIP_THIS
61   _vbi_nonnull ((1, 2))
62 #endif
63   ;
64 vbi_bool
65 vbi_decode_dvb_pdc_descriptor	(vbi_program_id *	pid,
66 				 const uint8_t		buffer[5])
67 #ifndef DOXYGEN_SHOULD_SKIP_THIS
68   _vbi_nonnull ((1, 2))
69 #endif
70   ;
71 vbi_bool
72 vbi_encode_dvb_pdc_descriptor	(uint8_t		buffer[5],
73 				 const vbi_program_id *	pid)
74 #ifndef DOXYGEN_SHOULD_SKIP_THIS
75   _vbi_nonnull ((1, 2))
76 #endif
77   ;
78 
79 /** @} */
80 
81 /* Private */
82 
83 VBI_END_DECLS
84 
85 #endif /* __ZVBI_VPS_H__ */
86 
87 /*
88 Local variables:
89 c-set-style: K&R
90 c-basic-offset: 8
91 End:
92 */
93