GnuCash 2.4.99
file-utils.h
Go to the documentation of this file.
00001 /********************************************************************\
00002  * file-utils.h -- simple file utilities                            *
00003  * Copyright (C) 1997 Robin D. Clark                                *
00004  * Copyright (C) 1998 Linas Vepstas                                 *
00005  * Copyright (C) 1998 Rob Browning                                  *
00006  * Copyright (C) 2004 Derek Atkins <derek@ihtfp.com>                *
00007  *                                                                  *
00008  * This program is free software; you can redistribute it and/or    *
00009  * modify it under the terms of the GNU General Public License as   *
00010  * published by the Free Software Foundation; either version 2 of   *
00011  * the License, or (at your option) any later version.              *
00012  *                                                                  *
00013  * This program is distributed in the hope that it will be useful,  *
00014  * but WITHOUT ANY WARRANTY; without even the implied warranty of   *
00015  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the    *
00016  * GNU General Public License for more details.                     *
00017  *                                                                  *
00018  * You should have received a copy of the GNU General Public License*
00019  * along with this program; if not, write to the Free Software      *
00020  * Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.        *
00021  *                                                                  *
00022  *   Author: Rob Clark                                              *
00023  * Internet: rclark@cs.hmc.edu                                      *
00024  *  Address: 609 8th Street                                         *
00025  *           Huntington Beach, CA 92648-4632                        *
00026 \********************************************************************/
00027 
00043 #ifndef GNC_FILE_UTILS_H
00044 #define GNC_FILE_UTILS_H
00045 
00046 #include <stdio.h>              /* for FILE* */
00047 
00061 char * gncFindFile (const char * filename);
00062 
00077 int gncReadFile (const char * filename, char ** data);
00078 
00079 
00092 gint64 gnc_getline (gchar **line, FILE *file);
00093 
00094 
00095 /* Definitions shared by file-utils.c and gnc-main-window.c */
00096 #define STATE_FILE_TOP           "Top"
00097 #define STATE_FILE_BOOK_GUID     "BookGuid"
00098 #define STATE_FILE_EXT           ".gcm"
00099 
00115 GKeyFile *gnc_find_state_file (const gchar *url, const gchar *guid, gchar **filename);
00116 
00117 #endif /* GNC_FILE_UTILS_H */
00118 
 All Data Structures Files Functions Variables Typedefs Enumerations Enumerator Defines