diff options
author | Trumeet <yuuta@yuuta.moe> | 2021-07-08 21:20:11 -0700 |
---|---|---|
committer | Trumeet <yuuta@yuuta.moe> | 2021-07-08 21:20:11 -0700 |
commit | 097ddb404f2a67398821c6a27f24db5cb939b79d (patch) | |
tree | fd3f9325e8c33ada2aefcebf645f73425f38af12 /plugins.h | |
parent | 2fe493287c572ea988d6e79981f1fba02891a01f (diff) | |
download | extmc-master.tar extmc-master.tar.gz extmc-master.tar.bz2 extmc-master.zip |
This greatly simplifies the management of plugins, but no longer supports loading the same plugin twice.
Diffstat (limited to 'plugins.h')
-rw-r--r-- | plugins.h | 8 |
1 files changed, 5 insertions, 3 deletions
@@ -13,7 +13,7 @@ struct plugin_call_job_args { }; struct plugin { - int id; + const char *id; const char *path; void *handle; char *name; @@ -32,7 +32,9 @@ struct plugin { int (*fc_server_started)(struct epg_handle *, char *); }; -int plugin_load(int stderr_fd, const char *path, const int id, struct plugin *out); -int plugin_unload(int stderr_fd, struct plugin *plugin); +int plugin_load_meta(int stderr_fd, const char *path, struct plugin *out); +int plugin_load(int stderr_fd, const struct plugin *plugin); +int plugin_unload_meta(int stderr_fd, struct plugin *plugin); +int plugin_unload(int stderr_fd, const struct plugin *plugin); #endif // _PLUGINS_H |