[PATCH 3/7] Load HTP plugin only if LE is enabled

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



---
 thermometer/main.c |    5 +++++
 1 files changed, 5 insertions(+), 0 deletions(-)

diff --git a/thermometer/main.c b/thermometer/main.c
index 33649a7..df3f1ff 100644
--- a/thermometer/main.c
+++ b/thermometer/main.c
@@ -30,14 +30,19 @@
 #include <glib.h>
 #include <errno.h>
 #include <gdbus.h>
+#include <stdint.h>
 
 #include "plugin.h"
+#include "hcid.h"
 #include "manager.h"
 
 static DBusConnection *connection = NULL;
 
 static int thermometer_init(void)
 {
+	if (!main_opts.le)
+		return -EINVAL;
+
 	connection = dbus_bus_get(DBUS_BUS_SYSTEM, NULL);
 	if (connection == NULL)
 		return -EIO;
-- 
1.7.6

--
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


[Index of Archives]     [Bluez Devel]     [Linux Wireless Networking]     [Linux Wireless Personal Area Networking]     [Linux ATH6KL]     [Linux USB Devel]     [Linux Media Drivers]     [Linux Audio Users]     [Linux Kernel]     [Linux SCSI]     [Big List of Linux Books]

  Powered by Linux