diff options
author | Mattias Andrée <maandree@kth.se> | 2023-01-10 22:36:15 +0100 |
---|---|---|
committer | Mattias Andrée <maandree@kth.se> | 2023-01-10 22:36:15 +0100 |
commit | 0da4afcace17e9570e962c389f91ff9f18cf25e3 (patch) | |
tree | 3650fb66a055b8e4c70ee3648478f6f6aa84eb61 /libfonts.h | |
parent | Fix previous commit (diff) | |
download | libfonts-0da4afcace17e9570e962c389f91ff9f18cf25e3.tar.gz libfonts-0da4afcace17e9570e962c389f91ff9f18cf25e3.tar.bz2 libfonts-0da4afcace17e9570e962c389f91ff9f18cf25e3.tar.xz |
Add libfonts_get_font_root_dirs
Signed-off-by: Mattias Andrée <maandree@kth.se>
Diffstat (limited to '')
-rw-r--r-- | libfonts.h | 20 |
1 files changed, 20 insertions, 0 deletions
@@ -1660,6 +1660,26 @@ extern const char *const libfonts_used_environs[]; /** + * Get a list of all font root directories, for example + * /usr/share/fonts and /usr/local/share/fonts, but not + * their subdirectories + * + * @param dirsp Output parameter for the directory list; + * note that directories are not necessarily unique + * (however no two returned strings will be identical) + * nor do they necessarily exist + * @param countp Output parameter for the number of listed directories + * @param ctx Optional `struct libfonts_context` + * @return 0 on success, -1 on failure + * + * Unless `*dirsp == NULL` (only happens on failure), `(*dirsp)[*dirsp] == NULL` + */ +int libfonts_get_font_root_dirs(char ***, size_t *, struct libfonts_context *); + +/* TODO add font listing */ + + +/** * Get the font a default font name aliases to * * @param font The default font |