aboutsummaryrefslogtreecommitdiff
path: root/harness/include/plugin.h
diff options
context:
space:
mode:
Diffstat (limited to 'harness/include/plugin.h')
-rw-r--r--harness/include/plugin.h8
1 files changed, 8 insertions, 0 deletions
diff --git a/harness/include/plugin.h b/harness/include/plugin.h
index 145fe52..bde8990 100644
--- a/harness/include/plugin.h
+++ b/harness/include/plugin.h
@@ -85,6 +85,14 @@ typedef struct PLUGIN {
* will be NULL. */
const char *plugin_name;
+ /**
+ * Initializes the plugin on the first time, and only the first time, it is
+ * loaded. This is used to do things like setup a runtime that cannot be
+ * reliably torn down. It is up to the plugin to ensure this won't interfere
+ * with hot-reloading.
+ */
+ EXPORT(void (*plugin_metaload)(int argc, char** argv));
+
/** Intializes the plugin with the given argc/argv. This is the first thing
* called on the plugin and is called immediately after the library is loaded.
*/