1. 27 Feb, 2013 2 commits
  2. 26 Feb, 2013 1 commit
  3. 28 Mar, 2012 1 commit
    • Dan Winship's avatar
      libnm-glib: more ensure_inited() fixing · a4f450aa
      Dan Winship authored
      We need to do _nm_object_ensure_inited() /
      _nm_remote_settings_ensure_inited() from the get_property()
      implementations; in most cases, get_property() just calls another
      accessor method (which will call _nm_object_ensure_inited()), but in a
      few places, it reads priv->whatever directly, so we need to make sure
      that it's valid.
      a4f450aa
  4. 03 Feb, 2012 3 commits
    • Dan Winship's avatar
      libnm-glib: implement GInitable/GAsyncInitable in NMObject · 9fd98ef9
      Dan Winship authored
      Implement GInitable and GAsyncInitable in NMObject, with
      implementations that synchronously or asynchonously load all
      properties, and change _nm_object_ensure_inited() to run
      g_initable_init().
      
      Update the object/object-array property handling to initialize the
      objects after creating them (synchronously or asynchronously,
      according to the situation), so that they will have all of their
      properties preloaded before they are ever visible to the caller.
      
      Move the non-blocking/non-failable parts of various objects'
      constructor() methods to constructed(), and move the blocking/failable
      parts to init(), and implement init_async() methods with non-blocking
      versions of the blocking methods.
      
      Make nm_device_new() and nm_client_new() call
      _nm_object_ensure_inited(), to preserve the behaviour formerly
      enforced by their construct() methods, that properties are guaranteed
      to be initialized before any signals involving them are emitted.
      9fd98ef9
    • Dan Winship's avatar
      libnm-glib: simplify property getter methods · 5afcee46
      Dan Winship authored
      Rather than having every property getter method have code to fetch
      that specific property's value, just call the new
      _nm_object_ensure_inited() (which makes sure that we've read all the
      property values on the object at least once), and then return the
      cached value. (After we've read the initial property values, the
      PropertiesChanged signal handler will ensure that the values are kept
      up to date, so we can always just return cached property values after
      that point.)
      
      This then lets us get rid of _nm_object_get_property() and its
      wrappers.
      5afcee46
    • Dan Winship's avatar
      libnm-glib: simplify and genericize property declaration · 2e48cc09
      Dan Winship authored
      Rename _nm_object_handle_properties_changed(), etc, to be about
      properties in general, rather than just property changes.
      
      Interpret func==NULL in NMPropertiesInfo as meaning "use
      _nm_object_demarshal_generic", and then reorder the fields so that you
      can just leave that field out in the declarations when it's NULL.
      
      Add a way to register properties that exist in D-Bus but aren't
      tracked by the NMObjects, and use that for NMDevice's D-Bus Ip4Address
      property, replacing the existing hack.
      
      Also add a few other missing properties noticed along the way.
      2e48cc09
  5. 10 Mar, 2011 1 commit
  6. 22 Feb, 2011 1 commit
  7. 15 Feb, 2011 1 commit
  8. 21 Jan, 2011 1 commit
  9. 03 Aug, 2010 1 commit
  10. 27 Nov, 2008 1 commit
  11. 14 Nov, 2008 1 commit
  12. 05 Sep, 2008 1 commit
  13. 26 Aug, 2008 1 commit
  14. 12 Aug, 2008 1 commit
  15. 07 Aug, 2008 2 commits
    • Dan Williams's avatar
      2008-08-07 Dan Williams <dcbw@redhat.com> · 641a7072
      Dan Williams authored
      	* callouts/nm-dispatcher-action.c
      		- (nm_dispatcher_action): grab device path and create the device; pass
      			the device's DHCP4 config to script caller
      		- (dispatch_scripts): dump the DHCP4 config to the environment of called
      			scripts
      
      	* libnm-glib/nm-dhcp4-config.c
      	  libnm-glib/nm-dhcp4-config.h
      		- (nm_dhcp4_config_get_options): expose
      		- (nm_dhcp4_config_get_one_option): renamed from nm_dhcp4_config_get_option
      
      
      
      git-svn-id: http://svn-archive.gnome.org/svn/NetworkManager/trunk@3907 4912f4e0-d625-0410-9fb7-b9a5a253dbdc
      641a7072
    • Dan Williams's avatar
      2008-08-07 Dan Williams <dcbw@redhat.com> · 881370ab
      Dan Williams authored
      	* include/NetworkManager.h
      		- Add the DHCP4Config D-Bus interface
      
      	* libnm-glib/Makefile.am
      	  libnm-glib/nm-dhcp4-config.c
      	  libnm-glib/nm-dhcp4-config.h
      		- Handle DHCP4 config objects exported by NM over D-Bus
      
      	* libnm-glib/nm-device.c
      	  libnm-glib/nm-device.h
      		- Add a 'dhcp4-config' property
      
      	* libnm-glib/libnm-glib-test.c
      		- Print out DHCP4 config for devices
      		- Fix some crashes when no connections are active
      
      	* src/nm-device-interface.c
      	  src/nm-device.c
      	  src/nm-dhcp4-config.c
      	  src/nm-dhcp4-config.h
      		- Treat dhcp4-config object as an object path at the D-Bus interface so
      			that when it doesn't exist we can proxy it as "/" which dbus-glib
      			doesn't let us do when the property type is G_TYPE_OBJECT
      
      
      
      git-svn-id: http://svn-archive.gnome.org/svn/NetworkManager/trunk@3905 4912f4e0-d625-0410-9fb7-b9a5a253dbdc
      881370ab