aboutsummaryrefslogtreecommitdiffstats
path: root/camel/camel-file-utils.h
blob: e261ead16b0bf1a53eeb9b0e667b9c1b43d2eba1 (plain) (blame)
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
/* -*- Mode: C; tab-width: 8; indent-tabs-mode: t; c-basic-offset: 8 -*- */

/* 
 * Authors:
 *   Michael Zucchi <notzed@ximian.com>
 *   Dan Winship <danw@ximian.com>
 *
 * Copyright (C) 2000, 2001 Ximian, Inc.
 *
 * This program is free software; you can redistribute it and/or 
 * modify it under the terms of version 2 of the GNU General Public 
 * License as published by the Free Software Foundation.
 *
 * 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., 59 Temple Place, Suite 330, Boston, MA 02111-1307
 * USA
 */


#ifndef CAMEL_FILE_UTILS_H
#define CAMEL_FILE_UTILS_H 1

#ifdef __cplusplus
extern "C" {
#pragma }
#endif /* __cplusplus }*/

#include <glib.h>
#include <stdio.h>
#include <sys/types.h>
#include <time.h>

int camel_file_util_encode_fixed_int32 (FILE *out, gint32);
int camel_file_util_decode_fixed_int32 (FILE *in, gint32 *);
int camel_file_util_encode_uint32 (FILE *out, guint32);
int camel_file_util_decode_uint32 (FILE *in, guint32 *);
int camel_file_util_encode_time_t (FILE *out, time_t);
int camel_file_util_decode_time_t (FILE *in, time_t *);
int camel_file_util_encode_off_t (FILE *out, off_t);
int camel_file_util_decode_off_t (FILE *in, off_t *);
int camel_file_util_encode_string (FILE *out, const char *);
int camel_file_util_decode_string (FILE *in, char **);

int camel_file_util_mkdir(const char *path, mode_t mode);
char *camel_file_util_safe_filename(const char *name);

#ifdef __cplusplus
}
#endif /* __cplusplus */

#endif /* CAMEL_FILE_UTILS_H */
>fluffy2010-05-113-95/+17 * - update to 1.4.1dinoex2010-03-281-0/+1 * Presenting KDE 4.3.5 for FreeBSD. The official release notes for thismiwi2010-02-073-9/+3 * - update to jpeg-8dinoex2010-02-051-0/+1 * The FreeBSD KDE is please to announce the release of KDE 4.3.4,miwi2009-12-021-3/+3 * The KDE FreeBSD team is proud to announce the release of KDE 4.3.3miwi2009-11-272-5/+3 * The FreeBSD KDE is please to announce the release of KDE 4.3.1,tabthorpe2009-09-021-3/+3 * Mk/bsd.kde4.mk:makc2009-08-101-3/+0 * The KDE FreeBSD team is proud to announce the release of KDE 4.3.0miwi2009-08-053-6/+7 * - bump all port that indirectly depends on libjpeg and have not yet been bump...dinoex2009-07-311-0/+1 * The KDE FreeBSD team is pleased to announce KDE 4.2.4, the last bugfixmiwi2009-06-031-3/+3 * Update KDE ports to 4.2.3makc2009-05-101-3/+3 * mark as MAKE_JOBS_UNSAFEmakc2009-04-251-1/+1 * The KDE FreeBSD team is proud to announce the release of KDE 4.2.2miwi2009-04-022-4/+4 * bump PORTREVISION after cmake updatemakc2009-03-251-0/+1 * Update KDE to 4.2.1.makc2009-03-091-3/+3 * The KDE FreeBSD team is proud to announce the release of KDE 4.2.0miwi2009-02-093-138/+316 * kde@freebsd team is pleased to announce KDE 4.1.4, the last bugfix release in...makc2009-01-142-4/+4 * The KDE FreeBSD team is proud to announce the release of KDE 4.1.1miwi2008-09-031-3/+3 * The KDE FreeBSD team is proud to announce the release of KDE 4.1.0miwi2008-08-104-1438/+553 * Bump portrevision due to upgrade of devel/gettext.edwin2008-06-061-0/+1 * Update to KDE 3.5.8lofi2007-10-301-3/+3 * Update to KDE 3.5.7 / KOffice 1.6.3lofi2007-07-043-4/+53 * - Welcome X.org 7.2 \o/.flz2007-05-201-0/+1 * Update to KDE 3.5.6 / KOffice 1.6.2lofi2007-03-141-3/+3 * Update to KDE 3.5.5 / KOffice 1.6.1lofi2006-12-201-3/+3 * KDE 3.5.4 / KOffice 1.5.2lofi2006-09-131-3/+3 * Update to KDE 3.5.3lofi2006-06-062-4/+59 * Remove USE_REINPLACE from ports in categories starting with A.edwin2006-05-031-1/+0 * Update to KDE 3.5.2lofi2006-03-312-5/+4 * Conversion to a single libtool environment.ade2006-02-232-1/+19 * Update to KDE 3.5.1.lofi2006-02-012-3/+4 * Update to KDE 3.5.0lofi2006-01-092-86/+274 * Add SHA256 message digest to distinfo fileedwin2005-12-271-0/+1 * Update to KDE 3.4.3 / KOffice 1.4.2lofi2005-11-051-2/+2 * Update to KDE 3.4.2 / KOffice 1.4.1lofi2005-08-011-2/+2 * Update to KDE 3.4.1lofi2005-06-262-6/+101 * Update to KDE 3.4lofi2005-03-212-2/+2435 * Update to KDE 3.3.2lofi2004-12-142-19/+2 * Update to KDE 3.3.1lofi2004-11-081-2/+2 * Update to KDE 3.3lofi2004-08-313-3/+5 * Update to version 3.2.3lofi2004-06-101-2/+2 * Update to KDE 3.2.2lofi2004-04-201-2/+2 * Update to KDE 3.2.1 / QT 3.3.1lofi2004-03-103-2/+16 * Update to KDE 3.2.0lofi2004-02-051-3/+1