aboutsummaryrefslogtreecommitdiff
path: root/include/delivery.h
diff options
context:
space:
mode:
authorJoseph Hunkeler <jhunkeler@gmail.com>2024-12-03 00:57:34 -0500
committerJoseph Hunkeler <jhunkeler@gmail.com>2024-12-03 00:57:34 -0500
commit587a3af856310eb89b81389f3692385a2c8e1fa2 (patch)
tree784d53992cbd8ebdc2a8c4f4f88d653c317f16f2 /include/delivery.h
parentdaa02148a63ee9e5c43373ce697dbada454440f6 (diff)
downloadstasis-587a3af856310eb89b81389f3692385a2c8e1fa2.tar.gz
Add DELIVERY_[NOT_]FOUND defines
* Add delivery_series_sync function to download previously delivered files from artifactory
Diffstat (limited to 'include/delivery.h')
-rw-r--r--include/delivery.h12
1 files changed, 12 insertions, 0 deletions
diff --git a/include/delivery.h b/include/delivery.h
index 2ab25d1..40ca3e6 100644
--- a/include/delivery.h
+++ b/include/delivery.h
@@ -424,6 +424,9 @@ int populate_mission_ini(struct Delivery **ctx, int render_mode);
void validate_delivery_ini(struct INIFILE *ini);
int filter_repo_tags(char *repo, struct StrList *patterns);
+
+#define DELIVERY_NOT_FOUND 0
+#define DELIVERY_FOUND 1
/**
* Determine whether a release on-disk matches the release name in use
* @param ctx Delivery context
@@ -433,4 +436,13 @@ int delivery_exists(struct Delivery *ctx);
int delivery_overlay_packages_from_env(struct Delivery *ctx, const char *env_name);
+/**
+ * Retrieve remote deliveries associated with the current version series
+ * @param ctx Delivery context
+ * @return -1 on error
+ * @return 1 on failure
+ * @return 0 on success
+ */
+int delivery_series_sync(struct Delivery *ctx);
+
#endif //STASIS_DELIVERY_H