1. 24 Jul, 2015 2 commits
    • Dan Winship's avatar
      core: add an NMExportedObject base class · 6fcc1dee
      Dan Winship authored
      Add NMExportedObject, make it the base class of all D-Bus-exported
      types, and move the nm-properties-changed-signal logic into it. (Also,
      make NMSettings use the same properties-changed code as everything
      else, which it was not previously doing, presumably for historical
      (This is mostly just shuffling code around at this point, but
      NMExportedObject will be more important in the gdbus port, since
      gdbus-codegen doesn't do a very good job of supporting objects that
      export multiple interfaces [as each NMDevice subclass does, for
      example], so we will need more glue/helper code in NMExportedObject
    • Dan Winship's avatar
      all: rename nm-glib-compat.h to nm-glib.h, use everywhere · 3452ee2a
      Dan Winship authored
      Rather than randomly including one or more of <glib.h>,
      <glib-object.h>, and <gio/gio.h> everywhere (and forgetting to include
      "nm-glib-compat.h" most of the time), rename nm-glib-compat.h to
      nm-glib.h, include <gio/gio.h> from there, and then change all .c
      files in NM to include "nm-glib.h" rather than including the glib
      headers directly.
      (Public headers files still have to include the real glib headers,
      since nm-glib.h isn't installed...)
      Also, remove glib includes from header files that are already
      including a base object header file (which must itself already include
      the glib headers).
  2. 13 Nov, 2014 1 commit
    • Dan Winship's avatar
      all: consistently include config.h · 3bfb163a
      Dan Winship authored
      config.h should be included from every .c file, and it should be
      included before any other include. Fix that.
      (As a side effect of how I did this, this also changes us to
      consistently use "config.h" rather than <config.h>. To the extent that
      it matters [which is not much], quotes are more correct anyway, since
      we're talking about a file in our own build tree, not a system
  3. 01 Aug, 2014 2 commits
    • Dan Winship's avatar
      libnm: rename NetworkManager.h and NetworkManagerVPN.h · 3ddce748
      Dan Winship authored
      "NetworkManager.h"'s name (and non-standard capitalization) suggest
      that it's some sort of high-level super-important header, but it's
      really just low-level D-Bus stuff. Rename it to "nm-dbus-interface.h"
      and likewise "NetworkManagerVPN.h" to "nm-vpn-dbus-interface.h"
    • Dan Winship's avatar
      libnm, core, cli, tui: fix the capitalization of various types · 3ac0f528
      Dan Winship authored
      GLib/Gtk have mostly settled on the convention that two-letter
      acronyms in type names remain all-caps (eg, "IO"), but longer acronyms
      become initial-caps-only (eg, "Tcp").
      NM was inconsistent, with most long acronyms using initial caps only
      (Adsl, Cdma, Dcb, Gsm, Olpc, Vlan), but others using all caps (DHCP,
      PPP, PPPOE, VPN). Fix libnm and src/ to use initial-caps only for all
      three-or-more-letter-long acronyms (and update nmcli and nmtui for the
      libnm changes).
  4. 19 Jun, 2014 1 commit
  5. 20 May, 2013 2 commits
  6. 08 Apr, 2013 1 commit
    • Dan Williams's avatar
      core: use wrappers for DBus object registration/unregistration · 3c7f267f
      Dan Williams authored
      When providing a service on the bus daemon and a private connection,
      we'll need to track objects so we can register them with the
      private connection too.  Thus all registration/unregistration
      calls have to go through the NMDBusManager, not straight to
  7. 11 May, 2011 1 commit
  8. 25 Feb, 2009 1 commit
    • Dan Williams's avatar
      core: ensure superclass' finalize method is called · f648c269
      Dan Williams authored
      Fixes a crash with PropertyChanged signals (triggered when using wifi + vpn and
      rmmod-ing the driver) where properties_changed_info_destroy() wouldn't get
      called on object destruction becuase the GObject finalize method never got
      called for the DHCP4Config and IP4Config objects.
  9. 03 Nov, 2008 1 commit
  10. 07 Aug, 2008 1 commit
    • 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
      		- Handle DHCP4 config objects exported by NM over D-Bus
      	* libnm-glib/nm-device.c
      		- 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
      		- 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
  11. 17 Jul, 2008 1 commit
    • Dan Williams's avatar
      2008-07-17 Dan Williams <dcbw@redhat.com> · edda4463
      Dan Williams authored
      	* introspection/Makefile.am
      		- Add bits for the DHCP4Config property of the device, and the DHCP4Config
      	* src/nm-device-interface.c
      		- Add the DHCP4Config property
      	* src/nm-device.c
      		- Keep track of DHCP4 options via a new DHCP4Config property and notify
      			D-Bus clients when it changes
      	* src/nm-dhcp4-config.c
      		- Simple object to store DHCP4 options, export them over D-Bus, and
      			notify when they change
      	* src/dhcp-manager/nm-dhcp-manager.c
      		- (nm_dhcp_manager_set_dhcp4_config, copy_dhcp4_config_option): copy and
      			filter server-returned DHCP options into an NMDHCP4Config object
      git-svn-id: http://svn-archive.gnome.org/svn/NetworkManager/trunk@3829 4912f4e0-d625-0410-9fb7-b9a5a253dbdc