1 /* -*- Mode: C; indent-tabs-mode: t; c-basic-offset: 8; tab-width: 8 -*- */
3 /* gnome-vfs-file-size.h - Typedefs of GnomeVFSFileSize and GnomeVFSFileOffset
4 Note: This file is generated by configure, please edit gnome-vfs-file-size.h.in
6 Copyright (C) 2000 Eazel, Inc.
8 The Gnome Library is free software; you can redistribute it and/or
9 modify it under the terms of the GNU Library General Public License as
10 published by the Free Software Foundation; either version 2 of the
11 License, or (at your option) any later version.
13 The Gnome Library is distributed in the hope that it will be useful,
14 but WITHOUT ANY WARRANTY; without even the implied warranty of
15 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
16 Library General Public License for more details.
18 You should have received a copy of the GNU Library General Public
19 License along with the Gnome Library; see the file COPYING.LIB. If not,
20 write to the Free Software Foundation, Inc., 59 Temple Place - Suite 330,
21 Boston, MA 02111-1307, USA.
23 Author: George Lebl, <jirka@5z.com>
26 #ifndef GNOME_VFS_FILE_SIZE_H
27 #define GNOME_VFS_FILE_SIZE_H
29 #include <glib/gtypes.h>
32 * This defines GnomeVFSFileSize and GnomeVFSFileOffset
34 * It also defines GNOME_VFS_SIZE_IS_<type> and GNOME_VFS_OFFSET_IS_<type>
35 * where type is INT, UNSIGNED_INT, LONG, UNSIGNED_LONG, LONG_LONG
36 * or UNSIGNED_LONG_LONG. Note that size is always unsigned and offset
39 * It also defines GNOME_VFS_SIZE_FORMAT_STR and GNOME_VFS_OFFSET_FORMAT_STR
40 * which is the string representation to be used in printf style expressions.
41 * This is without the %, so for example for long it would be "ld"
44 #define GNOME_VFS_SIZE_IS_UNSIGNED_LONG_LONG
45 #define GNOME_VFS_OFFSET_IS_LONG_LONG
47 #define GNOME_VFS_SIZE_FORMAT_STR "Lu"
48 #define GNOME_VFS_OFFSET_FORMAT_STR "Ld"
50 G_GNUC_EXTENSION typedef unsigned long long GnomeVFSFileSize;
51 G_GNUC_EXTENSION typedef long long GnomeVFSFileOffset;
53 #endif /* GNOME_VFS_FILE_SIZE_H */