NetworkManager/examples/python/gi
Thomas Haller 735dc41bd0 libnm: rework checkpoint API
The libnm API fir checkpoints was only introduced with 1.11. It
is not yet stable, so there is still time to adjust it. Note that
this changes API/ABI of the development branch.

Changes:

- we only add async variants of the checkpoint functions. I believe
  that synchronous D-Bus methods are fundamentally flawed, because
  they mess up the ordering of events.
  Rename the async functions by removing the "_async" suffix. This
  matches glib style, for which the async form is also not specially
  marked.

- for function that refere to a particular checkpoint (rollback and
  destroy), accept the D-Bus path as string, instead of an NMCheckpoint
  instance. This form is more flexible, because it allows to use
  the function without having a NMCheckpoint instance at hand. On the
  other hand, if one has a NMCheckpoint instance, he can trivially
  obtain the path to make the call.
2018-04-04 14:02:13 +02:00
..
add_connection.py python: make dbus, gi examples, and debug-helper.py python3 ready 2017-12-04 11:21:40 +01:00
checkpoint.py libnm: rework checkpoint API 2018-04-04 14:02:13 +02:00
deactivate-all.py python: make dbus, gi examples, and debug-helper.py python3 ready 2017-12-04 11:21:40 +01:00
device-state-ip4config.py all: replace non-leading tabs with spaces 2018-02-07 13:32:04 +01:00
dns.py examples: add DNS example with python and GObject introspection 2016-12-12 22:06:24 +01:00
firewall-zone.py python: use gi.require_version() in generate-setting-docs.py and examples 2015-11-11 10:56:05 +01:00
get-active-connections.py python: make dbus, gi examples, and debug-helper.py python3 ready 2017-12-04 11:21:40 +01:00
get-devices.py examples/python: fix "import gi" in example 2016-11-16 11:50:30 +01:00
get-lldp-neighbors.py python: use gi.require_version() in generate-setting-docs.py and examples 2015-11-11 10:56:05 +01:00
get_ips.py python: make dbus, gi examples, and debug-helper.py python3 ready 2017-12-04 11:21:40 +01:00
list-connections.py python: make dbus, gi examples, and debug-helper.py python3 ready 2017-12-04 11:21:40 +01:00
nm-connection-update-stable-id.py examples: add python/gi example nm-connection-update-stable-id.py 2017-12-05 19:57:24 +01:00
README examples: add README for examples/python/gi 2015-12-07 15:59:20 +01:00
setting-user-data.py examples: add setting-user-data.py 2017-05-06 14:53:09 +02:00
show-wifi-networks.py python: make dbus, gi examples, and debug-helper.py python3 ready 2017-12-04 11:21:40 +01:00
update-ip4-method.py python: make dbus, gi examples, and debug-helper.py python3 ready 2017-12-04 11:21:40 +01:00
vpn-import.py examples: add python example using VPN import code 2017-11-06 18:37:05 +01:00

These examples show how to call libnm from Python using
GObject introspection.