1 /* -*- Mode: C; tab-width: 8; indent-tabs-mode: t; c-basic-offset: 8 -*- */
5 * Michael Zucchi <notzed@ximian.com>
6 * Dan Winship <danw@ximian.com>
8 * Copyright (C) 2000, 2001 Ximian, Inc.
10 * This program is free software; you can redistribute it and/or
11 * modify it under the terms of version 2 of the GNU General Public
12 * License as published by the Free Software Foundation.
14 * This program is distributed in the hope that it will be useful,
15 * but WITHOUT ANY WARRANTY; without even the implied warranty of
16 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
17 * GNU General Public License for more details.
19 * You should have received a copy of the GNU General Public License
20 * along with this program; if not, write to the Free Software
21 * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307
26 #ifndef CAMEL_FILE_UTILS_H
27 #define CAMEL_FILE_UTILS_H 1
32 #endif /* __cplusplus }*/
36 #include <sys/types.h>
39 int camel_file_util_encode_fixed_int32 (FILE *out, gint32);
40 int camel_file_util_decode_fixed_int32 (FILE *in, gint32 *);
41 int camel_file_util_encode_uint32 (FILE *out, guint32);
42 int camel_file_util_decode_uint32 (FILE *in, guint32 *);
43 int camel_file_util_encode_time_t (FILE *out, time_t);
44 int camel_file_util_decode_time_t (FILE *in, time_t *);
45 int camel_file_util_encode_off_t (FILE *out, off_t);
46 int camel_file_util_decode_off_t (FILE *in, off_t *);
47 int camel_file_util_encode_string (FILE *out, const char *);
48 int camel_file_util_decode_string (FILE *in, char **);
52 #endif /* __cplusplus */
54 #endif /* CAMEL_FILE_UTILS_H */