diff options
author | Josh Rahm <joshuarahm@gmail.com> | 2024-02-20 10:22:14 -0700 |
---|---|---|
committer | Josh Rahm <joshuarahm@gmail.com> | 2024-02-20 10:22:14 -0700 |
commit | 860a75bd4dee36880c9372d1f78ced18d1246988 (patch) | |
tree | 0464f4068ee86c600d57cb2ca4d16de41f4db907 /harness/include/plugin.h | |
parent | c7a0945ffcb5f17953109a6b4ac77a5c64980f4f (diff) | |
download | wetterhorn-860a75bd4dee36880c9372d1f78ced18d1246988.tar.gz wetterhorn-860a75bd4dee36880c9372d1f78ced18d1246988.tar.bz2 wetterhorn-860a75bd4dee36880c9372d1f78ced18d1246988.zip |
add back the metaload
Diffstat (limited to 'harness/include/plugin.h')
-rw-r--r-- | harness/include/plugin.h | 8 |
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. */ |