aboutsummaryrefslogtreecommitdiff
path: root/src/cli/stasis_indexer/include
diff options
context:
space:
mode:
Diffstat (limited to 'src/cli/stasis_indexer/include')
-rw-r--r--src/cli/stasis_indexer/include/args.h9
-rw-r--r--src/cli/stasis_indexer/include/callbacks.h9
-rw-r--r--src/cli/stasis_indexer/include/helpers.h27
-rw-r--r--src/cli/stasis_indexer/include/junitxml_report.h8
-rw-r--r--src/cli/stasis_indexer/include/readmes.h8
-rw-r--r--src/cli/stasis_indexer/include/website.h8
6 files changed, 69 insertions, 0 deletions
diff --git a/src/cli/stasis_indexer/include/args.h b/src/cli/stasis_indexer/include/args.h
new file mode 100644
index 0000000..543aa4b
--- /dev/null
+++ b/src/cli/stasis_indexer/include/args.h
@@ -0,0 +1,9 @@
+#ifndef STASIS_ARGS_H
+#define STASIS_ARGS_H
+
+#include <getopt.h>
+
+extern struct option long_options[];
+void usage(char *name);
+
+#endif //STASIS_ARGS_H
diff --git a/src/cli/stasis_indexer/include/callbacks.h b/src/cli/stasis_indexer/include/callbacks.h
new file mode 100644
index 0000000..7d95cbb
--- /dev/null
+++ b/src/cli/stasis_indexer/include/callbacks.h
@@ -0,0 +1,9 @@
+#ifndef CALLBACKS_H
+#define CALLBACKS_H
+
+#include "delivery.h"
+
+int callback_sort_deliveries_cmpfn(const void *a, const void *b);
+int callback_sort_deliveries_dynamic_cmpfn(const void *a, const void *b);
+
+#endif //CALLBACKS_H
diff --git a/src/cli/stasis_indexer/include/helpers.h b/src/cli/stasis_indexer/include/helpers.h
new file mode 100644
index 0000000..d493f75
--- /dev/null
+++ b/src/cli/stasis_indexer/include/helpers.h
@@ -0,0 +1,27 @@
+#ifndef HELPERS_H
+#define HELPERS_H
+
+#include "delivery.h"
+
+#define ARRAY_COUNT_DYNAMIC(X, COUNTER) \
+ do { \
+ for (COUNTER = 0; X && X[COUNTER] != NULL; COUNTER++) {} \
+ } while(0)
+
+#define ARRAY_COUNT_BY_STRUCT_MEMBER(X, MEMBER, COUNTER) \
+ do { \
+ 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);
+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_files(struct StrList **out, const char *path, const char *pattern, ...);
+struct StrList *get_docker_images(struct Delivery *ctx, char *pattern);
+int load_metadata(struct Delivery *ctx, const char *filename);
+int micromamba_configure(const struct Delivery *ctx, struct MicromambaInfo *m);
+
+#endif //HELPERS_H
diff --git a/src/cli/stasis_indexer/include/junitxml_report.h b/src/cli/stasis_indexer/include/junitxml_report.h
new file mode 100644
index 0000000..6d2a248
--- /dev/null
+++ b/src/cli/stasis_indexer/include/junitxml_report.h
@@ -0,0 +1,8 @@
+#ifndef JUNITXML_REPORT_H
+#define JUNITXML_REPORT_H
+
+#include "helpers.h"
+
+int indexer_junitxml_report(struct Delivery ctx[], size_t nelem);
+
+#endif //JUNITXML_REPORT_H
diff --git a/src/cli/stasis_indexer/include/readmes.h b/src/cli/stasis_indexer/include/readmes.h
new file mode 100644
index 0000000..d4fa7ac
--- /dev/null
+++ b/src/cli/stasis_indexer/include/readmes.h
@@ -0,0 +1,8 @@
+#ifndef READMES_H
+#define READMES_H
+
+#include "helpers.h"
+
+int indexer_readmes(struct Delivery ctx[], size_t nelem);
+
+#endif //READMES_H
diff --git a/src/cli/stasis_indexer/include/website.h b/src/cli/stasis_indexer/include/website.h
new file mode 100644
index 0000000..e67d58b
--- /dev/null
+++ b/src/cli/stasis_indexer/include/website.h
@@ -0,0 +1,8 @@
+#ifndef WEBSITE_H
+#define WEBSITE_H
+
+#include "helpers.h"
+
+int indexer_make_website(const struct Delivery *ctx);
+
+#endif //WEBSITE_H