libXDGdirs v1.1.1-2-g54a653b
An implementation of XDG Base Directory Specification
Loading...
Searching...
No Matches
Data cache management

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.
 

Detailed Description

Function Documentation

◆ xdgDirs_clear()

void xdgDirs_clear ( void  )

Deinitializes cached data and frees memory

Call when XDGBDS is no longer needed (presumably at the end of program)

Examples
lists.c, and print.c.

◆ xdgDirs_init()

int xdgDirs_init ( void  )

Will be used automatically with first call to any function from Reading environment variables

Call it if you want to have all data initialized before first use

Returns 0 on success, positive value otherwise

◆ xdgDirs_refresh()

void xdgDirs_refresh ( void  )

Clear cache with xdgDirs_clear() and initializes again with xdgDirs_init()