2008-10-10 Alexander Sack <asac@ubuntu.com>
authorAlexander Sack <asac@ubuntu.com>
Fri, 10 Oct 2008 11:12:05 +0000 (11:12 +0000)
committerDan Williams <dcbw@redhat.com>
Fri, 10 Oct 2008 11:12:05 +0000 (11:12 +0000)
commit0359c9a59b45adf8682076aaa02341bbda35464e
tree6cd8fac1593ce91215548b8808c0cfb9317e4b06
parent73dfd9643ef4e4488d2f0b0b5937dde12c1f909e
2008-10-10  Alexander Sack  <asac@ubuntu.com>

Add support to track network devices that have a configuration
with a matching interface.name in /etc/network/interfaces

* system-settings/plugins/ifupdown/plugin.c
- (typedef struct SCPluginIfupdownPrivate): add hash table
to track |well_known_udis|
- (get_iface_for_udi): helper function to get interface.name
for a udi
- (hal_device_added_cb, hal_device_removed_cb): callbacks
that add and remove devices to and from the well_known_udis
set depending on whether their |interface.name| matches
any interface definition in /etc/network/interfaces
- (SCPluginIfupdown_init): connect callbacks from above with
hal_mgr and setup well_known_udis hashtable
- (GObject__dispose): destroy well_known_udis hashtable
- (hal_device_added_cb2): implement wrapper callback with GFunc
signature. user_data is supposed to be a triple (hal_mgr,
config and devtype)
- (SCPluginIfupdown_init): bootstrap wired and wifi devices for
startup and call hal_device_added_cb2

git-svn-id: http://svn-archive.gnome.org/svn/NetworkManager/trunk@4162 4912f4e0-d625-0410-9fb7-b9a5a253dbdc
ChangeLog
system-settings/plugins/ifupdown/plugin.c