1. 22 Feb, 2017 1 commit
    • Beniamino Galvani's avatar
      core: add support for dummy devices · b42f780e
      Beniamino Galvani authored
      Add support for creating dummy devices. This commit adds a D-Bus
      interface 'org.freedesktop.NetworkManager.Device.Dummy' which is used
      primarily for determining the device type but does not carry any
  2. 16 Jan, 2017 1 commit
  3. 09 Dec, 2015 2 commits
  4. 01 Dec, 2015 1 commit
  5. 25 Nov, 2015 1 commit
  6. 21 Nov, 2014 1 commit
  7. 07 Nov, 2014 4 commits
    • Dan Winship's avatar
      libnm, docs: docs fixes · cbabd135
      Dan Winship authored
      Update the docs build to include and exclude the correct files.
      Fill in some missing documentation, and fix problems in the existing
      docs. (In particular, "<" can't appear as a literal in documentation,
      so change it to "&lt;". Also, "PKCS#12" has to be written as
      "PKCS#<!-- -->12", or gtk-doc will think "#12" is a reference to a
      type named "12".)
    • Dan Winship's avatar
      libnm: rename NMVpnPluginUiInterface, add to NetworkManager.h · 7c214de4
      Dan Winship authored
      Rename NMVpnPluginUiInterface to NMVpnEditorPlugin (to clarify that
      it's unrelated to NMVpnPlugin), and add it to NetworkManager.h.
      Rename NMVpnPluginUiWidgetInterface to NMVpnEditor, because it's not a
      widget, and will soon be used for non-gui editing too. (Also, add a
      placeholder for the method that non-gui editing will use.)
      Fix the typedefs to not mix up the (dummy) NMVpnEditorPlugin and
      NMVpnEditor types with the types of their interface structs. Update to
      Drop NMVpnPluginUiInterfaceProp; it doesn't matter what codes plugin
      implementations use for the interface properties that they implement.
    • Dan Winship's avatar
      libnm: create NMDhcpConfig as parent of NMDhcp4Config and NMDhcp6Config · ca18b2d4
      Dan Winship authored
      As with NMIP4Config and NMIP6Config, merge the two DHCP config classes
      into one in the public API.
    • Dan Winship's avatar
      libnm: create NMIPConfig as parent of NMIP4Config and NMIP6Config · d34910b1
      Dan Winship authored
      Create NMIPConfig as the parent of NMIP4Config and NMIP6Config, and
      remove the two subclasses from the public API; while it's convenient
      to still have both internally, they are now identical to the outside
  8. 10 Oct, 2014 1 commit
  9. 04 Sep, 2014 5 commits
    • Dan Winship's avatar
      libnm: fix NMIP4Config/NMIP6Config addresses/routes properties · 98959d54
      Dan Winship authored
      The docs for NMIP4Config:addresses and NMIP4Config:routes claimed that
      they were GPtrArrays of NMIP4Address/NMIP4Route, but get_property()
      was actually trying to set them the D-Bus representation type, and it
      was failing anyway because it used g_value_set_boxed() on a parameter
      that was declared GParamSpecPointer. Fix it to use a GPtrArray-valued
      property, and set it to the right thing.
      NMIP6Config did the right thing with its :addresses and :routes
      properties, but was using custom types (NM_TYPE_IP6_ADDRESS_OBJECT_ARRAY and
      NM_TYPE_IP6_ROUTE_OBJECT_ARRAY). Make it use G_TYPE_PTR_ARRAY instead.
      nm-types.c, nm-types.h, and nm-types-private.h are now empty, and so
      can be dropped.
    • Dan Winship's avatar
      libnm: drop libnm IP-address-array types, use G_TYPE_STRV · 356fb7d7
      Dan Winship authored
      Make NMIP4Config:nameservers, NMIP4Config:wins-servers, and
      NMIP6Config:nameservers be G_TYPE_STRV, with stringified IP addresses,
      and update the APIs accordingly.
    • Dan Winship's avatar
      libnm: drop NM_TYPE_OBJECT_ARRAY, use G_TYPE_PTR_ARRAY · 074c2093
      Dan Winship authored
      Use G_TYPE_PTR_ARRAY for GPtrArray-of-NMObject-valued properties,
      because it has better introspection/bindings support.
      As with the strdict change in libnm-core, we need to manually copy the
      array in get_property() implementations, to preserve the standard
      semantics that get_property() returns a copy, not the internal array.
      (This patch also changes those properties so that they are always
      non-NULL until dispose(); previously some of them could be either NULL
      or 0-length at different times.)
    • Dan Winship's avatar
      libnm: drop NM_TYPE_SSID, use G_TYPE_BYTES · 20dc44bd
      Dan Winship authored
      Make NMAccessPoint:ssid be G_TYPE_BYTES and update the corresponding
      APIs accordingly.
    • Dan Winship's avatar
      libnm: drop NM_TYPE_STRING_ARRAY, use G_TYPE_STRV · 4eb04dbc
      Dan Winship authored
      Make NMIP4Config and NMIP6Config's array-of-string properties be
      G_TYPE_STRV, and update the corresponding APIs accordingly.
  10. 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
  11. 01 Aug, 2014 3 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
    • Dan Winship's avatar
      libnm: add libnm/libnm-core (part 2) · eedcf185
      Dan Winship authored
      This fixes up the code from the previous "clean" import, and adds
      build infrastructure.
      [There are two slightly orthogonal sets of changes in this patch.
      First, the files added in the previous commit were modified as followed:
        # Replace internal references to "libnm-util" and "libnm-glib" with "libnm"
        perl -pi -e 's/libnm-(util|glib)/libnm/;' libnm-core/*.[ch] libnm-core/tests/*.[ch] libnm/*.[ch] libnm/tests/*.[ch]
        # Fix includes of the enum-types files
        perl -pi -e 's/nm-utils-enum-types/nm-core-enum-types/;' libnm-core/*.[ch] libnm-core/tests/*.[ch] libnm/*.[ch] libnm/tests/*.[ch]
        perl -pi -e 's/nm-glib-enum-types/nm-enum-types/;' libnm/*.[ch] libnm/tests/*.[ch]
        # Fix some python example code
        perl -pi -e 's/import NMClient/import NM/;' -e 's/NMClient.Client\(\)/NM.Client()/;' libnm/nm-client.c
      Then, the build infrastructure was added (without further modifying
      any existing files in libnm-core or libnm.)
      Note: to regenerate libnm.ver after rebase:
        (head -2 libnm-util/libnm-util.ver; (grep -h '\s'nm_ libnm-util/libnm-util.ver libnm-glib/libnm-glib.ver | env LANG=C sort); tail -3 libnm-util/libnm-util.ver) > libnm/libnm.ver
    • 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/
  12. 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.
  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
      To avoid having to run glib-mkenums for every subdirectory of src/,
      add a new "generated" directory, and put the generated enums files
      Finally, use Makefile.glib for marshallers too, and generate separate
      ones for libnm-glib and NetworkManager.
  14. 18 May, 2010 1 commit
  15. 20 Aug, 2009 1 commit
  16. 14 Nov, 2008 1 commit
  17. 24 Mar, 2008 1 commit
    • Dan Williams's avatar
      2008-03-24 Dan Williams <dcbw@redhat.com> · 00735165
      Dan Williams authored
      	Massive fixup of libnm-glib to:
      	a) have all objects (with the exception of VPN) cache their properties and
      		update them asynchronously on PropertiesChanged signals from NM
      	b) return internal const data for most attributes/properties instead of
      		allocated values that the caller must free
      	c) cache wrapped objects such that a given D-Bus path will always map to the
      		same GObject returned by libnm-glib
      	d) remove a few signals and move them to GObject property notifications
      	e) match recent NM D-Bus API changes for activation/deactivation
      	f) remove some private functions from libnm-glib headers
      git-svn-id: http://svn-archive.gnome.org/svn/NetworkManager/trunk@3491 4912f4e0-d625-0410-9fb7-b9a5a253dbdc