From 860a75bd4dee36880c9372d1f78ced18d1246988 Mon Sep 17 00:00:00 2001 From: Josh Rahm Date: Tue, 20 Feb 2024 10:22:14 -0700 Subject: add back the metaload --- harness/include/plugin.h | 8 ++++++++ 1 file changed, 8 insertions(+) (limited to 'harness/include/plugin.h') 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. */ -- cgit