1. 03 Apr, 2019 1 commit
  2. 19 Mar, 2019 1 commit
    • Lubomir Rintel's avatar
      all: goodbye libnm-glib · 1de8383a
      Lubomir Rintel authored
      This removes libnm-glib, libnm-glib-vpn, and libnm-util for good.
      The it has been replaced with libnm since NetworkManager 1.0, disabled
      by default since 1.12 and no up-to-date distributions ship it for years
      now.
      
      Removing the libraries allows us to:
      
      * Remove the horrible hacks that were in place to deal with accidental use
        of both the new and old library in a single process.
      * Relief the translators of maintenance burden of similar yet different
        strings.
      * Get rid of known bad code without chances of ever getting fixed
        (libnm-glib/nm-object.c and libnm-glib/nm-object-cache.c)
      * Generally lower the footprint of the releases and our workspace
      
      If there are some really really legacy users; they can just build
      libnm-glib and friends from the NetworkManager-1.16 distribution. The
      D-Bus API is stable and old libnm-glib will keep working forever.
      
      https://github.com/NetworkManager/NetworkManager/pull/308
      1de8383a
  3. 30 Apr, 2018 1 commit
  4. 09 Mar, 2017 1 commit
    • Thomas Haller's avatar
      include: use double-quotes to include our own headers · 831286df
      Thomas Haller authored
      In practice, this should only matter when there are multiple
      header files with the same name. That is something we try
      to avoid already, by giving headers a distinct name.
      
      When building NetworkManager itself, we clearly want to use
      double-quotes for including our own headers.
      But we also want to do that in our public headers. For example:
      
        ./a.c
          #include <stdio.h>
          #include <nm-1.h>
          void main() {
              printf ("INCLUDED %s/nm-2.h\n", SYMB);
          }
      
        ./1/nm-1.h
          #include <nm-2.h>
      
        ./1/nm-2.h
          #define SYMB "1"
      
        ./2/nm-2.h
          #define SYMB "2"
      
      $ cc -I./2 -I./1 ./a.c
      $ ./a.out
      INCLUDED 2/nm-2.h
      
      Exceptions to this are
        - headers in "shared/nm-utils" that include <NetworkManager.h>. These
          headers are copied into projects and hence used like headers owned by
          those projects.
        - examples/C
      831286df
  5. 15 Jul, 2014 1 commit
    • 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
  6. 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
  7. 27 Jan, 2014 1 commit
  8. 15 Nov, 2013 1 commit
  9. 14 Jun, 2013 1 commit
    • Dan Winship's avatar
      core: add monitor-connection-files=false and ReloadConnections · 1f818510
      Dan Winship authored
      Add a "monitor-connection-files" config option, which can be set to
      "false" to disable automatic reloading of connections on file change.
      
      To go with this, add a new ReloadConnections method on
      o.fd.NM.Settings that can be used to manually reload connections, and
      add an nm-cli command to call it.
      1f818510
  10. 28 May, 2013 1 commit
  11. 27 Jul, 2012 1 commit
  12. 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
  13. 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
  14. 03 Feb, 2012 1 commit
  15. 22 Apr, 2011 1 commit
    • Dan Williams's avatar
      settings: add a GetConnectionByUuid method · 4cae0bb0
      Dan Williams authored
      If the client knows the UUID, add a convenience function to get
      the connection path directly, instead of having to iterate the
      whole connection list and get each connection's details and then
      check the UUID.
      4cae0bb0
  16. 10 Mar, 2011 1 commit
  17. 21 Jan, 2011 1 commit
  18. 27 Dec, 2010 1 commit
  19. 29 Oct, 2010 1 commit
  20. 26 Aug, 2010 1 commit
    • Dan Williams's avatar
      core: consolidate all permissions checking into main D-Bus interface · 3945f75b
      Dan Williams authored
      Moves the system settings permissions checking into the core service's
      permissions checking, which at the same time enables 3-way permission
      reporting (yes, no, auth) instead of the old yes/no that we had for
      system settings permissions before.  This allows UI to show a lock
      icon or such when the user could authenticate to gain the permission.
      
      It also moves the wifi-create permissions' namespace to the main
      namespace (not .settings) since they really should be checked before
      starting a shared wifi connection, rather than having anything to do
      with the settings service.
      3945f75b
  21. 06 Aug, 2010 2 commits
    • Daniel Gnoutcheff's avatar
      libnm-glib: remove NMSettingsInterface · c2f4b10a
      Daniel Gnoutcheff authored
      NMSettingsInterface was created to allow code to operate on a settings
      service without caring about what kind of settings service it was. Now
      that we have just one settings service, this is no longer needed.
      
      More work needs to be done in order to handle errors and permission
      settings in an appropriate manner.
      c2f4b10a
    • Daniel Gnoutcheff's avatar
      libnm-*: remove user settings support · fa8c9304
      Daniel Gnoutcheff authored
      Remove code related to "connection scope" and such. Later, we will also
      do lots of code flattening and simplification that's possible now that
      user settings are gone.
      fa8c9304
  22. 30 Sep, 2009 1 commit
  23. 23 Sep, 2009 1 commit
  24. 23 Jul, 2009 1 commit
    • Dan Williams's avatar
      libnm-glib: implement new settings interfaces · 0d69dfe3
      Dan Williams authored
      The old NMExportedConnection was used for both client and server-side classes,
      which was a mistake and made the code very complicated to follow.  Additionally,
      all PolicyKit operations were synchronous, and PK operations can block for a
      long time (ie for user input) before returning, so they need to be async.  But
      NMExportedConnection and NMSysconfigConnection didn't allow for async PK ops
      at all.
      
      Use this opportunity to clean up the mess and create GInterfaces that both
      server and client objects implement, so that the connection editor and applet
      can operate on generic objects like they did before (using the interfaces) but
      can perform specific operations (like async PK verification of callers) depending
      on whether they are local or remote or whatever.
      0d69dfe3