libXDGdirs v1.1.1-2-g54a653b
An implementation of XDG Base Directory Specification
Loading...
Searching...
No Matches
xdgdirs.h File Reference
#include <stddef.h>

Go to the source code of this file.

Data Structures

struct  xdgDirsList_t
 Container for environment variables which are colon separated lists. More...
 

Macros

#define XDGDIRS_VER   "1.1.1"
 Version of libXDGdirs.
 
#define XDGBDS_VER   "0.8"
 Version of XDG Base Directory specification implemented in this library.
 

Typedefs

typedef const struct xdgDirsList_t xdgDirsList
 

Functions

int xdgDirs_init (void)
 Explicitly read variables before first use.
 
void xdgDirs_clear (void)
 Clear cached data.
 
void xdgDirs_refresh (void)
 Read environment variables again.
 
const char * xdgDataHome (void)
 Value of $XDG_DATA_HOME.
 
const char * xdgStateHome (void)
 Value of $XDG_STATE_HOME.
 
const char * xdgConfigHome (void)
 Value of $XDG_CONFIG_HOME.
 
const char * xdgCacheHome (void)
 Value of $XDG_CACHE_HOME.
 
const char * xdgRuntimeDir (void)
 Value of $XDG_RUNTIME_DIR.
 
xdgDirsListxdgDataDirs (void)
 Value of $XDG_DATA_DIRS.
 
xdgDirsListxdgConfigDirs (void)
 Value of $XDG_CONFIG_DIRS.
 
const char * xdgCustomVar (const char *custom)
 User definied custom XDG variables.
 

Macro Definition Documentation

◆ XDGBDS_VER

#define XDGBDS_VER   "0.8"
Examples
ver.c.

Definition at line 18 of file xdgdirs.h.

◆ XDGDIRS_VER

#define XDGDIRS_VER   "1.1.1"

Adheres to Semantic Versioning

Examples
ver.c.

Definition at line 15 of file xdgdirs.h.

Typedef Documentation

◆ xdgDirsList

typedef const struct xdgDirsList_t xdgDirsList

Definition at line 27 of file xdgdirs.h.