aboutsummaryrefslogtreecommitdiff
path: root/src/lib/delivery/include
diff options
context:
space:
mode:
Diffstat (limited to 'src/lib/delivery/include')
-rw-r--r--src/lib/delivery/include/delivery.h13
1 files changed, 9 insertions, 4 deletions
diff --git a/src/lib/delivery/include/delivery.h b/src/lib/delivery/include/delivery.h
index 69ec089..f8229ed 100644
--- a/src/lib/delivery/include/delivery.h
+++ b/src/lib/delivery/include/delivery.h
@@ -64,10 +64,8 @@ struct Delivery {
* \brief System information
*/
struct System {
- char *arch;
- ///< System CPU architecture ident
- char **platform;
- ///< System platform name
+ char *arch; ///< System CPU architecture ident
+ char **platform; ///< System platform name
} system;
/*! \struct Storage
* \brief Storage paths
@@ -483,4 +481,11 @@ void delivery_rewrite_stage1(struct Delivery *ctx, char *specfile);
*/
void delivery_rewrite_stage2(struct Delivery *ctx, char *specfile);
+/**
+ * Return a copy of a delivery context
+ * @param ctx Delivery context
+ * @return a copy
+ */
+struct Delivery *delivery_duplicate(const struct Delivery *ctx);
+
#endif //STASIS_DELIVERY_H