[15496] | 1 | /* -*- Mode: C; indent-tabs-mode: t; c-basic-offset: 8; tab-width: 8 -*- */ |
---|
[17127] | 2 | |
---|
[15496] | 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 |
---|
| 5 | |
---|
| 6 | Copyright (C) 2000 Eazel, Inc. |
---|
| 7 | |
---|
| 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. |
---|
| 12 | |
---|
| 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. |
---|
| 17 | |
---|
| 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. |
---|
| 22 | |
---|
| 23 | Author: George Lebl, <jirka@5z.com> |
---|
| 24 | */ |
---|
| 25 | |
---|
| 26 | #ifndef GNOME_VFS_FILE_SIZE_H |
---|
| 27 | #define GNOME_VFS_FILE_SIZE_H |
---|
| 28 | |
---|
[17127] | 29 | /* |
---|
| 30 | * This defines GnomeVFSFileSize and GnomeVFSFileOffset |
---|
| 31 | * |
---|
| 32 | * It also defines GNOME_VFS_SIZE_IS_<type> and GNOME_VFS_OFFSET_IS_<type> |
---|
| 33 | * where type is INT, UNSIGNED_INT, LONG, UNSIGNED_LONG, LONG_LONG |
---|
| 34 | * or UNSIGNED_LONG_LONG. Note that size is always unsigned and offset |
---|
| 35 | * is always signed. |
---|
| 36 | * |
---|
| 37 | * It also defines GNOME_VFS_SIZE_FORMAT_STR and GNOME_VFS_OFFSET_FORMAT_STR |
---|
| 38 | * which is the string representation to be used in printf style expressions. |
---|
| 39 | * This is without the %, so for example for long it would be "ld" |
---|
| 40 | */ |
---|
| 41 | |
---|
[15496] | 42 | #define GNOME_VFS_SIZE_IS_UNSIGNED_LONG_LONG |
---|
| 43 | #define GNOME_VFS_OFFSET_IS_LONG_LONG |
---|
| 44 | |
---|
| 45 | #define GNOME_VFS_SIZE_FORMAT_STR "Lu" |
---|
| 46 | #define GNOME_VFS_OFFSET_FORMAT_STR "Ld" |
---|
| 47 | |
---|
| 48 | typedef unsigned long long GnomeVFSFileSize; |
---|
| 49 | typedef long long GnomeVFSFileOffset; |
---|
| 50 | |
---|
| 51 | #endif /* GNOME_VFS_FILE_SIZE_H */ |
---|