<arg type="s" name="bridge_interface" direction="in"/>\r
<arg type="u" name="result" direction="out"/>\r
</method>\r
+ <method name="add_mesh_network">\r
+ <arg type="s" name="mesh_id" direction="in"/>\r
+ <arg type="i" name="channel" direction="in"/>\r
+ <arg type="i" name="security" direction="in"/>\r
+ <arg type="u" name="result" direction="out"/>\r
+ </method>\r
+ <method name="get_saved_mesh_network">\r
+ <arg type="a(a{sv})" name="mpath" direction="out"/>\r
+ </method>\r
+ <method name="select_saved_mesh_network">\r
+ <arg type="s" name="mesh_id" direction="in"/>\r
+ <arg type="i" name="channel" direction="in"/>\r
+ <arg type="i" name="security" direction="in"/>\r
+ <arg type="u" name="result" direction="out"/>\r
+ </method>\r
+ <method name="forget_saved_mesh_network">\r
+ <arg type="s" name="mesh_id" direction="in"/>\r
+ <arg type="i" name="channel" direction="in"/>\r
+ <arg type="i" name="security" direction="in"/>\r
+ <arg type="u" name="result" direction="out"/>\r
+ </method>\r
\r
\r
<!-- Signal (D-Bus) definitions -->\r
MESH_LOGE("Failed to mesh_request_specific_scan [%d]", ret);
}
- ret = mesh_request_dhcp(info->bridge_interface);
+ ret = mesh_dhcp_request(info->bridge_interface);
if (MESHD_ERROR_NONE != ret) {
- MESH_LOGE("Failed to mesh_request_dhcp [%d]", ret);
+ MESH_LOGE("Failed to mesh_dhcp_request [%d]", ret);
}
#endif
return TRUE;
}
+static gboolean _meshd_dbus_handle_add_mesh_network(NetMesh *object,
+ GDBusMethodInvocation *invocation,
+ gchar *mesh_id, gint channel, gint security,
+ gpointer user_data)
+{
+ int ret = MESHD_ERROR_NONE;
+
+ NOTUSED(user_data);
+ NOTUSED(mesh_id);
+ NOTUSED(channel);
+ NOTUSED(security);
+
+ MESH_LOGD("Not implemented yet !");
+
+ net_mesh_complete_add_mesh_network(object, invocation, ret);
+
+ return TRUE;
+}
+
+static gboolean _meshd_dbus_handle_get_saved_mesh_network(NetMesh *object,
+ GDBusMethodInvocation *invocation,
+ gpointer user_data)
+{
+ GVariant *variant = NULL;
+
+ NOTUSED(user_data);
+
+ MESH_LOGD("Not implemented yet !");
+
+ net_mesh_complete_get_saved_mesh_network(object, invocation, variant);
+
+ return TRUE;
+}
+
+static gboolean _meshd_dbus_handle_select_saved_mesh_network(NetMesh *object,
+ GDBusMethodInvocation *invocation,
+ gchar *mesh_id, gint channel, gint security,
+ gpointer user_data)
+{
+ int ret = MESHD_ERROR_NONE;
+
+ NOTUSED(user_data);
+ NOTUSED(mesh_id);
+ NOTUSED(channel);
+ NOTUSED(security);
+
+ MESH_LOGD("Not implemented yet !");
+
+ net_mesh_complete_select_saved_mesh_network(object, invocation, ret);
+
+ return TRUE;
+}
+
+static gboolean _meshd_dbus_handle_forget_saved_mesh_network(NetMesh *object,
+ GDBusMethodInvocation *invocation,
+ gchar *mesh_id, gint channel, gint security,
+ gpointer user_data)
+{
+ int ret = MESHD_ERROR_NONE;
+
+ NOTUSED(user_data);
+ NOTUSED(mesh_id);
+ NOTUSED(channel);
+ NOTUSED(security);
+
+ MESH_LOGD("Not implemented yet !");
+
+ net_mesh_complete_forget_saved_mesh_network(object, invocation, ret);
+
+ return TRUE;
+}
+
+
static void _meshd_dbus_on_bus_acquired(GDBusConnection *conn, const gchar *name,
gpointer user_data)
g_signal_connect(meshd_dbus_object, "handle-stop-bridge",
G_CALLBACK(_meshd_dbus_handle_stop_bridge), service);
+ g_signal_connect(meshd_dbus_object, "handle-add-mesh-network",
+ G_CALLBACK(_meshd_dbus_handle_add_mesh_network), service);
+ g_signal_connect(meshd_dbus_object, "handle-get-saved-mesh-network",
+ G_CALLBACK(_meshd_dbus_handle_get_saved_mesh_network), service);
+ g_signal_connect(meshd_dbus_object, "handle-select-saved-mesh-network",
+ G_CALLBACK(_meshd_dbus_handle_select_saved_mesh_network), service);
+ g_signal_connect(meshd_dbus_object, "handle-forget-saved-mesh-network",
+ G_CALLBACK(_meshd_dbus_handle_forget_saved_mesh_network), service);
+
ret = g_dbus_interface_skeleton_export(G_DBUS_INTERFACE_SKELETON(meshd_dbus_object),
conn, MESH_DBUS_OBJPATH, &error);
if (FALSE == ret) {