1. 16 Aug, 2014 1 commit
    • Dan Winship's avatar
      all: fix up multiple-include-guard defines · c81fb49a
      Dan Winship authored
      Previously, src/nm-ip4-config.h, libnm/nm-ip4-config.h, and
      libnm-glib/nm-ip4-config.h all used "NM_IP4_CONFIG_H" as an include
      guard, which meant that nm-test-utils.h could not tell which of them
      was being included (and so, eg, if you tried to include
      nm-ip4-config.h in a libnm test, it would fail to compile because
      nm-test-utils.h was referring to symbols in src/nm-ip4-config.h).
      
      Fix this by changing the include guards in the non-API-stable parts of
      the tree:
      
        - libnm-glib/nm-ip4-config.h remains   NM_IP4_CONFIG_H
        - libnm/nm-ip4-config.h now uses     __NM_IP4_CONFIG_H__
        - src/nm-ip4-config.h now uses       __NETWORKMANAGER_IP4_CONFIG_H__
      
      And likewise for all other headers.
      
      The two non-"nm"-prefixed headers, libnm/NetworkManager.h and
      src/NetworkManagerUtils.h are now __NETWORKMANAGER_H__ and
      __NETWORKMANAGER_UTILS_H__ respectively, which, while not entirely
      consistent with the general scheme, do still mostly make sense in
      isolation.
      c81fb49a
  2. 01 Aug, 2014 6 commits
    • Dan Winship's avatar
      libnm: add NetworkManager.h, disallow including individual headers · d0b05b34
      Dan Winship authored
      Add NetworkManager.h, which includes all of the other NM header, and
      require all external users of libnm to use that rather than the
      individual headers.
      
      (An exception is made for nm-dbus-interface.h,
      nm-vpn-dbus-interface.h, and nm-version.h, which can be included
      separately.)
      d0b05b34
    • 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"
      3ddce748
    • Dan Winship's avatar
      libnm: fix up class struct reserved slots · 2fc55941
      Dan Winship authored
      Add reserved slots to those classes that were missing them (or had run
      out), and sync up the number of slots across classes:
      
        - 8 slots for "important" classes, abstract base classes, and
          classes we expect we might need to add new virtual methods or
          signals to later.
      
        - 4 for everything else
      
      Also, rearrange the class elements in a few places into standard order
      (signals first, then methods).
      2fc55941
    • Dan Winship's avatar
      libnm: remove Since tags and NM_AVAILABLE_IN_* attributes · b4ae6eae
      Dan Winship authored
      Everything currently in libnm has always been there.
      b4ae6eae
    • Dan Winship's avatar
      libnm: remove all deprecated functions and types · 054c12ea
      Dan Winship authored
      Remove deprecated functions and enum types.
      
      For now, deprecated properties are still around, because removing them
      would cause warnings when talking to older implementations.
      054c12ea
    • Dan Winship's avatar
      libnm: add libnm/libnm-core (part 1) · d595f784
      Dan Winship authored
      This commit begins creating the new "libnm", which will replace
      libnm-util and libnm-glib.
      
      The main reason for the libnm-util/libnm-glib split is that the daemon
      needs to link to libnm-util (to get NMSettings, NMConnection, etc),
      but can't link to libnm-glib (because it uses many of the same type
      names as the NetworkManager daemon. eg, NMDevice). So the daemon links
      to only libnm-util, but basically all clients link to both.
      
      With libnm, there will be only a single client-visible library, and
      NetworkManager will internally link against a private "libnm-core"
      containing the parts that used to be in libnm-util.
      
      (The "libnm-core" parts still need to be in their own directory so
      that the daemon can see those header files without also seeing the
      ones in libnm/ that conflict with its own headers.)
      
      [This commit just copies the source code from libnm-util/ to
      libnm-core/, and libnm-glib/ to libnm/:
      
        mkdir -p libnm-core/tests/
        mkdir -p libnm/tests/
        cp libnm-util/*.[ch] libnm-util/nm-version.h.in libnm-core/
        rm -f libnm-core/nm-version.h libnm-core/nm-setting-template.[ch] libnm-core/nm-utils-enum-types.[ch]
        cp libnm-util/tests/*.[ch] libnm-core/tests/
        cp libnm-glib/*.[ch] libnm/
        rm -f libnm/libnm_glib.[ch] libnm/libnm-glib-test.c libnm/nm-glib-enum-types.[ch]
        cp libnm-glib/tests/*.[ch] libnm/tests/
      
      ]
      d595f784
  3. 15 Jul, 2014 2 commits
    • Dan Winship's avatar
      libnm-util, libnm-glib: whitespace fixes · 2570c5a1
      Dan Winship authored
      Fix indentation, kill trailing whitespace, split some long lines.
      2570c5a1
    • Dan Winship's avatar
      libnm-util, libnm-glib: standardize copyright/license headers · cb7e1893
      Dan Winship authored
      - Remove list of authors from files that had them; these serve no
        purpose except to quickly get out of date (and were only used in
        libnm-util and not libnm-glib anyway).
      
      - Just say "Copyright", not "(C) Copyright" or "Copyright (C)"
      
      - Put copyright statement after the license, not before
      
      - Remove "NetworkManager - Network link manager" from the few files
        that contained it, and "libnm_glib -- Access network status &
        information from glib applications" from the many files that
        contained it.
      
      - Remove vim modeline from nm-device-olpc-mesh.[ch], add emacs modeline
        to files that were missing it.
      cb7e1893
  4. 28 Feb, 2014 1 commit
  5. 13 Feb, 2014 1 commit
    • Dan Winship's avatar
      libnm-util, libnm-glib: add versioned deprecation/availability macros · 9c4d86ee
      Dan Winship authored
      Add versioned NM_DEPRECATED_IN_* and NM_AVAILABLE_IN_* macros, and tag
      new/deprecated functions accordingly. (All currently-deprecated
      functions are assumed to have been deprecated in 0.9.10.)
      
      Add NM_VERSION_MIN_REQUIRED and NM_VERSION_MAX_ALLOWED macros which
      can be set to determine which versions will cause warnings.
      
      With the current settings, external consumers of the
      libnm-util/libnm-glib APIs will have MIN_REQUIRED and MAX_ALLOWED both
      set to NM_VERSION_0_9_8 by default, meaning they will get warnings
      about functions added in 0.9.10. NM internally sets
      NM_VERSION_MAX_ALLOWED to NM_VERSION_NEXT_STABLE to ensure that it is
      always allowed to use all APIs.
      9c4d86ee
  6. 02 Sep, 2013 1 commit
    • Jiří Klimeš's avatar
      libnm-util: deprecate 'security' property of '802-11-wireless' setting · 0185e837
      Jiří Klimeš authored
      'security' property is redundant, because the security restrictions are easily
      recognized by the presence of '802-11-wireless-security' in a Wi-Fi connection.
      The setting has to be present anyway, but we also had to set and check whether
      the value in 'security' matches the security setting.
      Following the KISS principle, it is best not to use the 'security' property
      altogether.
      0185e837
  7. 07 May, 2013 1 commit
  8. 22 Feb, 2013 1 commit
  9. 17 Oct, 2012 1 commit
    • Jan Lübbe's avatar
      wifi: support ap-mode with wpa_supplicant · f9c72dee
      Jan Lübbe authored
      A new value for NM80211Mode is introduced (NM_802_11_MODE_AP) and the
      new mode is passed to wpa_supplicant analogous to adhoc-mode.
      The places which need to know the interface mode have been extended to
      handle the new mode.
      
      If the configuration does not contain a fixed frequency, a channel is
      selected the same way as with adhoc-mode before.
      f9c72dee
  10. 27 Jul, 2012 1 commit
  11. 14 Jun, 2012 1 commit
  12. 02 May, 2012 1 commit
  13. 12 Mar, 2012 1 commit
    • Dan Winship's avatar
      Fix names of error enum values · 54ef8f32
      Dan Winship authored
      When NM was registering all of its enum types by hand, it was using
      NamesLikeThis rather than the default names-like-this for the "nick"
      values. When we switched to using glib-mkenums, this resulted in
      dbus-glib using different strings for the D-Bus error names, causing
      compatibility problems.
      
      Fix this by using glib-mkenums annotations to manually fix all the
      enum values back to what they were before. (This can't be done in a
      more automated way, because the old names aren't 100% consistent. Eg,
      "UNKNOWN" frequently becomes "UnknownError" rather than just
      "Unknown".)
      54ef8f32
  14. 15 Feb, 2012 1 commit
    • Dan Winship's avatar
      Use glib-mkenums to generate enum types · 839eab55
      Dan Winship authored
      Rather than generating enum classes by hand (and complaining in each
      file that "this should really be standard"), use glib-mkenums.
      
      Unfortunately, we need a very new version of glib-mkenums in order to
      deal with NM's naming conventions and to fix a few other bugs, so just
      import that into the source tree temporarily.
      
      Also, to simplify the use of glib-mkenums, import Makefile.glib from
      https://bugzilla.gnome.org/654395.
      
      To avoid having to run glib-mkenums for every subdirectory of src/,
      add a new "generated" directory, and put the generated enums files
      there.
      
      Finally, use Makefile.glib for marshallers too, and generate separate
      ones for libnm-glib and NetworkManager.
      839eab55
  15. 05 Jul, 2011 1 commit
  16. 30 Jun, 2011 1 commit
  17. 11 Mar, 2011 1 commit
  18. 09 Jan, 2011 1 commit
  19. 22 Jun, 2010 1 commit
    • Jiří Klimeš's avatar
      core: MAC address spoofing/cloning (rh #447827) (bgo #553771) · 1b49f941
      Jiří Klimeš authored
      This commit implements MAC cloning feature in NetworkManager. To support that,
      'PermHwAddress' property is added into *.Device.Wired and *.Device.Wireless
      interfaces. The permanent MAC address is obtained when creating the device, and
      is used for 'locking' connections to the device. If a cloned MAC is specified
      in connection to be activated, the MAC is set to the interface in stage1. While
      disconecting, the permanent MAC is set back to the interface.
      1b49f941
  20. 30 Sep, 2009 1 commit
  21. 28 Oct, 2008 1 commit
    • Dan Williams's avatar
      2008-10-28 Dan Williams <dcbw@redhat.com> · 69713a8b
      Dan Williams authored
      	Patch from Tambet Ingo <tambet@gmail.com>
      
      	* libnm-util/libnm-util.ver
      	  libnm-util/nm-setting-wireless.c
      	  libnm-util/nm-setting-wireless.h
      		- Make properties private and add accessor functions
      
      	* src/NetworkManagerAP.c
      	  src/nm-device-wifi.c
      	  src/nm-manager.c
      	  src/supplicant-manager/nm-supplicant-config.c
      	  system-settings/plugins/ifcfg-fedora/nm-ifcfg-connection.c
      	  system-settings/plugins/ifcfg-fedora/reader.c
      	  system-settings/plugins/ifcfg-suse/parser.c
      	  system-settings/plugins/ifupdown/parser.c
      		- Use wireless setting accessors
      
      
      
      git-svn-id: http://svn-archive.gnome.org/svn/NetworkManager/trunk@4231 4912f4e0-d625-0410-9fb7-b9a5a253dbdc
      69713a8b
  22. 27 Jul, 2008 1 commit
  23. 12 Jun, 2008 1 commit
  24. 29 May, 2008 1 commit
  25. 28 May, 2008 1 commit
    • Dan Williams's avatar
      2008-05-28 Dan Williams <dcbw@redhat.com> · 0b52ca0b
      Dan Williams authored
      	* libnm-util/nm-setting-wireless.c
      	  libnm-util/nm-setting-wireless.h
      		- (set_property, get_property, nm_setting_wireless_class_init): add the
      			'adhoc-create' property, which when TRUE indicates that NM should
      			create this connection as an adhoc wifi network if it's not found
      			as an adhoc network during scanning.  Can be used to auto-create
      			adhoc networks when used in combination with autoconnect.
      
      
      
      git-svn-id: http://svn-archive.gnome.org/svn/NetworkManager/trunk@3697 4912f4e0-d625-0410-9fb7-b9a5a253dbdc
      0b52ca0b
  26. 07 Nov, 2007 1 commit
    • Tambet Ingo's avatar
      2007-11-07 Tambet Ingo <tambet@gmail.com> · 6b79d40a
      Tambet Ingo authored
              Rework NMSetting structures: Move each setting to it's own file.
              Convert to GObject. Remove home grown setting types and use
      GTypes.
              Use GObject property introspection for hash conversion,
      enumerating
              properties, etc.
      
              * libnm-util/nm-setting-connection.[ch]
              * libnm-util/nm-setting-ip4-config.[ch]
              * libnm-util/nm-setting-ppp.[ch]
              * libnm-util/nm-setting-vpn.[ch]
              * libnm-util/nm-setting-vpn-properties.[ch]
              * libnm-util/nm-setting-wired.[ch]
              * libnm-util/nm-setting-wireless.[ch]
              * libnm-util/nm-setting-wireless-security.[ch]
      
              New files, each containing a setting.
      
              * libnm-util/nm-setting-template.[ch]: A template for creating
              * new
              settings. To use it, just replace 'template' with the new
      setting
              name, and you're half-way done.
      
              * libnm-util/nm-setting.c: Convert to GObject and use GObject
              introspection instead of internal types and tables.
      
              * libnm-util/nm-connection.c: Adapt the new NMSetting work.
      
              * libnm-util/nm-param-spec-specialized.[ch]: Implement. Handles
              GValue types defined by dbus-glib for composed types like
      collections,
              structures and maps.
      
              * src/*: The API of NMSetting and NMConnection changed a bit:
              * Getting
              a setting from connection takes the setting type now. Also,
      since
              the settings are in multiple files, include relevant settings.
      
      
      
      git-svn-id: http://svn-archive.gnome.org/svn/NetworkManager/trunk@3068 4912f4e0-d625-0410-9fb7-b9a5a253dbdc
      6b79d40a