basedir.h
Go to the documentation of this file.
/* Copyright (c) 2007 Mark Nevill
*
* Permission is hereby granted, free of charge, to any person
* obtaining a copy of this software and associated documentation
* files (the "Software"), to deal in the Software without
* restriction, including without limitation the rights to use,
* copy, modify, merge, publish, distribute, sublicense, and/or sell
* copies of the Software, and to permit persons to whom the
* Software is furnished to do so, subject to the following
* conditions:
*
* The above copyright notice and this permission notice shall be
* included in all copies or substantial portions of the Software.
*
* THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
* EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES
* OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND
* NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT
* HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY,
* WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING
* FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR
* OTHER DEALINGS IN THE SOFTWARE.
*/
#ifndef XDG_BASEDIR_H
#define XDG_BASEDIR_H
#ifdef __cplusplus
extern "C" {
#endif
#define XDG_BASEDIR_SPEC 0.7
typedef struct /*_xdgHandle*/ {
void *reserved;
} xdgHandle;
xdgHandle * xdgInitHandle(xdgHandle *handle);
void xdgWipeHandle(xdgHandle *handle);
int xdgUpdateData(xdgHandle *handle);
const char * xdgDataHome(xdgHandle *handle);
const char * xdgConfigHome(xdgHandle *handle);
const char * const * xdgDataDirectories(xdgHandle *handle);
const char * const * xdgSearchableDataDirectories(xdgHandle *handle);
const char * const * xdgConfigDirectories(xdgHandle *handle);
const char * const * xdgSearchableConfigDirectories(xdgHandle *handle);
const char * xdgCacheHome(xdgHandle *handle);
const char * xdgRuntimeDirectory(xdgHandle *handle);
#ifdef __cplusplus
} // extern "C"
#endif
#endif /*XDG_BASEDIR_H*/
xdgRuntimeDirectory
const char * xdgRuntimeDirectory(xdgHandle *handle)
Definition basedir.c:645
xdgDataDirectories
const char *const * xdgDataDirectories(xdgHandle *handle)
Definition basedir.c:598
xdgSearchableConfigDirectories
const char *const * xdgSearchableConfigDirectories(xdgHandle *handle)
Definition basedir.c:625
xdgUpdateData
int xdgUpdateData(xdgHandle *handle)
Definition basedir.c:409
xdgConfigDirectories
const char *const * xdgConfigDirectories(xdgHandle *handle)
Definition basedir.c:618
xdgCacheHome
const char * xdgCacheHome(xdgHandle *handle)
Definition basedir.c:638
xdgConfigHome
const char * xdgConfigHome(xdgHandle *handle)
Definition basedir.c:591
xdgInitHandle
xdgHandle * xdgInitHandle(xdgHandle *handle)
Definition basedir.c:123
xdgSearchableDataDirectories
const char *const * xdgSearchableDataDirectories(xdgHandle *handle)
Definition basedir.c:605
xdgWipeHandle
void xdgWipeHandle(xdgHandle *handle)
Definition basedir.c:169
xdgDataHome
const char * xdgDataHome(xdgHandle *handle)
Definition basedir.c:584
xdgHandle
Definition basedir.h:59
xdgHandle::reserved
void * reserved
Definition basedir.h:61