1. 01 Aug, 2014 3 commits
    • 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 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
  2. 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
  3. 30 Jun, 2014 1 commit
  4. 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
  5. 15 Jan, 2014 2 commits
  6. 05 Dec, 2013 1 commit
  7. 02 Dec, 2013 1 commit
  8. 22 Aug, 2013 1 commit
  9. 27 Jul, 2012 1 commit
  10. 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
  11. 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
  12. 08 Dec, 2011 1 commit
    • Thomas Graf's avatar
      bonding: add nm_connection_get_virtual_iface_name() to abstract kernel interface binding · 1cd8d520
      Thomas Graf authored
      Some connection types such as bonding, bridging and VLAN require
      specific virtual kernel interfaces identified by name to be auto
      connected to the connection.
      
      The function nm_connection_get_virtual_iface_name() returns the name
      of the kernel interface if the connection type requires this
      functionatlity.
      
      Each connection base type settings class can implement the function
      get_virtual_iface_name() if the connection needs to be auto connected
      to a specific kernel interface.
      Signed-off-by: default avatarThomas Graf <tgraf@redhat.com>
      1cd8d520
  13. 16 Aug, 2011 1 commit
    • Dan Williams's avatar
      settings: preserve agent secrets the right way · 2b2404bb
      Dan Williams authored
      What we want to do here is keep separate caches of system and
      agent secrets.  For system secrets, we cache them because NM
      periodically clears secrets using nm_connection_clear_secrets() to
      ensure they don't stay around in memory, and that transient secrets
      get requested again when they are needed.  For agent secrets, we
      only want them during activation, but a connection read from disk
      will not include agent secrets becuase by definition they aren't
      stored in system settings along with the connection.  Thus we need
      to keep the agent/transient secrets somewhere for the duration of
      the activation to ensure they don't get deleted.
      
      This removes the copy-back hack in update_auth_cb() which copied
      agent/transient secrets back into the connection over top of the
      transient secrets that had been copied back in
      nm_settings_connection_replace_settings().  No reason to copy
      them twice if we keep an agent/transient secrets hash and do
      the right thing with it.
      2b2404bb
  14. 05 Jul, 2011 1 commit
  15. 07 Jun, 2011 1 commit
    • Dan Williams's avatar
      libnm-util: add new compare flags for ignoring various types of secrets · 864db9f9
      Dan Williams authored
      It turns out we need a way to ignore transient (agent-owned or unsaved)
      secrets during connection comparison.  For example, if the user is
      connecting to a network where the password is not saved, other
      changes could trigger a writeout of that connection to disk when
      connecting, which would the connection back in due to inotify, and the
      re-read connection would then no longer be recognized as the same as
      the in-memory connection due to the transient secret which obviously
      wasn't read in from disk.
      
      Adding these compare flags allows the code to not bother writing the
      connection out to disk when the only difference between the on-disk
      and in-memory connections are secrets that shouldn't get written to
      disk anyway.
      864db9f9
  16. 23 Feb, 2011 1 commit
  17. 07 Feb, 2011 2 commits
  18. 01 Feb, 2011 1 commit
  19. 31 Jan, 2011 2 commits
  20. 29 Jan, 2011 1 commit
    • Dan Williams's avatar
      libnm-util: add secret flags for each secret describing how the secret is stored · 5a7cf39a
      Dan Williams authored
      This allows the necessary flexibility when handling secrets; otherwise
      it wouldn't be known when NM should save secrets returned from agents
      to backing storage, or when the agents should store the secrets. We
      can't simply use lack of a secret in persistent storage as the indicator
      of this, as (for example) when creating a new connection without
      secrets the storage method would be abmiguous.
      
      At the same time, fold in "always ask" functionality for OTP tokens
      so user agents don't have to store that attribute themselves out-of-band.
      5a7cf39a
  21. 26 Jan, 2011 1 commit
  22. 30 Sep, 2009 1 commit
  23. 19 Jan, 2009 1 commit
  24. 24 Nov, 2008 1 commit
  25. 23 Nov, 2008 1 commit
  26. 20 Nov, 2008 3 commits
  27. 19 Nov, 2008 1 commit
  28. 27 Oct, 2008 1 commit
    • Dan Williams's avatar
      2008-10-27 Dan Williams <dcbw@redhat.com> · c4383261
      Dan Williams authored
      	Patch from Tambet Ingo <tambet@gmail.com>
      
      	* libnm-util/nm-setting.h
      	  libnm-util/nm-setting.c
      		- Make properties private and add accessor functions
      
      	* libnm-util/nm-connection.c
      	  libnm-util/nm-setting-8021x.c
      	  libnm-util/nm-setting-cdma.c
      	  libnm-util/nm-setting-connection.c
      	  libnm-util/nm-setting-gsm.c
      	  libnm-util/nm-setting-ip4-config.c
      	  libnm-util/nm-setting-ip6-config.c
      	  libnm-util/nm-setting-ppp.c
      	  libnm-util/nm-setting-pppoe.c
      	  libnm-util/nm-setting-serial.c
      	  libnm-util/nm-setting-template.c
      	  libnm-util/nm-setting-vpn.c
      	  libnm-util/nm-setting-wired.c
      	  libnm-util/nm-setting-wireless-security.c
      	  libnm-util/nm-setting-wireless.c
      	  system-settings/plugins/keyfile/reader.c
      	  system-settings/plugins/keyfile/writer.c
      		- Use setting accessors
      
      
      
      git-svn-id: http://svn-archive.gnome.org/svn/NetworkManager/trunk@4228 4912f4e0-d625-0410-9fb7-b9a5a253dbdc
      c4383261
  29. 11 Sep, 2008 1 commit
  30. 27 Jul, 2008 1 commit
  31. 12 Jun, 2008 1 commit
  32. 13 May, 2008 1 commit