libxdg-basedir-1.1.1 1.1.1
|
00001 /* Copyright (c) 2007 Mark Nevill 00002 * 00003 * Permission is hereby granted, free of charge, to any person 00004 * obtaining a copy of this software and associated documentation 00005 * files (the "Software"), to deal in the Software without 00006 * restriction, including without limitation the rights to use, 00007 * copy, modify, merge, publish, distribute, sublicense, and/or sell 00008 * copies of the Software, and to permit persons to whom the 00009 * Software is furnished to do so, subject to the following 00010 * conditions: 00011 * 00012 * The above copyright notice and this permission notice shall be 00013 * included in all copies or substantial portions of the Software. 00014 * 00015 * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, 00016 * EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES 00017 * OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND 00018 * NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT 00019 * HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, 00020 * WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING 00021 * FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR 00022 * OTHER DEALINGS IN THE SOFTWARE. 00023 */ 00024 00028 #ifndef XDG_BASEDIR_FS_H 00029 #define XDG_BASEDIR_FS_H 00030 00031 #include <basedir.h> 00032 #include <stdio.h> 00033 #include <sys/types.h> 00034 00035 #ifdef __cplusplus 00036 extern "C" { 00037 #endif 00038 00041 00050 char * xdgDataFind(const char* relativePath, xdgHandle *handle); 00051 00060 char * xdgConfigFind(const char* relativePath, xdgHandle *handle); 00061 00070 FILE * xdgDataOpen(const char* relativePath, const char* mode, xdgHandle *handle); 00071 00080 FILE * xdgConfigOpen(const char* relativePath, const char* mode, xdgHandle *handle); 00081 00092 int xdgMakePath(const char * path, mode_t mode); 00093 00096 #ifdef __cplusplus 00097 } // extern "C" 00098 #endif 00099 00100 #endif /*XDG_BASEDIR_FS_H*/