NetworkManager/libnm-util
Tambet Ingo 850f441ea5 2007-10-16 Tambet Ingo <tambet@gmail.com>
Implement a generic NMSetting creator from setting name.
        While at it, get rid of all nm_setting_foo_new_from_hash()
functions and
        add a virtual function 'populate_fn'.

        * libnm-util/nm-connection.c (nm_connection_create_setting):
        * Implement.
        (register_default_creators): Register setting creators instead
of functions
        that create and then populate.
        (parse_one_setting): Use the common setting creator and then
setting specific
        poplulation function.

        * libnm-util/nm-setting.c: Get rid of
        * nm_setting_foo_new_from_hash() functions,
        they all looked exactly the same.
        Add a 'populate_fn' virtual function to NMSetting.
        Use default virtual functions in case they are not overriden.
        (nm_setting_populate_from_hash): Implement.

        * src/nm-device.c (real_act_stage3_ip_config_start): Don't hard
        * code the setting
        name, use a defined string.
        (real_act_stage4_get_ip4_config): Ditto.



git-svn-id: http://svn-archive.gnome.org/svn/NetworkManager/trunk@2978 4912f4e0-d625-0410-9fb7-b9a5a253dbdc
2007-10-16 15:18:01 +00:00
..
.cvsignore Add cvsignore file 2005-12-10 02:26:47 +00:00
libnm-util.pc.in Patch from Timo Hoenig: fix library name for libnm-util 2006-01-09 15:05:19 +00:00
Makefile.am 2007-10-10 Tambet Ingo <tambet@gmail.com> 2007-10-10 14:36:31 +00:00
nm-connection.c 2007-10-16 Tambet Ingo <tambet@gmail.com> 2007-10-16 15:18:01 +00:00
nm-connection.h 2007-10-16 Tambet Ingo <tambet@gmail.com> 2007-10-16 15:18:01 +00:00
nm-setting.c 2007-10-16 Tambet Ingo <tambet@gmail.com> 2007-10-16 15:18:01 +00:00
nm-setting.h 2007-10-16 Tambet Ingo <tambet@gmail.com> 2007-10-16 15:18:01 +00:00
nm-utils.c 2007-10-09 Tambet Ingo <tambet@gmail.com> 2007-10-09 10:04:07 +00:00
nm-utils.h 2007-10-09 Tambet Ingo <tambet@gmail.com> 2007-10-09 10:04:07 +00:00