element->enabled = TRUE;
+#if 0
g_dbus_emit_signal(connection, CONNMAN_MANAGER_PATH,
CONNMAN_MANAGER_INTERFACE, "ElementUpdated",
DBUS_TYPE_OBJECT_PATH, &element->path,
DBUS_TYPE_INVALID);
+#endif
return g_dbus_create_reply(msg, DBUS_TYPE_INVALID);
}
element->enabled = FALSE;
+#if 0
g_dbus_emit_signal(connection, CONNMAN_MANAGER_PATH,
CONNMAN_MANAGER_INTERFACE, "ElementUpdated",
DBUS_TYPE_OBJECT_PATH, &element->path,
DBUS_TYPE_INVALID);
+#endif
return g_dbus_create_reply(msg, DBUS_TYPE_INVALID);
}
return -EINVAL;
}
+#if 0
g_dbus_emit_signal(connection, CONNMAN_MANAGER_PATH,
CONNMAN_MANAGER_INTERFACE, "ElementUpdated",
DBUS_TYPE_OBJECT_PATH, &element->path,
DBUS_TYPE_INVALID);
+#endif
return 0;
}
}
}
+#if 0
g_dbus_emit_signal(connection, CONNMAN_MANAGER_PATH,
CONNMAN_MANAGER_INTERFACE, "ElementAdded",
DBUS_TYPE_OBJECT_PATH, &element->path,
DBUS_TYPE_INVALID);
+#endif
g_static_rw_lock_writer_unlock(&element_lock);
g_node_destroy(node);
}
+#if 0
g_dbus_emit_signal(connection, CONNMAN_MANAGER_PATH,
CONNMAN_MANAGER_INTERFACE, "ElementRemoved",
DBUS_TYPE_OBJECT_PATH, &element->path,
DBUS_TYPE_INVALID);
+#endif
if (element->type == CONNMAN_ELEMENT_TYPE_CONNECTION) {
emit_state_change(connection, "offline");
if (element->driver && element->driver->update)
element->driver->update(element);
+#if 0
g_dbus_emit_signal(connection, CONNMAN_MANAGER_PATH,
CONNMAN_MANAGER_INTERFACE, "ElementUpdated",
DBUS_TYPE_OBJECT_PATH, &element->path,
DBUS_TYPE_INVALID);
+#endif
return FALSE;
}
return reply;
}
+#if 0
static DBusMessage *list_elements(DBusConnection *conn,
DBusMessage *msg, void *data)
{
return reply;
}
+#endif
static GDBusMethodTable manager_methods[] = {
{ "GetProperties", "", "a{sv}", get_properties },
{ "RegisterAgent", "o", "", register_agent },
{ "UnregisterAgent", "o", "", unregister_agent },
+#if 0
{ "ListElements", "", "ao", list_elements },
+#endif
{ },
};
static GDBusSignalTable manager_signals[] = {
{ "PropertyChanged", "sv" },
+#if 0
{ "ElementAdded", "o" },
{ "ElementUpdated", "o" },
{ "ElementRemoved", "o" },
+#endif
{ },
};