Jan Luebbe
f9c72dee3e
wifi: support ap-mode with wpa_supplicant
...
A new value for NM80211Mode is introduced (NM_802_11_MODE_AP) and the
new mode is passed to wpa_supplicant analogous to adhoc-mode.
The places which need to know the interface mode have been extended to
handle the new mode.
If the configuration does not contain a fixed frequency, a channel is
selected the same way as with adhoc-mode before.
2012-10-17 12:08:11 -05:00
Jiří Klimeš
784af22159
examples: fix python example file names in EXTRA_DIST
2012-09-24 13:22:24 +02:00
Jiří Klimeš
033e8d2a77
examples: fix add-system-connection.py -> add-connection.py rename
...
It fixes 'make dist' that fails otherwise.
Found by pavlix.
2012-09-24 12:59:09 +02:00
Dan Williams
aaa5d2f70f
examples: add dispatcher example for exclusive wired/wifi
2012-09-20 10:19:11 -05:00
Jiří Klimeš
ef4b0f1d77
examples: add a shell example listing active Wi-Fi networks on Wi-Fi devices
2012-09-03 11:57:49 +02:00
Jiří Klimeš
02478a807d
examples: add a shell example for disconnecting devices
2012-08-31 14:24:44 +02:00
Jiří Klimeš
9d3fd87dd2
examples: port update-secrets example to NM 0.9 API
2012-08-29 10:13:06 +02:00
Jiří Klimeš
3b3060f2a5
examples: add IP converting functions and rename add-system-connection.py
2012-08-24 12:50:50 +02:00
Jiří Klimeš
3fe99e7ebf
examples: update examples for new device types
2012-08-24 09:48:19 +02:00
Jiří Klimeš
495fae7a7b
examples: add a python GObject Introspection example
...
It demonstrates getting NMIP4Config object after activating a device.
2012-06-13 13:28:43 +02:00
Dan Williams
53f6539f54
examples: add simply python GObject Introspection example
...
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
2012-06-11 14:46:33 -05:00
Colin Walters
74ec56d956
build: fix srcdir != builddir for new generated headers
2012-02-22 16:27:28 -06:00
Jiří Klimeš
0b57cc68fd
examples: fix dependency on GDBus (it's available only in GLib >= 2.26)
2012-02-14 09:03:21 +01:00
Jiří Klimeš
0c83e6e3b1
examples: add C example for monitoring overall NetworkManager state
2012-02-13 15:41:35 +01:00
Jiří Klimeš
38382770aa
examples: add C examples for monitoring whether NM runs
...
- the first uses dbus-glib and D-Bus "NameOwnerChanged" signal directly
- the second uses GIO's g_bus_watch_name()
- the third uses Qt and QDBusServiceWatcher class
2012-02-03 11:55:46 +01:00
Colin Walters
dab7dfaf35
build: fix srcdir != builddir
...
nm-version.h is in ${top_builddir}/include.
2012-01-09 14:20:36 -06:00
Jiří Klimeš
23839887ac
examples: add a shell example for listing devices
2011-12-09 10:24:59 +01:00
Jiří Klimeš
b366ebe321
examples: add some examples in shell
2011-12-08 16:36:37 +01:00
Thomas Graf
5b7503e95e
core: use nm_connection_get_setting_<type>() whenever possible
...
Leads to shorter, easier to read code and improves type casting safety.
Signed-off-by: Thomas Graf <tgraf@redhat.com >
2011-12-06 16:06:43 -06:00
Jiří Klimeš
77ef5e8676
examples: add a few examples in ruby
2011-11-29 16:20:04 +01:00
Thomas Jarosch
1453abbebc
test: add missing return values
...
Signed-off-by: Thomas Jarosch <thomas.jarosch@intra2net.com >
2011-10-10 16:02:27 -05:00
Jiří Klimeš
f95d503680
examples: correct a comment in list-devices.py example
2011-09-20 18:13:32 +02:00
Jiří Klimeš
ad4b8777e4
examples: fix list-connections.py to work with 0.9's GetSecrets() API
2011-09-20 18:07:25 +02:00
Dan Williams
e92043c4d5
examples: add python example for listing devices
2011-09-15 11:13:38 -05:00
Dan Williams
bf89da140c
examples: fix up active connection example
2011-08-06 10:44:50 +02:00
Dan Williams
c957fdfb52
examples: make some examples executable
2011-08-05 15:55:51 +02:00
Dan Williams
dab37276d2
examples: new example for printing active connection list
2011-08-05 15:55:14 +02:00
Jiří Klimeš
096a1fcdc9
examples: add a Qt example for setting manual IPv4 addresses into a connection
2011-06-08 19:18:53 +02:00
Eckhart Wörner
ff0ab192b9
examples: add another Qt example for listing connections
2011-04-20 19:49:41 -05:00
Eckhart Wörner
f8aa9f38da
examples: add some Qt examples and build infrastructure
2011-04-20 19:48:32 -05:00
Dan Williams
d98f3f226a
examples: move glib examples to a subdir
2011-04-20 19:25:50 -05:00
Dan Williams
3b0916d6f6
examples: rename another example
2011-04-20 19:15:33 -05:00
Dan Williams
4812fef794
examples: rename an example
2011-04-20 19:14:03 -05:00
Michael Biebl
530f143adf
use /usr/bin/env instead of /bin/env
2011-03-29 01:00:47 +02:00
Dan Williams
36294ddbce
examples: port system wifi example to NM 0.9
2011-03-02 23:37:22 -06:00
Dan Williams
526b2d0e6d
examples: simplify system wifi connection example
2011-03-02 23:36:38 -06:00
Dan Williams
56bbc139bd
examples: new example for adding system WPA EAP-TLS wifi connection
2011-03-02 23:36:07 -06:00
Dan Williams
b599e3e5dc
libnm-util: simplify nm_utils_ssid_to_utf8()
...
It's always used with a GByteArray anyway, as are most
functions in nm-utils.h. Even better, we can skip the
memcpy since it turns out to be pointless.
2011-02-23 11:24:58 -06:00
Dan Williams
8b2a274660
examples: fix distcheck
2011-02-16 16:36:22 -06:00
Dan Williams
74f25416fe
examples: add an example for adding a new connection with libnm-glib
2011-02-15 12:23:05 -06:00
Dan Williams
98d5da84aa
examples: rename add-connection-glib
2011-02-15 12:09:25 -06:00
Dan Williams
ab3816ee21
examples: fix up add-connection-glib for recent API changes
...
AddConnection returns the object path of the new connection.
2011-02-15 12:06:13 -06:00
Dan Williams
6d344a43e9
Merge remote-tracking branch 'origin/rm-userset'
...
There; it's merged. Yay!
2011-02-12 22:51:12 -06:00
Jiří Klimeš
d4b79f8b04
examples: add update secrets example
2011-01-31 14:04:04 +01:00
Dan Williams
e68e27aa75
libnm-util: add 'flags' argument to nm_connection_to_hash() and nm_setting_to_hash()
...
Simplifies code internally, and makes it easier for clients as well in
some cases where they want to control what ends up in the resulting
hash and what does not.
2011-01-26 14:14:37 -06:00
Dan Williams
f9ceafd4a1
Merge remote branch 'origin/master' into rm-userset
2011-01-12 15:46:37 -06:00
Jiří Klimeš
5705850779
examples: add C example showing APs' information
2010-12-17 13:42:07 +01:00
Jiří Klimeš
a6dccad94c
examples: trivial comment fix
2010-12-13 17:13:16 +01:00
Jiří Klimeš
1beb2632a0
examples: fix double free() error in get-active-connections
2010-12-13 16:36:46 +01:00
Jiří Klimeš
ca6e6b620d
examples: add C examples for listing connections from system settings service
2010-12-13 16:18:35 +01:00