aboutsummaryrefslogtreecommitdiff
path: root/src/include/program_loading.h
diff options
context:
space:
mode:
Diffstat (limited to 'src/include/program_loading.h')
-rw-r--r--src/include/program_loading.h3
1 files changed, 3 insertions, 0 deletions
diff --git a/src/include/program_loading.h b/src/include/program_loading.h
index 02e6f5fdbb..ca80b0e793 100644
--- a/src/include/program_loading.h
+++ b/src/include/program_loading.h
@@ -103,6 +103,9 @@ void platform_prog_run(struct prog *prog);
struct prog_loader_ops {
const char *name;
+ /* Determine if the loader is the active one. If so returns 1 else 0
+ * or < 0 on error. */
+ int (*is_loader_active)(struct prog *prog);
/* Returns < 0 on error or 0 on success. This function needs to do
* different things depending on the prog type. See definition
* of struct prog above. */