From 2e89402a252322baf4bddab99f1d5194f7de9b15 Mon Sep 17 00:00:00 2001 From: Marcel Holtmann Date: Sun, 20 Jan 2013 15:21:08 -0800 Subject: [PATCH] core: Add device init and cleanup functions --- src/device.c | 8 ++++++++ src/device.h | 3 +++ src/main.c | 3 +++ 3 files changed, 14 insertions(+) diff --git a/src/device.c b/src/device.c index 59c72dba4..883619435 100644 --- a/src/device.c +++ b/src/device.c @@ -4142,3 +4142,11 @@ void btd_device_set_pnpid(struct btd_device *device, uint16_t source, store_device_info(device); } + +void btd_device_init(void) +{ +} + +void btd_device_cleanup(void) +{ +} diff --git a/src/device.h b/src/device.h index 5e1b8c097..6c35ff3f5 100644 --- a/src/device.h +++ b/src/device.h @@ -116,3 +116,6 @@ void device_profile_connected(struct btd_device *dev, struct btd_profile *profile, int err); void device_profile_disconnected(struct btd_device *dev, struct btd_profile *profile, int err); + +void btd_device_init(void); +void btd_device_cleanup(void); diff --git a/src/main.c b/src/main.c index b9fd36926..1e40ebc5f 100644 --- a/src/main.c +++ b/src/main.c @@ -51,6 +51,7 @@ #include "hcid.h" #include "sdpd.h" #include "adapter.h" +#include "device.h" #include "dbus-common.h" #include "agent.h" #include "profile.h" @@ -535,6 +536,7 @@ int main(int argc, char *argv[]) exit(1); } + btd_device_init(); btd_agent_init(); btd_profile_init(); @@ -588,6 +590,7 @@ int main(int argc, char *argv[]) btd_profile_cleanup(); btd_agent_cleanup(); + btd_device_cleanup(); adapter_cleanup(); -- 2.47.3