diff options
-rw-r--r-- | src/adapter.c | 19 | ||||
-rw-r--r-- | src/near.h | 1 |
2 files changed, 0 insertions, 20 deletions
diff --git a/src/adapter.c b/src/adapter.c index 0f821ee..c77dc94 100644 --- a/src/adapter.c +++ b/src/adapter.c @@ -190,25 +190,6 @@ static int adapter_start_poll(struct near_adapter *adapter) return 0; } -static void append_path(gpointer key, gpointer value, gpointer user_data) -{ - struct near_adapter *adapter = value; - DBusMessageIter *iter = user_data; - - DBG("%s", adapter->path); - - if (!adapter->path) - return; - - dbus_message_iter_append_basic(iter, DBUS_TYPE_OBJECT_PATH, - &adapter->path); -} - -void __near_adapter_list(DBusMessageIter *iter, void *user_data) -{ - g_hash_table_foreach(adapter_hash, append_path, iter); -} - static gboolean property_get_mode(const GDBusPropertyTable *property, DBusMessageIter *iter, void *user_data) { @@ -92,7 +92,6 @@ int __near_adapter_remove_device(uint32_t idx); int __near_adapter_set_dep_state(uint32_t idx, bool dep); bool __near_adapter_get_dep_state(uint32_t idx); void __near_adapter_listen(struct near_device_driver *driver); -void __near_adapter_list(DBusMessageIter *iter, void *user_data); void __near_adapter_start_check_presence(uint32_t adapter_idx, uint32_t target_idx); void __near_adapter_stop_check_presence(uint32_t adapter_idx, uint32_t target_idx); int __near_adapter_init(void); |