summaryrefslogtreecommitdiff
path: root/deadbeef.h
diff options
context:
space:
mode:
authorGravatar Alexey Yakovenko <wakeroid@gmail.com>2009-12-10 21:40:35 +0100
committerGravatar Alexey Yakovenko <wakeroid@gmail.com>2009-12-10 21:40:35 +0100
commitdffdb68b1b6d587787a60118ae4ca10e0d398a8b (patch)
treec313d84a0cdd50e3398714f433e6e8b5c058ef3c /deadbeef.h
parente2ee21995ee43411965ec9f7e7a95f3c139850b2 (diff)
plugin dynamic start/stop WIP
Diffstat (limited to 'deadbeef.h')
-rw-r--r--deadbeef.h3
1 files changed, 3 insertions, 0 deletions
diff --git a/deadbeef.h b/deadbeef.h
index 4a0b1d00..76271477 100644
--- a/deadbeef.h
+++ b/deadbeef.h
@@ -338,6 +338,7 @@ typedef struct {
// plugin communication
struct DB_decoder_s **(*plug_get_decoder_list) (void);
struct DB_plugin_s **(*plug_get_list) (void);
+ int (*plug_activate) (struct DB_plugin_s *p, int activate);
// exporting plugin conf options for gui
// all exported options are grouped by plugin, and will be available to user
// from gui
@@ -361,6 +362,8 @@ typedef struct DB_plugin_s {
int16_t version_minor;
// may be deactivated on failures after load
int inactive;
+ // prevent plugin from being dynamically stopped
+ int nostop;
// any of those can be left NULL
// though it's much better to fill them with something useful
const char *name;