Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
network-manager-applet
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
40
Issues
40
List
Boards
Labels
Service Desk
Milestones
Merge Requests
3
Merge Requests
3
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Operations
Operations
Incidents
Environments
Packages & Registries
Packages & Registries
Container Registry
Analytics
Analytics
CI / CD
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
GNOME
network-manager-applet
Commits
79a94106
Commit
79a94106
authored
Nov 11, 2016
by
Thomas Haller
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
c-e: tag PageNewConnectionResultFunc with a special argument
parent
497f7dc7
Changes
13
Hide whitespace changes
Inline
Side-by-side
Showing
13 changed files
with
19 additions
and
14 deletions
+19
-14
src/connection-editor/ce-page.h
src/connection-editor/ce-page.h
+5
-1
src/connection-editor/connection-helpers.c
src/connection-editor/connection-helpers.c
+2
-1
src/connection-editor/page-bluetooth.c
src/connection-editor/page-bluetooth.c
+1
-1
src/connection-editor/page-bond.c
src/connection-editor/page-bond.c
+1
-1
src/connection-editor/page-bridge.c
src/connection-editor/page-bridge.c
+1
-1
src/connection-editor/page-dsl.c
src/connection-editor/page-dsl.c
+1
-1
src/connection-editor/page-ethernet.c
src/connection-editor/page-ethernet.c
+1
-1
src/connection-editor/page-infiniband.c
src/connection-editor/page-infiniband.c
+1
-1
src/connection-editor/page-mobile.c
src/connection-editor/page-mobile.c
+1
-1
src/connection-editor/page-team.c
src/connection-editor/page-team.c
+1
-1
src/connection-editor/page-vlan.c
src/connection-editor/page-vlan.c
+1
-1
src/connection-editor/page-vpn.c
src/connection-editor/page-vpn.c
+2
-2
src/connection-editor/page-wifi.c
src/connection-editor/page-wifi.c
+1
-1
No files found.
src/connection-editor/ce-page.h
View file @
79a94106
...
...
@@ -36,7 +36,11 @@
/* for ARPHRD_ETHER / ARPHRD_INFINIBAND for MAC utilies */
#include <net/if_arp.h>
typedef
void
(
*
PageNewConnectionResultFunc
)
(
NMConnection
*
connection
,
struct
_func_tag_page_new_connection_result
;
#define FUNC_TAG_PAGE_NEW_CONNECTION_RESULT_IMPL struct _func_tag_page_new_connection_result *_dummy
#define FUNC_TAG_PAGE_NEW_CONNECTION_RESULT_CALL ((struct _func_tag_page_new_connection_result *) NULL)
typedef
void
(
*
PageNewConnectionResultFunc
)
(
FUNC_TAG_PAGE_NEW_CONNECTION_RESULT_IMPL
,
NMConnection
*
connection
,
gboolean
canceled
,
GError
*
error
,
gpointer
user_data
);
...
...
src/connection-editor/connection-helpers.c
View file @
79a94106
...
...
@@ -535,7 +535,8 @@ typedef struct {
}
NewConnectionData
;
static
void
new_connection_result
(
NMConnection
*
connection
,
new_connection_result
(
FUNC_TAG_PAGE_NEW_CONNECTION_RESULT_IMPL
,
NMConnection
*
connection
,
gboolean
canceled
,
GError
*
error
,
gpointer
user_data
)
...
...
src/connection-editor/page-bluetooth.c
View file @
79a94106
...
...
@@ -274,7 +274,7 @@ new_connection_mobile_wizard_done (NMAMobileWizard *wizard,
}
out:
(
*
info
->
result_func
)
(
info
->
connection
,
canceled
,
NULL
,
info
->
user_data
);
(
*
info
->
result_func
)
(
FUNC_TAG_PAGE_NEW_CONNECTION_RESULT_CALL
,
info
->
connection
,
canceled
,
NULL
,
info
->
user_data
);
if
(
wizard
)
nma_mobile_wizard_destroy
(
wizard
);
...
...
src/connection-editor/page-bond.c
View file @
79a94106
...
...
@@ -645,6 +645,6 @@ bond_connection_new (FUNC_TAG_PAGE_NEW_CONNECTION_IMPL,
NULL
);
g_free
(
my_iface
);
(
*
result_func
)
(
connection
,
FALSE
,
NULL
,
user_data
);
(
*
result_func
)
(
FUNC_TAG_PAGE_NEW_CONNECTION_RESULT_CALL
,
connection
,
FALSE
,
NULL
,
user_data
);
}
src/connection-editor/page-bridge.c
View file @
79a94106
...
...
@@ -339,5 +339,5 @@ bridge_connection_new (FUNC_TAG_PAGE_NEW_CONNECTION_IMPL,
NULL
);
g_free
(
my_iface
);
(
*
result_func
)
(
connection
,
FALSE
,
NULL
,
user_data
);
(
*
result_func
)
(
FUNC_TAG_PAGE_NEW_CONNECTION_RESULT_CALL
,
connection
,
FALSE
,
NULL
,
user_data
);
}
src/connection-editor/page-dsl.c
View file @
79a94106
...
...
@@ -228,5 +228,5 @@ dsl_connection_new (FUNC_TAG_PAGE_NEW_CONNECTION_IMPL,
NULL
);
nm_connection_add_setting
(
connection
,
setting
);
(
*
result_func
)
(
connection
,
FALSE
,
NULL
,
user_data
);
(
*
result_func
)
(
FUNC_TAG_PAGE_NEW_CONNECTION_RESULT_CALL
,
connection
,
FALSE
,
NULL
,
user_data
);
}
src/connection-editor/page-ethernet.c
View file @
79a94106
...
...
@@ -522,5 +522,5 @@ ethernet_connection_new (FUNC_TAG_PAGE_NEW_CONNECTION_IMPL,
client
);
nm_connection_add_setting
(
connection
,
nm_setting_wired_new
());
(
*
result_func
)
(
connection
,
FALSE
,
NULL
,
user_data
);
(
*
result_func
)
(
FUNC_TAG_PAGE_NEW_CONNECTION_RESULT_CALL
,
connection
,
FALSE
,
NULL
,
user_data
);
}
src/connection-editor/page-infiniband.c
View file @
79a94106
...
...
@@ -254,5 +254,5 @@ infiniband_connection_new (FUNC_TAG_PAGE_NEW_CONNECTION_IMPL,
client
);
nm_connection_add_setting
(
connection
,
nm_setting_infiniband_new
());
(
*
result_func
)
(
connection
,
FALSE
,
NULL
,
user_data
);
(
*
result_func
)
(
FUNC_TAG_PAGE_NEW_CONNECTION_RESULT_CALL
,
connection
,
FALSE
,
NULL
,
user_data
);
}
src/connection-editor/page-mobile.c
View file @
79a94106
...
...
@@ -490,7 +490,7 @@ new_connection_mobile_wizard_done (NMAMobileWizard *wizard,
nm_connection_add_setting
(
info
->
connection
,
nm_setting_ppp_new
());
}
(
*
info
->
result_func
)
(
info
->
connection
,
canceled
,
NULL
,
info
->
user_data
);
(
*
info
->
result_func
)
(
FUNC_TAG_PAGE_NEW_CONNECTION_RESULT_CALL
,
info
->
connection
,
canceled
,
NULL
,
info
->
user_data
);
if
(
wizard
)
nma_mobile_wizard_destroy
(
wizard
);
...
...
src/connection-editor/page-team.c
View file @
79a94106
...
...
@@ -1276,5 +1276,5 @@ team_connection_new (FUNC_TAG_PAGE_NEW_CONNECTION_IMPL,
NULL
);
g_free
(
my_iface
);
(
*
result_func
)
(
connection
,
FALSE
,
NULL
,
user_data
);
(
*
result_func
)
(
FUNC_TAG_PAGE_NEW_CONNECTION_RESULT_CALL
,
connection
,
FALSE
,
NULL
,
user_data
);
}
src/connection-editor/page-vlan.c
View file @
79a94106
...
...
@@ -801,5 +801,5 @@ vlan_connection_new (FUNC_TAG_PAGE_NEW_CONNECTION_IMPL,
client
);
nm_connection_add_setting
(
connection
,
nm_setting_vlan_new
());
(
*
result_func
)
(
connection
,
FALSE
,
NULL
,
user_data
);
(
*
result_func
)
(
FUNC_TAG_PAGE_NEW_CONNECTION_RESULT_CALL
,
connection
,
FALSE
,
NULL
,
user_data
);
}
src/connection-editor/page-vpn.c
View file @
79a94106
...
...
@@ -224,7 +224,7 @@ vpn_type_result_func (FUNC_TAG_NEW_CONNECTION_RESULT_IMPL,
{
NewVpnInfo
*
info
=
user_data
;
info
->
result_func
(
connection
,
connection
==
NULL
,
NULL
,
info
->
user_data
);
info
->
result_func
(
FUNC_TAG_PAGE_NEW_CONNECTION_RESULT_CALL
,
connection
,
connection
==
NULL
,
NULL
,
info
->
user_data
);
g_slice_free
(
NewVpnInfo
,
info
);
}
...
...
@@ -321,5 +321,5 @@ vpn_connection_new (FUNC_TAG_PAGE_NEW_CONNECTION_IMPL,
complete_vpn_connection
(
connection
,
client
);
(
*
result_func
)
(
connection
,
FALSE
,
NULL
,
user_data
);
(
*
result_func
)
(
FUNC_TAG_PAGE_NEW_CONNECTION_RESULT_CALL
,
connection
,
FALSE
,
NULL
,
user_data
);
}
src/connection-editor/page-wifi.c
View file @
79a94106
...
...
@@ -620,5 +620,5 @@ wifi_connection_new (FUNC_TAG_PAGE_NEW_CONNECTION_IMPL,
g_object_set
(
s_wifi
,
NM_SETTING_WIRELESS_MODE
,
"infrastructure"
,
NULL
);
nm_connection_add_setting
(
connection
,
s_wifi
);
(
*
result_func
)
(
connection
,
FALSE
,
NULL
,
user_data
);
(
*
result_func
)
(
FUNC_TAG_PAGE_NEW_CONNECTION_RESULT_CALL
,
connection
,
FALSE
,
NULL
,
user_data
);
}
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment