Dan Williams
27e7177ec4
libnm-util: add setting accessor helpers (bgo #644746 )
...
Makes code cleaner.
2011-03-15 10:32:42 -05:00
Kjartan Maraas
b224ab8e56
trivial: let g_free and g_strdup handle NULL (bgo #644763 )
2011-03-15 00:08:58 -05:00
Kjartan Maraas
c2b4b9c1d7
build: fix return types (bgo #644665 )
...
Some functions were returning FALSE or 0 instead of NULL.
2011-03-14 01:05:51 -05:00
Dan Williams
72dac886a7
libnm-util: allow setting-only hashes with nm_connection_update_secrets()
...
It's easier to be able to pass both a whole hashed connection, or just
a hashed setting to the function, and have it figure out what needs
to be updated based on the given setting_name.
Add some testcases to make sure that all works correctly too.
2011-03-09 09:31:44 -06:00
Jiří Klimeš
28cf83fe94
trivial: fix description of nm_connection_get_id()
2011-03-08 13:50:36 +01:00
Dan Williams
54918e32e4
libnm-util: add nm_connection_diff()
...
Returns a list of keys that differ between the settings in each
connection. nm_connection_compare() can't do that.
2011-02-22 23:36:43 -06:00
Giovanni Campagna
e77acd43b6
libnm-glib: more GObject introspection fixes (bgo #181415 )
...
Fix some annotations and add the necessary ones for new functions.
2011-02-21 18:11:21 -06:00
Dan Williams
c5235f87db
libnm-util: add connection helpers for ID and UUID
...
Shortcuts. Getting the ID and UUID is used in a ton of places
and this helps cut down on code.
2011-02-09 16:34:42 -06:00
Dan Williams
09d608b99c
trivial: more spacing cleanups
2011-02-09 16:30:30 -06:00
Dan Williams
c36c81e2b9
libnm-util: fix updating secrets
...
Broken by 5dd4f1ea01
2011-02-02 17:18:50 -06:00
Dan Williams
c4ada67108
libnm-util: simplify nm_connection_for_each_setting_value()
...
And use less memory as a bonus.
2011-01-31 21:53:16 -06:00
Dan Williams
37a9303c2e
libnm-util: fix hashing connections and settings
...
The first-level hash table key should be the setting name itself,
not the GType name of the setting's GObject. There's probably a
better way to do this to reduce that confusion.
2011-01-27 10:37:01 -06: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
Giovanni Campagna
3ebecd2a29
introspection: add GObject introspection support (bgo #637032 )
...
Add the necessary annotations (the mininum required, that is those
on return values. NULL parameters or container types may require
more), and the Autotools stuff to get a NetworkManager GIR for
libnm-util and a NMClient for libnm-glib.
2011-01-21 14:46:09 -06:00
Dan Williams
f9ceafd4a1
Merge remote branch 'origin/master' into rm-userset
2011-01-12 15:46:37 -06:00
Dan Williams
0587ef1179
Merge remote branch 'origin/master' into wimax
2011-01-02 17:24:23 -06:00
Dan Williams
8f699a77f2
libnm-util: check all valid permissions property types
2010-10-29 23:19:41 -05:00
Dan Williams
947efa3080
libnm-util: verify permissions property type
...
Connections are normally created from hashes using g_object_set()
which calls that object's set_property handler. But GObject does
not allow errors to be returned from property handlers, so if the
type doesn't match what it should be, the property does not get
set, and error is printed to stdout, and life goes on.
But that's not what we want for the permissions property since the
client might expect that property to be set, but the connection now
is available to everyone. So validate the permissions property
type (its really the only one we need to be so paranoid about)
and return an error when the incoming property type is wrong.
2010-10-29 22:31:23 -05:00
Daniel Gnoutcheff
fa8c9304b5
libnm-*: remove user settings support
...
Remove code related to "connection scope" and such. Later, we will also
do lots of code flattening and simplification that's possible now that
user settings are gone.
2010-08-06 13:05:46 -04:00
Dan Williams
22aee1ac8b
libnm-util: remove useless semicolons
2010-05-26 00:30:32 -07:00
Dan Williams
7754690e7e
libnm-util: use hash table iterators for simpler code
2010-05-26 00:28:26 -07:00
Tambet Ingo
ac0f32537e
Merge branch 'master' into wimax
2009-12-29 11:25:37 +02:00
Dan Williams
e2b9e401ca
libnm-util: remove unused variable
2009-12-23 11:07:50 -08:00
Tambet Ingo
75c734f1a9
wimax: Implement WiMAX support
2009-12-18 15:41:27 +02:00
Dan Williams
74fbda9b85
doc: fixes
2009-08-30 23:31:07 -05:00
Dan Williams
ce7ebaa7f9
libnm-util: ensure NMConnection scope & path can be set on construction
2009-08-11 00:02:05 -05:00
Dan Williams
0993ea3989
libnm-util: fix DEFAULT_MAP_SIZE; broken by ff88cf12c2
2009-08-10 15:21:16 -05:00
Daniel Drake
ff88cf12c2
olpc: add mesh device logic and config setting
2009-08-05 16:34:02 -04:00
Dan Winship
90bd1ad5cd
Install and fix up libnm-util IPv6 config stuff
2009-07-29 21:34:19 -04:00
Dan Williams
d74ab39671
libnm-util: register settings hash in nm_connection_lookup_setting_type()
...
If not already registered by something else...
2009-06-01 10:45:11 -04:00
Dan Williams
4ab96e8eb6
bluetooth: add NMSettingBluetooth
2009-05-13 12:34:45 -04:00
Dan Williams
ccbd9155ec
Documentation updates
...
git-svn-id: http://svn-archive.gnome.org/svn/NetworkManager/trunk@4331 4912f4e0-d625-0410-9fb7-b9a5a253dbdc
2008-11-24 04:30:36 +00:00
Dan Williams
d0dd5171ba
Documentation updates
...
git-svn-id: http://svn-archive.gnome.org/svn/NetworkManager/trunk@4330 4912f4e0-d625-0410-9fb7-b9a5a253dbdc
2008-11-24 02:45:35 +00:00
Dan Williams
2328650d2e
Documentation fixes
...
git-svn-id: http://svn-archive.gnome.org/svn/NetworkManager/trunk@4328 4912f4e0-d625-0410-9fb7-b9a5a253dbdc
2008-11-23 22:55:03 +00:00
Dan Williams
4d1859dc6a
2008-11-20 Dan Williams <dcbw@redhat.com>
...
* libnm-util/libnm-util.ver
libnm-util/nm-utils.c
libnm-util/nm-utils.h
libnm-util/nm-utils-private.h
libnm-util/nm-connection.c
- (nm_utils_register_value_transformations): make private, called
from NMConnection registration anyway
git-svn-id: http://svn-archive.gnome.org/svn/NetworkManager/trunk@4320 4912f4e0-d625-0410-9fb7-b9a5a253dbdc
2008-11-20 20:22:14 +00:00
Dan Williams
9e07f22295
documentation udpate
...
git-svn-id: http://svn-archive.gnome.org/svn/NetworkManager/trunk@4318 4912f4e0-d625-0410-9fb7-b9a5a253dbdc
2008-11-20 16:14:56 +00:00
Dan Williams
c818262849
Doc update
...
git-svn-id: http://svn-archive.gnome.org/svn/NetworkManager/trunk@4317 4912f4e0-d625-0410-9fb7-b9a5a253dbdc
2008-11-20 16:06:57 +00:00
Dan Williams
b8b93197a9
Fix argument names so they show up in the docs
...
git-svn-id: http://svn-archive.gnome.org/svn/NetworkManager/trunk@4316 4912f4e0-d625-0410-9fb7-b9a5a253dbdc
2008-11-20 16:03:00 +00:00
Dan Williams
320c3f378c
2008-11-20 Dan Williams <dcbw@redhat.com>
...
* libnm-util/libnm-util.ver
libnm-util/nm-setting.c
libnm-util/nm-setting.h
- Add NMSetting errors
- (nm_setting_update_secrets): return errors
* libnm-util/nm-connection.c
libnm-util/nm-connection.h
- (nm_connection_update_secrets): return errors
* libnm-util/nm-setting-vpn.c
src/nm-activation-request.c
src/vpn-manager/nm-vpn-connection.c
- Handle update secrets errors
git-svn-id: http://svn-archive.gnome.org/svn/NetworkManager/trunk@4314 4912f4e0-d625-0410-9fb7-b9a5a253dbdc
2008-11-20 15:44:57 +00:00
Dan Williams
034c1705ce
Documentation updates
...
git-svn-id: http://svn-archive.gnome.org/svn/NetworkManager/trunk@4313 4912f4e0-d625-0410-9fb7-b9a5a253dbdc
2008-11-20 15:22:25 +00:00
Dan Williams
6e40cdb3a5
2008-11-20 Dan Williams <dcbw@redhat.com>
...
* libnm-util/nm-setting.c
libnm-util/nm-setting.h
libnm-util/libnm-util.ver
- (nm_setting_new_from_hash): rename from nm_setting_from_hash() to be
consistent with nm_connection_new_from_hash()
* src/nm-activation-request.c
libnm-util/nm-connection.c
- Handle rename
git-svn-id: http://svn-archive.gnome.org/svn/NetworkManager/trunk@4312 4912f4e0-d625-0410-9fb7-b9a5a253dbdc
2008-11-20 14:47:08 +00:00
Dan Williams
9fc39274b9
2008-11-19 Dan Williams <dcbw@redhat.com>
...
* libnm-util/nm-connection.h
libnm-util/nm-connection.c
- Document public functions
git-svn-id: http://svn-archive.gnome.org/svn/NetworkManager/trunk@4301 4912f4e0-d625-0410-9fb7-b9a5a253dbdc
2008-11-19 18:30:38 +00:00
Dan Williams
3c2d8253ec
2008-11-19 Dan Williams <dcbw@redhat.com>
...
* libnm-util/nm-connection.c
libnm-util/nm-connection.h
- (nm_connection_replace_settings): take a GError
* libnm-glib/nm-settings.c
libnm-glib/nm-dbus-connection.c
src/nm-manager.c
system-settings/plugins/ifcfg-suse/nm-suse-connection.c
system-settings/plugins/keyfile/nm-keyfile-connection.c
system-settings/plugins/keyfile/plugin.c
- Handle, or don't handle, errors from nm_connection_replace_settings()
git-svn-id: http://svn-archive.gnome.org/svn/NetworkManager/trunk@4298 4912f4e0-d625-0410-9fb7-b9a5a253dbdc
2008-11-19 15:09:05 +00:00
Dan Williams
68a2fc9739
2008-11-19 Dan Williams <dcbw@redhat.com>
...
* libnm-util/libnm-util.ver
libnm-util/nm-connection.c
- (nm_setting_register, nm_setting_unregister): unexport; they are
private and don't have a use outside libnm-util
git-svn-id: http://svn-archive.gnome.org/svn/NetworkManager/trunk@4297 4912f4e0-d625-0410-9fb7-b9a5a253dbdc
2008-11-19 14:00:15 +00:00
Dan Williams
567396ad6d
2008-10-30 Dan Williams <dcbw@redhat.com>
...
* libnm-util/libnm-util.ver
libnm-util/nm-setting-ip6-config.c
libnm-util/nm-setting-ip6-config.h
libnm-util/Makefile.am
- Make properties private and add accessor functions
- Hide IPv6 stuff from public API, it's incomplete and completely unused
* libnm-util/nm-connection.c
libnm-util/nm-utils.c
libnm-util/nm-utils.h
- Ignore IPv6 stuff for now
git-svn-id: http://svn-archive.gnome.org/svn/NetworkManager/trunk@4240 4912f4e0-d625-0410-9fb7-b9a5a253dbdc
2008-10-30 19:39:51 +00:00
Dan Williams
c438326110
2008-10-27 Dan Williams <dcbw@redhat.com>
...
Patch from Tambet Ingo <tambet@gmail.com >
* libnm-util/nm-setting.h
libnm-util/nm-setting.c
- Make properties private and add accessor functions
* libnm-util/nm-connection.c
libnm-util/nm-setting-8021x.c
libnm-util/nm-setting-cdma.c
libnm-util/nm-setting-connection.c
libnm-util/nm-setting-gsm.c
libnm-util/nm-setting-ip4-config.c
libnm-util/nm-setting-ip6-config.c
libnm-util/nm-setting-ppp.c
libnm-util/nm-setting-pppoe.c
libnm-util/nm-setting-serial.c
libnm-util/nm-setting-template.c
libnm-util/nm-setting-vpn.c
libnm-util/nm-setting-wired.c
libnm-util/nm-setting-wireless-security.c
libnm-util/nm-setting-wireless.c
system-settings/plugins/keyfile/reader.c
system-settings/plugins/keyfile/writer.c
- Use setting accessors
git-svn-id: http://svn-archive.gnome.org/svn/NetworkManager/trunk@4228 4912f4e0-d625-0410-9fb7-b9a5a253dbdc
2008-10-27 17:36:18 +00:00
Dan Williams
d2ef616e51
Fill error when object isn't a connection (Alexander Sack)
...
git-svn-id: http://svn-archive.gnome.org/svn/NetworkManager/trunk@4074 4912f4e0-d625-0410-9fb7-b9a5a253dbdc
2008-09-18 13:31:11 +00:00
Dan Williams
10661abe17
2008-08-11 Dan Williams <dcbw@redhat.com>
...
Merge the vpn-properties setting with the vpn setting since it was pointless
to keep both of them around. Convert the vpn 'data' hash table to a hash
of string:string (instead of string:variant) so that system settings plugins
can have an easier time dealing with the arbitrary key/value pairs.
git-svn-id: http://svn-archive.gnome.org/svn/NetworkManager/trunk@3923 4912f4e0-d625-0410-9fb7-b9a5a253dbdc
2008-08-11 17:13:22 +00:00
Dan Williams
fb74207755
2008-08-04 Dan Williams <dcbw@redhat.com>
...
* libnm-util/nm-connection.c
libnm-util/nm-connection.h
- (nm_connection_verify): return error on missing 'connection' setting
(found by Sjoerd Simons)
git-svn-id: http://svn-archive.gnome.org/svn/NetworkManager/trunk@3895 4912f4e0-d625-0410-9fb7-b9a5a253dbdc
2008-08-04 22:16:08 +00:00
Dan Williams
281791ac77
2008-07-27 Dan Williams <dcbw@redhat.com>
...
* libnm-util/*
- Relicense to LGPLv2+
git-svn-id: http://svn-archive.gnome.org/svn/NetworkManager/trunk@3859 4912f4e0-d625-0410-9fb7-b9a5a253dbdc
2008-07-27 20:03:46 +00:00