Diff between fdc5ace164481ee06b20f83d04d59675d81311a2 and 02effe89f55356121187771e2595f212aa43d4ab
Changed Files
| File | Additions | Deletions | Status |
| input/main.c | +9 | -0 | modified |
Full Patch
diff --git a/input/main.c b/input/main.c
index 2aac3db..722bc49 100644
--- a/input/main.c
+++ b/input/main.c
@@ -32,6 +32,7 @@
#include <gdbus.h>
#include "plugin.h"
+#include "hcid.h"
#include "log.h"
#include "manager.h"
@@ -87,11 +88,19 @@ BLUETOOTH_PLUGIN_DEFINE(input, VERSION, BLUETOOTH_PLUGIN_PRIORITY_DEFAULT,
static int hog_init(void)
{
+ if (!main_opts.gatt_enabled) {
+ DBG("GATT is disabled");
+ return -ENOTSUP;
+ }
+
return hog_manager_init();
}
static void hog_exit(void)
{
+ if (!main_opts.gatt_enabled)
+ return;
+
hog_manager_exit();
}