summaryrefslogtreecommitdiff
path: root/examples/python
Commit message (Collapse)AuthorAgeFilesLines
* libnm: make the the use of GInitable mandatoryDan Winship2014-08-014-4/+4
| | | | | | | | | | | Remove _nm_object_ensure_inited(), etc; objects that implement GInitable are now mandatory-to-init(). Remove constructor() implementations that sometimes return NULL; do all the relevant checking in init() instead. Make nm_client_new() and nm_remote_settings_new() take a GCancellable and a GError**.
* all: port everything to libnmDan Winship2014-08-018-41/+39
| | | | | | | | | | | Since the API has not changed at this point, this is mostly just a matter of updating Makefiles, and changing references to the library name in comments. NetworkManager cannot link to libnm due to the duplicated type/symbol names. So it links to libnm-core.la directly, which means that NetworkManager gets a separate copy of that code from libnm.so. Everything else links to libnm.
* examples: add Python dbus example indicating if WWAN is the default connectionDan Williams2014-06-202-1/+80
|
* examples: add Python D-Bus and GI examples for updating IPv4 setting methodDan Williams2014-06-104-2/+182
|
* examples: fix Makefile.am to include all Python examples for distributionJiří Klimeš2014-03-071-1/+1
|
* example: simplify get-active-connections.py by using ID and Type propertiesJiří Klimeš2014-03-051-16/+3
|
* examples: add a GOI Python example for getting active connectionsJiří Klimeš2014-03-032-1/+49
|
* examples: also print type of active connectionsJiří Klimeš2014-03-031-1/+1
|
* examples: a Python GOI example for adding connections persistent vs. not savedJiří Klimeš2014-01-242-1/+103
|
* examples: update get_ips.py python example for DNS informationJiří Klimeš2014-01-231-4/+40
|
* examples: add an python example (using GI) getting device IPsJiří Klimeš2014-01-162-1/+129
|
* docs: update documentation linksWilliam Jon McCann2013-12-172-2/+2
| | | | Various GNOME services moved around so links need updating.
* examples: update examples for new device typesJiří Klimeš2013-11-291-1/+6
|
* examples: add an python example (using GI) showing Wi-Fi networksJiří Klimeš2013-09-262-1/+75
|
* examples: use GLib.MainLoop instead of deprecated GObject.MainLoop in pythonJiri Popelka2013-09-243-6/+6
| | | | | jklimes: made the change for new firewall-zone.py example as well.
* examples: group python examples - dbus vs. giJiří Klimeš2013-09-2416-14/+17
| | | | | Move examples using dbus-python ('dbus' module) and GObject introspection into their own directories.
* examples: add a python example getting/setting zone property using GIJiří Klimeš2013-09-242-1/+89
|
* trivial: minor code cleanup in examples/pythonThomas Haller2013-08-063-7/+7
| | | | | | | There where cases, where TAB was mixed with SPACES. Replace TAB with SPACES. Additionally, make the script nm-state.py executable Signed-off-by: Thomas Haller <thaller@redhat.com>
* libnm-util: Fix transfer annotations of nm_{connection,setting}_need_secrets()Martin Pitt2013-04-191-4/+2
| | | | | | | | | | | The various need_secrets() implementation do allocate a fresh GPtrArray, but add static strings to them without dup'ing. Thus callers must _not_ free the array elements, only the array itself. Adjust documentation and annotations accordingly. Also adjust the corresponding comment in the goi-list-connections.py example. https://bugzilla.gnome.org/show_bug.cgi?id=698175
* examples: fix nm-state.py exampleJiří Klimeš2012-12-071-3/+18
|
* examples: fix python example file names in EXTRA_DISTJiří Klimeš2012-09-241-1/+2
|
* examples: fix add-system-connection.py -> add-connection.py renameJiří Klimeš2012-09-241-1/+1
| | | | | It fixes 'make dist' that fails otherwise. Found by pavlix.
* examples: port update-secrets example to NM 0.9 APIJiří Klimeš2012-08-291-37/+32
|
* examples: add IP converting functions and rename add-system-connection.pyJiří Klimeš2012-08-241-6/+21
|
* examples: update examples for new device typesJiří Klimeš2012-08-241-3/+7
|
* examples: add a python GObject Introspection exampleJiří Klimeš2012-06-132-1/+66
| | | | It demonstrates getting NMIP4Config object after activating a device.
* examples: add simply python GObject Introspection exampleDan Williams2012-06-112-1/+54
| | | | | | | | | | | | Unfortunately since libnm-glib/libnm-util make heavy use of GHashTable and GValue, functions that deal with these types can't be used from Python when using GObject Introspection, since pygobject can't handle conversion between python types and GValue/GHashTable very well. You'll likely encounter assertions like: ERROR:pygi-argument.c:1755:_pygi_argument_to_object: assertion failed: (g_type_info_get_tag (key_type_info) != GI_TYPE_TAG_VOID) Aborted
* examples: correct a comment in list-devices.py exampleJiří Klimeš2011-09-201-1/+1
|
* examples: fix list-connections.py to work with 0.9's GetSecrets() APIJiří Klimeš2011-09-201-18/+16
|
* examples: add python example for listing devicesDan Williams2011-09-152-3/+76
|
* examples: fix up active connection exampleDan Williams2011-08-061-7/+17
|
* examples: make some examples executableDan Williams2011-08-053-0/+0
|
* examples: new example for printing active connection listDan Williams2011-08-052-1/+48
|
* use /usr/bin/env instead of /bin/envMichael Biebl2011-03-298-8/+8
|
* examples: port system wifi example to NM 0.9Dan Williams2011-03-021-4/+3
|
* examples: simplify system wifi connection exampleDan Williams2011-03-021-2/+1
|
* examples: new example for adding system WPA EAP-TLS wifi connectionDan Williams2011-03-022-0/+66
|
* Merge remote-tracking branch 'origin/rm-userset'Dan Williams2011-02-124-26/+20
|\ | | | | | | There; it's merged. Yay!
| * Merge remote branch 'origin/master' into rm-usersetDan Williams2011-01-121-2/+2
| |\
| * | NetworkMangerSettings -> NetworkManager.SettingsDaniel Gnoutcheff2010-08-074-12/+12
| | | | | | | | | | | | | | | | | | | | | Just for consistency, make settings related stuff live under the org.freedesktop.NetworkManager namespace, rather than its own org.freedesktop.NetworkManagerSettings namespace. Renames are done for DBus interface names, DBus object paths, and polkit actions.
| * | DBus: merge NetworkManger{,SystemSettings}Daniel Gnoutcheff2010-08-073-7/+7
| | | | | | | | | | | | | | | | | | | | | Remove the org.freedesktop.NetworkManagerSystemSettings bus name and have everybody talk to org.freedesktop.NetworkManager. Now that we have a single settings service that's embedded in the main daemon, we don't need separate names anymore.
| * | examples: update for user settings removalDaniel Gnoutcheff2010-08-073-15/+9
| | | | | | | | | | | | | | | Some of the example code broke when we removed user settings services. Oops!
* | | examples: add update secrets exampleJiří Klimeš2011-01-311-0/+121
| |/ |/|
* | examples: fix querying active connectionsDan Williams2010-11-231-3/+3
|/
* examples: add device disconnect exampleDan Williams2010-07-142-1/+64
|
* examples: fix a prefixJiří Klimeš2010-05-061-1/+1
|
* examples: add example printing out all BSSIDs we can seeDan Williams2010-04-292-1/+80
|
* examples: add example for listing connectionsDan Williams2010-04-282-1/+116
|
* examples: add Tambet's VPN auto-activate exampleDan Williams2010-02-241-0/+152
|
* examples: add license headersDan Williams2010-02-242-0/+34
|