1. 19 Nov, 2014 1 commit
    • Dan Winship's avatar
      libnm, libnm-util: move settings doc generation to libnm-core · c1448698
      Dan Winship authored
      Move the settings/plugins doc generation from libnm-util to
      libnm-core, since libnm-util isn't being updated for all new
      properties.
      
      With this commit, the keyfile and ifcfg-rh documentation is basically
      unchanged, except that deprecated properties are now gone, and new
      properties have been added, and the sections are in a different order.
      (generate-plugin-docs.pl just outputs the settings in Makefile order,
      and they were unsorted in libnm-util, but are sorted in libnm-core).
      
      The settings documentation used for nm-settings.5, the D-Bus API docs,
      and the nmcli help is changed a bit more at this point, and mostly for
      the worse, since the libnm-core setting properties don't match up with
      the D-Bus API as well as the libnm-util ones do. To be fixed...
      
      (I also removed the "plugins docs" line in each plugin docs comment
      block while moving them, since those blocks will be used for more than
      just plugins soon, and it's sort of obvious anyway.)
      c1448698
  2. 13 Nov, 2014 2 commits
    • Dan Winship's avatar
      libnm*: fix library gettext usage · 53f5e9af
      Dan Winship authored
      Libraries need to include <gi18n-lib.h>, not <gi18n.h>, so that _()
      will get defined to "dgettext (GETTEXT_DOMAIN, string)" rather than
      "gettext (string)" (which will use the program's default domain, which
      works fine for programs in the NetworkManager tree, but not for
      external users). Likewise, we need to call bindtextdomain() so that
      gettext can find the translations if the library is installed in a
      different prefix from the program using it (and
      bind_textdomain_codeset(), so it will know the translations are in
      UTF-8 even if the locale isn't).
      
      (The fact that no one noticed this was broken before is because the
      libraries didn't really start returning useful translated strings much
      until 0.9.10, and none of the out-of-tree clients have been updated to
      actually show those strings to users yet.)
      53f5e9af
    • 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
      include.)
      3bfb163a
  3. 07 Nov, 2014 1 commit
  4. 29 Aug, 2014 2 commits
  5. 01 Aug, 2014 1 commit
  6. 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
  7. 26 Jun, 2014 1 commit
  8. 19 Jun, 2014 3 commits
    • Dan Winship's avatar
      libnm-util: remove NMSetting* GParamSpec docs · cdc15cb2
      Dan Winship authored
      Remove all the GParamSpec docs, since everything now uses the gtk-doc
      docs instead, so there's no point in having two copies of each (which
      are often out of sync anyway).
      
      Since we're touching so many lines anyway, also fix up the indentation
      of the remaining property-installing lines, and add
      G_PARAM_STATIC_STRINGS to each paramspec (so the nick strings don't
      get strduped). Also, be consistent about starting a new line between
      "g_object_class_install_property" and its opening parenthesis.
      cdc15cb2
    • Dan Winship's avatar
      libnm-util: various NMSetting* property doc fixes/improvements · e8577083
      Dan Winship authored
      Fix up various issues with the docs for the NMSetting properties, and
      pull in text from the GParamSpec docs where the GParamSpec docs were
      better (or contained information that is necessary in the context of
      nm-settings.5).
      
      Also, consistently wrap all of the doc comments to the same width (80
      columns).
      e8577083
    • Dan Winship's avatar
      libnm-util: fix gtk-doc bugs in NMSetting* properties · 9de24b16
      Dan Winship authored
      Fix misused gtk-doc annotations and incorrectly-identified properties.
      
      In particular, the upcoming introspection-based generate-settings-spec
      expands macro and enum values, so if you use '%' where you should have
      used '#', it will fail to find an expansion, and error out.
      9de24b16
  9. 04 Jun, 2014 1 commit
  10. 02 May, 2014 1 commit
  11. 26 Mar, 2014 1 commit
  12. 03 Mar, 2014 1 commit
  13. 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
  14. 23 Jan, 2014 1 commit
    • Dan Williams's avatar
      core: allow custom IP address ranges for Shared connections (bgo #675973) · 32a001f5
      Dan Williams authored
      Given an IPv4 address and prefix for a shared config, figure out
      the DHCP address range automatically.  To keep things simple we
      allow a max of 252 addresses (not including network address,
      broadcast address, and the hotspot) no matter what prefix you use,
      so if the address is 10.0.10.1, you still only get a range of
      10.0.10.2 -> 10.0.10.254.
      
      But we also leave some addresses available above the host address
      for static stuff, like we did before.  This is done on a sliding
      scale from 0 to 8 addresses, where about 1/10th the number of
      available addresses are reserved.
      
      https://bugzilla.gnome.org/show_bug.cgi?id=675973
      32a001f5
  15. 12 Dec, 2013 2 commits
  16. 05 Dec, 2013 1 commit
  17. 02 Dec, 2013 1 commit
  18. 07 Nov, 2013 1 commit
  19. 22 Aug, 2013 1 commit
  20. 03 Jul, 2013 1 commit
  21. 25 Jun, 2013 1 commit
  22. 13 Jun, 2013 1 commit
  23. 29 May, 2013 1 commit
  24. 28 May, 2013 1 commit
  25. 01 Apr, 2013 1 commit
  26. 13 Mar, 2013 1 commit
  27. 20 Nov, 2012 1 commit
  28. 29 Oct, 2012 1 commit
    • Dan Williams's avatar
      libnm-util: clean up setting registration · 38e3819b
      Dan Williams authored
      Make setting type registration less icky; instead of having the
      connection register all the settings, have the settings themselves
      register that information at library load time.  Putting this sort
      of thing in G_DEFINE_TYPE_WITH_CODE is apparently more standard
      than the home-rolled stuff we had before.  Also document the
      priority stuff so when adding new settings, people know what
      priority to use.
      
      (cleanups by jklimes)
      38e3819b
  29. 02 Jul, 2012 1 commit
  30. 15 Mar, 2012 1 commit
    • Tore Anderson's avatar
      core: allow IPv4 to fail by default · 4abb300c
      Tore Anderson authored
      (comments by dcbw)
      This allows out-of-the-box connectivity	on IPv6-only networks.
      Once caveat is that connections	where the user currently
      expects	no IPv4	connectivity to	terminate the connection and
      retry will no longer do	so until IPv6 also times out, and if
      that network where IPv4	is expected to fail also has an IPv6
      router sending advertisements, the connection will succeed
      instead	of failing.  That can be resolved by setting the
      right bit in the connection's config file; and it's expected
      that the number	of users who expect IPv4 failure on a
      network	with usable IPv6 connectivity is quite small
      compared to the	benefit	of OOB IPv6 connectivity.
      4abb300c
  31. 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
  32. 06 Jul, 2011 1 commit
  33. 05 Jul, 2011 2 commits