Diff between 9390708d2918b8febee7a76397f22597f0d4ed56 and 2e89402a252322baf4bddab99f1d5194f7de9b15

Changed Files

File Additions Deletions Status
src/device.c +8 -0 modified
src/device.h +3 -0 modified
src/main.c +3 -0 modified

Full Patch

diff --git a/src/device.c b/src/device.c
index 59c72db..8836194 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 5e1b8c0..6c35ff3 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 b9fd369..1e40ebc 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();