Hi Szymon, > This allows to list plugins names that can be passed with -p/-P > options. This is usefull with binary provided by distribution to easily > determine what plugins are supported. > --- > src/hcid.h | 1 + > src/main.c | 8 ++++++++ > src/plugin.c | 47 +++++++++++++++++++++++++++++++++++++++++++++++ > 3 files changed, 56 insertions(+) > > diff --git a/src/hcid.h b/src/hcid.h > index ea67cc2..ff4a3c5 100644 > --- a/src/hcid.h > +++ b/src/hcid.h > @@ -43,6 +43,7 @@ extern struct main_opts main_opts; > > gboolean plugin_init(const char *enable, const char *disable); > void plugin_cleanup(void); > +void plugin_list(void); > > void rfkill_init(void); > void rfkill_exit(void); > diff --git a/src/main.c b/src/main.c > index dc0478e..aea3e3f 100644 > --- a/src/main.c > +++ b/src/main.c > @@ -381,6 +381,7 @@ static guint setup_signalfd(void) > static char *option_debug = NULL; > static char *option_plugin = NULL; > static char *option_noplugin = NULL; > +static gboolean option_listplugins = FALSE; > static gboolean option_compat = FALSE; > static gboolean option_detach = TRUE; > static gboolean option_version = FALSE; > @@ -468,6 +469,8 @@ static GOptionEntry options[] = { > "Specify plugins to load", "NAME,..," }, > { "noplugin", 'P', 0, G_OPTION_ARG_STRING, &option_noplugin, > "Specify plugins not to load", "NAME,..." }, > + { "list-plugins", 'l', 0, G_OPTION_ARG_NONE, &option_listplugins, > + "List available plugins", }, I am not in favor of doing this. Distributions should build it with the plugins that are useful for that distro and they should be enabled all the time. The disabling of plugins for for developers only. Regards Marcel -- To unsubscribe from this list: send the line "unsubscribe linux-bluetooth" in the body of a message to majordomo@xxxxxxxxxxxxxxx More majordomo info at http://vger.kernel.org/majordomo-info.html