[RFC BlueZ 03/22] alert: Add adapter driver

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

 



---
 profiles/alert/server.c |   19 +++++++++++++++++++
 1 file changed, 19 insertions(+)

diff --git a/profiles/alert/server.c b/profiles/alert/server.c
index d91b156..3fda23d 100644
--- a/profiles/alert/server.c
+++ b/profiles/alert/server.c
@@ -26,13 +26,32 @@
 #include <config.h>
 #endif
 
+#include "adapter.h"
 #include "server.h"
 
+static int alert_server_probe(struct btd_adapter *adapter)
+{
+	return 0;
+}
+
+static void alert_server_remove(struct btd_adapter *adapter)
+{
+}
+
+struct btd_adapter_driver alert_server_driver = {
+	.name = "gatt-alert-server",
+	.probe = alert_server_probe,
+	.remove = alert_server_remove,
+};
+
 int alert_server_init(void)
 {
+	btd_register_adapter_driver(&alert_server_driver);
+
 	return 0;
 }
 
 void alert_server_exit(void)
 {
+	btd_unregister_adapter_driver(&alert_server_driver);
 }
-- 
1.7.9.5

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