aboutsummaryrefslogtreecommitdiff
path: root/src/cli/stasis_indexer/include/helpers.h
diff options
context:
space:
mode:
authorJoseph Hunkeler <jhunkeler@gmail.com>2025-11-04 12:12:56 -0500
committerJoseph Hunkeler <jhunkeler@gmail.com>2025-11-04 12:12:56 -0500
commit6de3db226d65604f37a4fbed5232546f42c191b9 (patch)
tree6f3d1cb2e503db393631bde96194bc10f8cee358 /src/cli/stasis_indexer/include/helpers.h
parent2bf6db7e8b5c018c4f02910643728f4c445295b6 (diff)
downloadstasis-6de3db226d65604f37a4fbed5232546f42c191b9.tar.gz
Convert context manipulation from stack+heap to just heap
Diffstat (limited to 'src/cli/stasis_indexer/include/helpers.h')
-rw-r--r--src/cli/stasis_indexer/include/helpers.h7
1 files changed, 3 insertions, 4 deletions
diff --git a/src/cli/stasis_indexer/include/helpers.h b/src/cli/stasis_indexer/include/helpers.h
index b2b6131..6e2f93c 100644
--- a/src/cli/stasis_indexer/include/helpers.h
+++ b/src/cli/stasis_indexer/include/helpers.h
@@ -13,12 +13,11 @@
for ((COUNTER) = 0; (X)[COUNTER].MEMBER != NULL; (COUNTER)++) {} \
} while(0)
-struct StrList *get_architectures(struct Delivery ctx[], size_t nelem);
-struct StrList *get_platforms(struct Delivery ctx[], size_t nelem);
+struct StrList *get_architectures(struct Delivery **ctx, size_t nelem);
+struct StrList *get_platforms(struct Delivery **ctx, size_t nelem);
int get_pandoc_version(size_t *result);
int pandoc_exec(const char *in_file, const char *out_file, const char *css_file, const char *title);
-int get_latest_rc(struct Delivery ctx[], size_t nelem);
-struct Delivery *get_latest_deliveries(struct Delivery ctx[], size_t nelem);
+int get_latest_rc(struct Delivery **ctx, size_t nelem);
struct Delivery **get_latest_deliveries(struct Delivery **ctx, size_t nelem, size_t *result_nelem);
int get_files(struct StrList **out, const char *path, const char *pattern, ...);
struct StrList *get_docker_images(struct Delivery *ctx, char *pattern);