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 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: 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. 28 Feb, 2014 1 commit
    • Jiří Klimeš's avatar
      libnm-util: add *_remove_*_by_value() functions for 'ipv4' and 'ipv6' settings · 1303ac3e
      Jiří Klimeš authored
      nm_setting_ip4_config_remove_dns_by_value()
      nm_setting_ip4_config_remove_dns_search_by_value()
      nm_setting_ip4_config_remove_address_by_value()
      nm_setting_ip4_config_remove_route_by_value()
      
      nm_setting_ip6_config_remove_dns_by_value()
      nm_setting_ip6_config_remove_dns_search_by_value()
      nm_setting_ip6_config_remove_address_by_value()
      nm_setting_ip6_config_remove_route_by_value()
      1303ac3e
  4. 16 Nov, 2012 1 commit
  5. 27 Jul, 2012 1 commit
  6. 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
  7. 27 Feb, 2012 1 commit
  8. 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
  9. 06 Jul, 2011 1 commit
  10. 21 Jan, 2011 1 commit
  11. 28 Jul, 2010 1 commit
  12. 20 May, 2010 1 commit
  13. 02 May, 2010 1 commit
    • Dan Williams's avatar
      libnm-util: add 'may-fail' for IPv4 and IPv6 · 806b74db
      Dan Williams authored
      When this property is TRUE, IP configuration can continue as long
      as at least on IP configuration type succeeds.  This allows
      connections to networks where the user does not necessarily know
      whether the network supports IPv4 or IPv6 and does not require
      that both complete succesfully.
      
      Since most of the time the user doesn't really care what type
      of connectivity they have, as long as they have *some* connectivity,
      this allows better "Just Works" behavior as long as the system
      settings plugins and connection editors/applets use the right
      defaults.
      
      Suggested defaults for may-fail are:
      
      IPv4: no (ie, require IPv4 connectivity)
      IPv6: yes (ie, do not require IPv6 connectivity)
      
      Users who require a specific type of connectivity are probably
      knowlegable enough to check the box as needed for their network.
      806b74db
  14. 17 Apr, 2010 1 commit
  15. 08 Jan, 2010 1 commit
  16. 30 Sep, 2009 1 commit
  17. 30 Jul, 2009 1 commit
  18. 30 Oct, 2008 1 commit
    • Dan Williams's avatar
      2008-10-30 Dan Williams <dcbw@redhat.com> · 567396ad
      Dan Williams authored
      	* libnm-util/libnm-util.ver
      	  libnm-util/nm-setting-ip6-config.c
      	  libnm-util/nm-setting-ip6-config.h
      	  libnm-util/Makefile.am
      		- Make properties private and add accessor functions
      		- Hide IPv6 stuff from public API, it's incomplete and completely unused
      
      	* libnm-util/nm-connection.c
      	  libnm-util/nm-utils.c
      	  libnm-util/nm-utils.h
      		- Ignore IPv6 stuff for now
      
      
      
      git-svn-id: http://svn-archive.gnome.org/svn/NetworkManager/trunk@4240 4912f4e0-d625-0410-9fb7-b9a5a253dbdc
      567396ad
  19. 27 Jul, 2008 1 commit
  20. 26 Jun, 2008 1 commit
    • Dan Williams's avatar
      2008-06-26 Dan Williams <dcbw@redhat.com> · 5a516abc
      Dan Williams authored
      	Patch from David Cantrell <dcantrell@redhat.com> and me
      
      	* include/nm-dbus-glib-types.h
      		- Add IP6 address types
      
      	* libnm-util/Makefile.am
      	  libnm-util/nm-setting-ip6-config.c
      	  libnm-util/nm-setting-ip6-config.h
      		- Add IP6 settings object
      
      	* libnm-util/nm-connection.c
      		- (register_default_settings): register ip6 settings object
      
      	* libnm-util/nm-utils.c
      	  libnm-util/nm-utils.h
      		- (nm_utils_ip6_addresses_from_gvalue, nm_utils_ip6_addresses_to_gvalue,
      		   nm_utils_ip6_dns_from_gvalue, nm_utils_ip6_dns_to_gvalue): add
      			ip6 address conversion functions
      
      
      
      git-svn-id: http://svn-archive.gnome.org/svn/NetworkManager/trunk@3778 4912f4e0-d625-0410-9fb7-b9a5a253dbdc
      5a516abc