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
      separately.)
      d0b05b34
    • 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"
      3ddce748
    • 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**.
      258e74eb
    • 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.
      f441cf2b
    • 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.
      a7c4d53d
  2. 15 Jul, 2014 2 commits
    • 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.
      30c74c60
    • Dan Winship's avatar
      libnm-util: move NetworkManager.h, etc, from include/ to here · 7eb0288a
      Dan Winship authored
      NetworkManager.h, NetworkManagerVPN.h, and nm-version.h are part of
      the libnm-util API, so move them to libnm-util.
      
      include/ still contains headers that are strictly NM-internal (eg,
      nm-glib-compat.h).
      7eb0288a
  3. 09 Jun, 2014 1 commit
  4. 07 Jun, 2014 1 commit
  5. 27 May, 2014 1 commit
  6. 04 Apr, 2014 2 commits
  7. 01 Apr, 2014 1 commit
  8. 13 Nov, 2013 1 commit
  9. 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>
      3eb1d5e9
  10. 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
      changes.
      
      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.
      bfce3f7d
  11. 29 Apr, 2013 1 commit
  12. 25 Mar, 2013 1 commit
  13. 26 Feb, 2013 1 commit
  14. 01 Nov, 2012 1 commit
  15. 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.
      1977fb6c
  16. 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.
      f9c72dee
  17. 22 Feb, 2012 1 commit
  18. 14 Feb, 2012 1 commit
  19. 13 Feb, 2012 1 commit
  20. 03 Feb, 2012 1 commit
  21. 09 Jan, 2012 1 commit
  22. 06 Dec, 2011 1 commit
  23. 10 Oct, 2011 1 commit
  24. 08 Jun, 2011 1 commit
  25. 21 Apr, 2011 5 commits
  26. 23 Feb, 2011 1 commit
  27. 16 Feb, 2011 1 commit
  28. 15 Feb, 2011 3 commits