summaryrefslogtreecommitdiff
path: root/profiles/alert
diff options
context:
space:
mode:
authorAnderson Lizardo <anderson.lizardo@openbossa.org>2012-10-02 16:24:26 -0400
committerJohan Hedberg <johan.hedberg@intel.com>2012-10-03 22:22:40 +0300
commitda5e0bb9752fd0c843641e36e3da43d040eae2aa (patch)
tree6396e9f5c2a006525c79c023ddbc262baed4464a /profiles/alert
parent4d629a965673b0deb6b320c5aeb3545ca11ee48e (diff)
downloadbluez-da5e0bb9752fd0c843641e36e3da43d040eae2aa.tar.gz
alert: Initial profile registration
Diffstat (limited to 'profiles/alert')
-rw-r--r--profiles/alert/server.c24
1 files changed, 24 insertions, 0 deletions
diff --git a/profiles/alert/server.c b/profiles/alert/server.c
index d91b15639..dc844d398 100644
--- a/profiles/alert/server.c
+++ b/profiles/alert/server.c
@@ -26,13 +26,37 @@
#include <config.h>
#endif
+#include <stdbool.h>
+
+#include "adapter.h"
#include "server.h"
+#include "profile.h"
+
+static int alert_server_probe(struct btd_profile *p,
+ struct btd_adapter *adapter)
+{
+ return 0;
+}
+
+static void alert_server_remove(struct btd_profile *p,
+ struct btd_adapter *adapter)
+{
+}
+
+static struct btd_profile alert_profile = {
+ .name = "gatt-alert-server",
+ .adapter_probe = alert_server_probe,
+ .adapter_remove = alert_server_remove,
+};
int alert_server_init(void)
{
+ btd_profile_register(&alert_profile);
+
return 0;
}
void alert_server_exit(void)
{
+ btd_profile_unregister(&alert_profile);
}