summaryrefslogtreecommitdiffstats
path: root/include
diff options
context:
space:
mode:
authorJeremy Sowden <jeremy@azazel.net>2022-01-15 18:27:06 +0000
committerFlorian Westphal <fw@strlen.de>2022-01-15 20:17:40 +0100
commit8f85d9f4469e50ade883b652ab3c112c90d477c3 (patch)
treea6a111f4f0f97d41cbdfb730ac8633485586d895 /include
parentaa655b677a3406015b4f881c497fe2e0ef41c30e (diff)
src: add a helper that returns a payload dependency for a particular base
Currently, with only one base and dependency stored this is superfluous, but it will become more useful when the next commit adds support for storing a payload for every base. Remove redundant `ctx->pbase` check. Signed-off-by: Jeremy Sowden <jeremy@azazel.net> Signed-off-by: Florian Westphal <fw@strlen.de>
Diffstat (limited to 'include')
-rw-r--r--include/payload.h2
1 files changed, 2 insertions, 0 deletions
diff --git a/include/payload.h b/include/payload.h
index 8bc3fb9a..af6fa478 100644
--- a/include/payload.h
+++ b/include/payload.h
@@ -47,6 +47,8 @@ extern void payload_dependency_store(struct payload_dep_ctx *ctx,
enum proto_bases base);
extern bool payload_dependency_exists(const struct payload_dep_ctx *ctx,
enum proto_bases base);
+extern struct expr *payload_dependency_get(struct payload_dep_ctx *ctx,
+ enum proto_bases base);
extern void payload_dependency_release(struct payload_dep_ctx *ctx);
extern void payload_dependency_kill(struct payload_dep_ctx *ctx,
struct expr *expr, unsigned int family);