summaryrefslogtreecommitdiff
path: root/src/include
diff options
context:
space:
mode:
Diffstat (limited to 'src/include')
-rw-r--r--src/include/program_loading.h5
1 files changed, 5 insertions, 0 deletions
diff --git a/src/include/program_loading.h b/src/include/program_loading.h
index 601847d4f8..1b71fadb1b 100644
--- a/src/include/program_loading.h
+++ b/src/include/program_loading.h
@@ -137,6 +137,11 @@ static inline void prog_set_entry(struct prog *prog, void *e, void *arg)
prog->arg = arg;
}
+static inline void prog_set_arg(struct prog *prog, void *arg)
+{
+ prog->arg = arg;
+}
+
/* Locate the identified program to run. Return 0 on success. < 0 on error. */
int prog_locate(struct prog *prog);
/* The prog_locate_hook() is called prior to CBFS traversal. The hook can be