diff options
| author | frosty <gabriel@bwaaa.monster> | 2026-04-01 05:49:18 +0300 |
|---|---|---|
| committer | frosty <gabriel@bwaaa.monster> | 2026-04-01 05:49:18 +0300 |
| commit | 614bd26cb34b9b340e327d4b80927353bb5a5d0a (patch) | |
| tree | 8d03df6a3f65eb13fa8d9ce8cb16cc27f46faaf2 /src/Utility/Utility.h | |
| parent | c6bdeecb2a8869fd7684fc56ed0047611d327cfc (diff) | |
| download | omnisearch-614bd26cb34b9b340e327d4b80927353bb5a5d0a.tar.gz | |
refactor: internationalise pagination and clean up related code
Diffstat (limited to 'src/Utility/Utility.h')
| -rw-r--r-- | src/Utility/Utility.h | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/src/Utility/Utility.h b/src/Utility/Utility.h index 387aae0..3863bc2 100644 --- a/src/Utility/Utility.h +++ b/src/Utility/Utility.h @@ -3,8 +3,18 @@ #include <beaker.h> +#define LINK_FIELD_COUNT 3 + int hex_to_int(char c); char *get_theme(const char *default_theme); char *get_locale(const char *default_locale); +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, const char *locale, + char *(*href_builder)(int page, void *data), void *data, + char ****out_matrix, int **out_inner_counts); + #endif |
