NetworkManager/examples/C/glib
Thomas Haller ca607d2eff
example: rework "vpn-import-libnm" example
- add more error handling and free/unref data.

- split code in 3 functions: vpn_connection_import(),
  connection_add() and main(). These steps are mostly
  independent, and having them in separate functions
  makes their separation clearer.

- handle error from nm_client_add_connection_async() to
  exit program with non zero exit code.
2021-04-01 21:16:01 +02:00
..
add-connection-gdbus.c all: update deprecated SPDX license identifiers 2021-01-05 09:46:21 +01:00
add-connection-libnm.c all: update deprecated SPDX license identifiers 2021-01-05 09:46:21 +01:00
get-active-connections-gdbus.c all: update deprecated SPDX license identifiers 2021-01-05 09:46:21 +01:00
get-ap-info-libnm.c all: update deprecated SPDX license identifiers 2021-01-05 09:46:21 +01:00
list-connections-gdbus.c all: update deprecated SPDX license identifiers 2021-01-05 09:46:21 +01:00
list-connections-libnm.c all: update deprecated SPDX license identifiers 2021-01-05 09:46:21 +01:00
meson.build example: importing vpn with libnm 2021-03-22 15:54:07 +01:00
monitor-nm-running-gdbus.c all: update deprecated SPDX license identifiers 2021-01-05 09:46:21 +01:00
monitor-nm-state-gdbus.c all: update deprecated SPDX license identifiers 2021-01-05 09:46:21 +01:00
vpn-import-libnm.c example: rework "vpn-import-libnm" example 2021-04-01 21:16:01 +02:00