diff options
author | Anderson Lizardo <anderson.lizardo@openbossa.org> | 2012-10-02 16:24:26 -0400 |
---|---|---|
committer | Johan Hedberg <johan.hedberg@intel.com> | 2012-10-03 22:22:40 +0300 |
commit | da5e0bb9752fd0c843641e36e3da43d040eae2aa (patch) | |
tree | 6396e9f5c2a006525c79c023ddbc262baed4464a /profiles/alert | |
parent | 4d629a965673b0deb6b320c5aeb3545ca11ee48e (diff) | |
download | bluez-da5e0bb9752fd0c843641e36e3da43d040eae2aa.tar.gz |
alert: Initial profile registration
Diffstat (limited to 'profiles/alert')
-rw-r--r-- | profiles/alert/server.c | 24 |
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); } |