summaryrefslogtreecommitdiff
path: root/lib/frrscript.h
diff options
context:
space:
mode:
Diffstat (limited to 'lib/frrscript.h')
-rw-r--r--lib/frrscript.h9
1 files changed, 7 insertions, 2 deletions
diff --git a/lib/frrscript.h b/lib/frrscript.h
index 97e543eb00..df72bba4cd 100644
--- a/lib/frrscript.h
+++ b/lib/frrscript.h
@@ -79,8 +79,13 @@ struct frrscript_env {
/*
* Create new FRR script.
*/
-struct frrscript *frrscript_load(const char *name,
- int (*load_cb)(struct frrscript *));
+struct frrscript *frrscript_new(const char *name);
+
+/*
+ * Load a function into frrscript, run callback if any
+ */
+int frrscript_load(struct frrscript *fs, const char *function_name,
+ int (*load_cb)(struct frrscript *));
/*
* Destroy FRR script.