Commit 497f7dc7 authored by Thomas Haller's avatar Thomas Haller

c-e: tag DeleteConnectionResultFunc with a special argument

parent 1009ec16
......@@ -732,7 +732,7 @@ delete_cb (GObject *connection,
g_clear_error (&error);
if (result_func)
(*result_func) (NM_REMOTE_CONNECTION (connection), error == NULL, user_data);
(*result_func) (FUNC_TAG_DELETE_CONNECTION_RESULT_CALL, NM_REMOTE_CONNECTION (connection), error == NULL, user_data);
}
void
......
......@@ -66,7 +66,11 @@ void new_connection_of_type (GtkWindow *parent_window,
NewConnectionResultFunc result_func,
gpointer user_data);
typedef void (*DeleteConnectionResultFunc) (NMRemoteConnection *connection,
struct _func_tag_delete_connection_result;
#define FUNC_TAG_DELETE_CONNECTION_RESULT_IMPL struct _func_tag_delete_connection_result *_dummy
#define FUNC_TAG_DELETE_CONNECTION_RESULT_CALL ((struct _func_tag_delete_connection_result *) NULL)
typedef void (*DeleteConnectionResultFunc) (FUNC_TAG_DELETE_CONNECTION_RESULT_IMPL,
NMRemoteConnection *connection,
gboolean deleted,
gpointer user_data);
......
......@@ -359,7 +359,10 @@ do_edit (NMConnectionList *list)
}
static void
delete_connection_cb (NMRemoteConnection *connection, gboolean deleted, gpointer user_data)
delete_connection_cb (FUNC_TAG_DELETE_CONNECTION_RESULT_IMPL,
NMRemoteConnection *connection,
gboolean deleted,
gpointer user_data)
{
NMConnectionList *list = user_data;
......
......@@ -485,7 +485,8 @@ connection_double_clicked_cb (GtkTreeView *tree_view,
}
static void
delete_result_cb (NMRemoteConnection *connection,
delete_result_cb (FUNC_TAG_DELETE_CONNECTION_RESULT_IMPL,
NMRemoteConnection *connection,
gboolean deleted,
gpointer user_data)
{
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment