diff options
author | Cyrille Bagard <nocbos@gmail.com> | 2024-06-28 16:42:56 (GMT) |
---|---|---|
committer | Cyrille Bagard <nocbos@gmail.com> | 2024-06-28 16:42:56 (GMT) |
commit | 21788df2799eb8976c1c68cd84abf0ffe92a7a45 (patch) | |
tree | 328acd460424011b3def91cd2d5425a5156caa53 /src/common/xdg.h | |
parent | 00452431d4fb061f20a4eaa4c93b61014f7651ef (diff) |
Handle the XDG directories.
Diffstat (limited to 'src/common/xdg.h')
-rw-r--r-- | src/common/xdg.h | 19 |
1 files changed, 17 insertions, 2 deletions
diff --git a/src/common/xdg.h b/src/common/xdg.h index c9c2327..a6cd91d 100644 --- a/src/common/xdg.h +++ b/src/common/xdg.h @@ -25,9 +25,24 @@ #define _COMMON_XDG_H +#include <stdbool.h> -/* Détermine le chemin d'un répertoire selon les specs. XDG. */ -char *get_xdg_config_dir(const char *); + + +/* Détermine le chemin d'un répertoire de données XDG. */ +char *get_xdg_cache_dir(const char *, bool); + +/* Détermine le chemin d'un répertoire de données XDG. */ +char *get_xdg_config_dir(const char *, bool); + +/* Détermine le chemin d'un répertoire de données XDG. */ +char *get_xdg_data_dir(const char *, bool); + +/* Détermine le chemin d'un répertoire de données XDG. */ +char *get_xdg_state_dir(const char *, bool); + +/* Détermine le chemin d'un répertoire éphémère XDG. */ +char *get_xdg_runtime_dir(const char *); |