/[public]/psiconv/trunk/lib/psiconv/generate_routines.h
ViewVC logotype

Contents of /psiconv/trunk/lib/psiconv/generate_routines.h

Parent Directory Parent Directory | Revision Log Revision Log


Revision 71 - (show annotations)
Fri Dec 22 22:31:50 2000 UTC (23 years, 4 months ago) by frodo
File MIME type: text/plain
File size: 1866 byte(s)
(Frodo) First generate routines! Reshuffled a few things to make it all work out

1 /*
2 generate_routines.h - Part of psiconv, a PSION 5 file formats converter
3 Copyright (c) 2000 Frodo Looijaard <frodol@dds.nl>
4
5 This program is free software; you can redistribute it and/or modify
6 it under the terms of the GNU General Public License as published by
7 the Free Software Foundation; either version 2 of the License, or
8 (at your option) any later version.
9
10 This program is distributed in the hope that it will be useful,
11 but WITHOUT ANY WARRANTY; without even the implied warranty of
12 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
13 GNU General Public License for more details.
14
15 You should have received a copy of the GNU General Public License
16 along with this program; if not, write to the Free Software
17 Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
18 */
19
20 #ifndef PSICONV_GENERATE_ROUTINES_H
21 #define PSICONV_GENERATE_ROUTINES_H
22
23 #include <psiconv/general.h>
24 #include <psiconv/common.h>
25 #include <psiconv/data.h>
26
27 #ifdef __cplusplus
28 extern "C" {
29 #endif /* __cplusplus */
30
31
32
33 /* *********************
34 * generate_simple.c *
35 ********************* */
36
37 extern int psiconv_write_u8(psiconv_buffer buf,psiconv_u8 value);
38 extern int psiconv_write_u16(psiconv_buffer buf,psiconv_u16 value);
39 extern int psiconv_write_u32(psiconv_buffer buf,psiconv_u32 value);
40 extern int psiconv_write_S(psiconv_buffer buf, psiconv_u32 value);
41 extern int psiconv_write_X(psiconv_buffer buf, psiconv_u32 value);
42 extern int psiconv_write_length(psiconv_buffer buf, psiconv_length_t value);
43 extern int psiconv_write_size(psiconv_buffer buf, psiconv_size_t value);
44 extern int psiconv_write_bool(psiconv_buffer buf, psiconv_bool_t value);
45 extern int psiconv_write_string(psiconv_buffer buf, psiconv_string_t value);
46
47
48 #ifdef __cplusplus
49 }
50 #endif /* __cplusplus */
51
52 #endif /* PSICONV_GENERATE_ROUTINES_H */

frodo@frodo.looijaard.name
ViewVC Help
Powered by ViewVC 1.1.26