summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSamuel Ortiz <sameo@linux.intel.com>2013-11-11 00:17:19 +0100
committerSamuel Ortiz <sameo@linux.intel.com>2013-11-11 00:19:26 +0100
commitcd0ba89e73e702b13cbb1f982db48062f25e0c04 (patch)
tree5ea3caef05d185667069275dc833027d511481ee
parent2e0bd39e2b1e217ab07a696ee990bccb218cea79 (diff)
downloadneard-cd0ba89e73e702b13cbb1f982db48062f25e0c04.tar.gz
neard-cd0ba89e73e702b13cbb1f982db48062f25e0c04.tar.bz2
neard-cd0ba89e73e702b13cbb1f982db48062f25e0c04.zip
agent: Keep legacy interfaces for a few more releases
Give ConnMan and BlueZ a few weeks to transition.
-rw-r--r--src/agent.c14
1 files changed, 14 insertions, 0 deletions
diff --git a/src/agent.c b/src/agent.c
index 168086b..34d9566 100644
--- a/src/agent.c
+++ b/src/agent.c
@@ -810,6 +810,14 @@ int __near_agent_init(void)
manager_methods,
NULL, NULL, NULL, NULL);
+ /*
+ * Legacy interface, for backward compatibility only.
+ * To be removed after 0.16.
+ */
+ g_dbus_register_interface(connection, "/", "org.neard.Manager",
+ manager_methods,
+ NULL, NULL, NULL, NULL);
+
ndef_app_hash = g_hash_table_new_full(g_str_hash, g_str_equal,
g_free, ndef_agent_free);
@@ -832,6 +840,12 @@ void __near_agent_cleanup(void)
g_hash_table_destroy(ho_agent_hash);
ho_agent_hash = NULL;
+ /*
+ * Legacy interface, for backward compatibility only.
+ * To be removed after 0.16.
+ */
+ g_dbus_unregister_interface(connection, "/", "org.neard.Manager");
+
g_dbus_unregister_interface(connection, NFC_PATH,
NFC_AGENT_MANAGER_INTERFACE);