Thread (18 messages) flat view 18 messages, 1 author, 2011-09-26
STALE5461d

[PATCH RFC BlueZ 01/16] Phone Alert: add Phone Alert Service

From: Anderson Lizardo <hidden>
Date: 2011-09-26 19:13:27
Subsystem: the rest · Maintainer: Linus Torvalds

From: Bruna Moreira <redacted>

---
 alert/server.c |   19 +++++++++++++++++++
 1 files changed, 19 insertions(+), 0 deletions(-)
diff --git a/alert/server.c b/alert/server.c
index d91b156..a4b301d 100644
--- a/alert/server.c
+++ b/alert/server.c
@@ -26,10 +26,29 @@
 #include <config.h>
 #endif
 
+#include <glib.h>
+#include <bluetooth/uuid.h>
+
+#include "att.h"
+#include "gattrib.h"
+#include "attrib-server.h"
+#include "gatt-service.h"
+#include "log.h"
 #include "server.h"
 
+#define PHONE_ALERT_STATUS_SVC_UUID		0x180E
+
+static void register_phone_alert_service(void)
+{
+	/* Phone Alert Status Service */
+	gatt_service_add(GATT_PRIM_SVC_UUID, PHONE_ALERT_STATUS_SVC_UUID,
+			GATT_OPT_INVALID);
+}
+
 int alert_server_init(void)
 {
+	register_phone_alert_service();
+
 	return 0;
 }
 
-- 
1.7.0.4
Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help