diff options
| author | frosty <gabriel@bwaaa.monster> | 2026-05-10 00:00:08 -0400 |
|---|---|---|
| committer | frosty <gabriel@bwaaa.monster> | 2026-05-10 00:00:08 -0400 |
| commit | 3c856f93ed3d1362a8b6190d9ce44b2939fca717 (patch) | |
| tree | f98a84d341b7b1739b573441e29cd366e04ea7b4 /src/Utility/Utility.h | |
| parent | ba6dae676a5c268d6b4265d26b9556ba1cfa6923 (diff) | |
| download | omnisearch-3c856f93ed3d1362a8b6190d9ce44b2939fca717.tar.gz | |
feat(wip): load themes dynamically from static/themes/*.css
Diffstat (limited to 'src/Utility/Utility.h')
| -rw-r--r-- | src/Utility/Utility.h | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/src/Utility/Utility.h b/src/Utility/Utility.h index bd48295..1e1de09 100644 --- a/src/Utility/Utility.h +++ b/src/Utility/Utility.h @@ -15,6 +15,8 @@ int hex_to_int(char c); char *get_theme(const char *default_theme); +void init_themes(const char *static_path); +void get_available_themes(char ***out_themes, int *out_count); void set_default_locale(const char *locale); char *get_locale(const char *default_locale); @@ -26,8 +28,7 @@ int add_link_to_collection(const char *href, const char *label, const char *class_name, char ****collection, int **inner_counts, int current_count); -int build_pagination(int page, - char *(*href_builder)(int page, void *data), void *data, - char ****out_matrix, int **out_inner_counts); +int build_pagination(int page, char *(*href_builder)(int page, void *data), + void *data, char ****out_matrix, int **out_inner_counts); #endif |
