1. 01 Aug, 2014 5 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: rename NetworkManager.h and NetworkManagerVPN.h · 3ddce748
      Dan Winship authored
      "NetworkManager.h"'s name (and non-standard capitalization) suggest
      that it's some sort of high-level super-important header, but it's
      really just low-level D-Bus stuff. Rename it to "nm-dbus-interface.h"
      and likewise "NetworkManagerVPN.h" to "nm-vpn-dbus-interface.h"
    • Dan Winship's avatar
      libnm: make the the use of GInitable mandatory · 258e74eb
      Dan Winship authored
      Remove _nm_object_ensure_inited(), etc; objects that implement
      GInitable are now mandatory-to-init().
      Remove constructor() implementations that sometimes return NULL; do
      all the relevant checking in init() instead.
      Make nm_client_new() and nm_remote_settings_new() take a GCancellable
      and a GError**.
    • Dan Winship's avatar
      libnm: consistently use "INTERFACE" rather than "IFACE" in macros · f441cf2b
      Dan Winship authored
      Most D-Bus interface name macros used "INTERFACE" in their name (eg,
      NM_DBUS_INTERFACE), but a few used "IFACE" instead (eg,
      NM_DBUS_IFACE_SETTINGS). Make them consistent.
    • Dan Winship's avatar
      all: port everything to libnm · a7c4d53d
      Dan Winship authored
      Since the API has not changed at this point, this is mostly just a
      matter of updating Makefiles, and changing references to the library
      name in comments.
      NetworkManager cannot link to libnm due to the duplicated type/symbol
      names. So it links to libnm-core.la directly, which means that
      NetworkManager gets a separate copy of that code from libnm.so.
      Everything else links to libnm.
  2. 15 Jul, 2014 1 commit
    • Dan Winship's avatar
      build: more srcdir!=builddir fixes · 30c74c60
      Dan Winship authored
      nm-version.h was getting disted, making srcdir!=builddir work for
      tarball builds, but not for git builds.
      Also, remove "-I${top_builddir}/include" from all Makefile.ams, since
      there's nothing generated in include/ any more.
  3. 09 Jun, 2014 1 commit
  4. 07 Jun, 2014 1 commit
  5. 27 May, 2014 1 commit
  6. 01 Apr, 2014 1 commit
  7. 13 Nov, 2013 1 commit
  8. 22 Oct, 2013 1 commit
    • Thomas Haller's avatar
      core: cleanup freeing of glib collections of pointers · 3eb1d5e9
      Thomas Haller authored
      When freeing one of the collections such as GArray, GPtrArray, GSList,
      etc. it is common that the items inside the connections must be
      freed/unrefed too.
      The previous code often iterated over the collection first with
      e.g. g_ptr_array_foreach and passing e.g. g_free as GFunc argument.
      For one, this has the problem, that g_free has a different signature
      GDestroyNotify then the expected GFunc. Moreover, this can be
      simplified either by setting a clear function
      (g_ptr_array_set_clear_func) or by passing the destroy function to the
      free function (g_slist_free_full).
      Signed-off-by: Thomas Haller's avatarThomas Haller <thaller@redhat.com>
  9. 22 Aug, 2013 1 commit
    • Dan Winship's avatar
      build: switch from $(INCLUDES) to $(AM_CPPFLAGS) to make automake happy · bfce3f7d
      Dan Winship authored
      Unfortunately, $(AM_CPPFLAGS) gets overridden by per-target _CPPFLAGS
      variables, which $(INCLUDES) did not, so this requires some additional
      In most places, I have just gotten rid of the per-target _CPPFLAGS
      variables; in directories with a single target, the per-target
      variable is unnecessary, and in directories with multiple targets, the
      per-target variable is often undesirable, since it forces some files
      to be compiled twice, even though there ends up being no difference
      between the two files.
  10. 25 Mar, 2013 1 commit
  11. 26 Feb, 2013 1 commit
  12. 01 Nov, 2012 1 commit
  13. 31 Oct, 2012 1 commit
    • Colin Walters's avatar
      build: clean up GLib-related pkg-config usage (bgo #687218) · 1977fb6c
      Colin Walters authored
      We had separate checks for glib-2.0, gobject-2.0, gmodule-2.0, and
      gio-unix-2.0.  It doesn't make sense to link a binary against all 4
      because gio-unix-2.0 depends on glib-2.0 and gobject-2.0.  Doing this
      actually breaks things in unusual circumstances.
      Generally, few bits of NM actually just use glib, and not gio.  We
      might as well coalesce those requirements together, even if it means
      in some cases we "overlink".  Additionally, I chose for now to fold
      gmodule-2.0 in as well, even though many fewer programs need it.  The
      cost of overlinking is quite small.
      The benefit of this is less repeated junk in Makefile.am, as well as
      more centralized control over GLib.  A followup patch will allow us to
      set -DGLIB_VERSION_MIN_REQUIRED in just one place, rather than having
      to replicate it 4 times.
      The NM configure is still suboptimal - for example, libpolkit-1
      depends on gio-2.0, so really we should determine the compiler flags
      all in one pass.  But it doesn't matter too much for now.
  14. 17 Oct, 2012 1 commit
    • Jan Lübbe's avatar
      wifi: support ap-mode with wpa_supplicant · f9c72dee
      Jan Lübbe authored
      A new value for NM80211Mode is introduced (NM_802_11_MODE_AP) and the
      new mode is passed to wpa_supplicant analogous to adhoc-mode.
      The places which need to know the interface mode have been extended to
      handle the new mode.
      If the configuration does not contain a fixed frequency, a channel is
      selected the same way as with adhoc-mode before.
  15. 22 Feb, 2012 1 commit
  16. 14 Feb, 2012 1 commit
  17. 13 Feb, 2012 1 commit
  18. 03 Feb, 2012 1 commit
  19. 09 Jan, 2012 1 commit
  20. 06 Dec, 2011 1 commit
  21. 21 Apr, 2011 1 commit