| 1 |
/* Copyright (C) 2000-2008 by George Williams */ |
| 2 |
/* |
| 3 |
* Redistribution and use in source and binary forms, with or without |
| 4 |
* modification, are permitted provided that the following conditions are met: |
| 5 |
|
| 6 |
* Redistributions of source code must retain the above copyright notice, this |
| 7 |
* list of conditions and the following disclaimer. |
| 8 |
|
| 9 |
* Redistributions in binary form must reproduce the above copyright notice, |
| 10 |
* this list of conditions and the following disclaimer in the documentation |
| 11 |
* and/or other materials provided with the distribution. |
| 12 |
|
| 13 |
* The name of the author may not be used to endorse or promote products |
| 14 |
* derived from this software without specific prior written permission. |
| 15 |
|
| 16 |
* THIS SOFTWARE IS PROVIDED BY THE AUTHOR ``AS IS'' AND ANY EXPRESS OR IMPLIED |
| 17 |
* WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF |
| 18 |
* MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO |
| 19 |
* EVENT SHALL THE AUTHOR BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, |
| 20 |
* SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, |
| 21 |
* PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; |
| 22 |
* OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, |
| 23 |
* WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR |
| 24 |
* OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF |
| 25 |
* ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. |
| 26 |
*/ |
| 27 |
#ifndef _GFILE_H |
| 28 |
#define _GFILE_H |
| 29 |
|
| 30 |
extern char *GFileGetAbsoluteName(char *name, char *result, int rsiz); |
| 31 |
extern char *GFileMakeAbsoluteName(char *name); |
| 32 |
extern char *GFileBuildName(char *dir,char *fname,char *buffer,int size); |
| 33 |
extern char *GFileReplaceName(char *oldname,char *fname,char *buffer,int size); |
| 34 |
extern char *GFileNameTail(const char *oldname); |
| 35 |
extern char *GFileAppendFile(char *dir,char *name,int isdir); |
| 36 |
extern int GFileIsAbsolute(const char *file); |
| 37 |
extern int GFileIsDir(const char *file); |
| 38 |
extern int GFileExists(const char *file); |
| 39 |
extern int GFileModifyable(const char *file); |
| 40 |
extern int GFileModifyableDir(const char *file); |
| 41 |
extern int GFileReadable(char *file); |
| 42 |
extern int GFileMkDir(char *name); |
| 43 |
extern int GFileRmDir(char *name); |
| 44 |
extern int GFileUnlink(char *name); |
| 45 |
extern char *_GFile_find_program_dir(char *prog); |
| 46 |
extern unichar_t *u_GFileGetAbsoluteName(unichar_t *name, unichar_t *result, int rsiz); |
| 47 |
extern unichar_t *u_GFileBuildName(unichar_t *dir,unichar_t *fname,unichar_t *buffer,int size); |
| 48 |
extern unichar_t *u_GFileReplaceName(unichar_t *oldname,unichar_t *fname,unichar_t *buffer,int size); |
| 49 |
extern unichar_t *u_GFileNameTail(const unichar_t *oldname); |
| 50 |
extern unichar_t *u_GFileNormalize(unichar_t *name); |
| 51 |
extern unichar_t *u_GFileAppendFile(unichar_t *dir,unichar_t *name,int isdir); |
| 52 |
extern int u_GFileIsAbsolute(const unichar_t *file); |
| 53 |
extern int u_GFileIsDir(const unichar_t *file); |
| 54 |
extern int u_GFileExists(const unichar_t *file); |
| 55 |
extern int u_GFileModifyable(const unichar_t *file); |
| 56 |
extern int u_GFileModifyableDir(const unichar_t *file); |
| 57 |
extern int u_GFileReadable(unichar_t *file); |
| 58 |
extern int u_GFileMkDir(unichar_t *name); |
| 59 |
extern int u_GFileRmDir(unichar_t *name); |
| 60 |
extern int u_GFileUnlink(unichar_t *name); |
| 61 |
|
| 62 |
#endif |