summaryrefslogtreecommitdiff
path: root/libnm-glib/libnm_glib.c
Commit message (Collapse)AuthorAgeFilesLines
* all: cleanup includes and let "nm-default.h" include "config.h"Thomas Haller2016-02-191-2/+2
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | - All internal source files (except "examples", which are not internal) should include "config.h" first. As also all internal source files should include "nm-default.h", let "config.h" be included by "nm-default.h" and include "nm-default.h" as first in every source file. We already wanted to include "nm-default.h" before other headers because it might contains some fixes (like "nm-glib.h" compatibility) that is required first. - After including "nm-default.h", we optinally allow for including the corresponding header file for the source file at hand. The idea is to ensure that each header file is self contained. - Don't include "config.h" or "nm-default.h" in any header file (except "nm-sd-adapt.h"). Public headers anyway must not include these headers, and internal headers are never included after "nm-default.h", as of the first previous point. - Include all internal headers with quotes instead of angle brackets. In practice it doesn't matter, because in our public headers we must include other headers with angle brackets. As we use our public headers also to compile our interal source files, effectively the result must be the same. Still do it for consistency. - Except for <config.h> itself. Include it with angle brackets as suggested by https://www.gnu.org/software/autoconf/manual/autoconf.html#Configuration-Headers
* all: make use of new header file "nm-default.h"Thomas Haller2015-08-051-1/+1
|
* all: rename nm-glib-compat.h to nm-glib.h, use everywhereDan Winship2015-07-241-3/+1
| | | | | | | | | | | | | | | | Rather than randomly including one or more of <glib.h>, <glib-object.h>, and <gio/gio.h> everywhere (and forgetting to include "nm-glib-compat.h" most of the time), rename nm-glib-compat.h to nm-glib.h, include <gio/gio.h> from there, and then change all .c files in NM to include "nm-glib.h" rather than including the glib headers directly. (Public headers files still have to include the real glib headers, since nm-glib.h isn't installed...) Also, remove glib includes from header files that are already including a base object header file (which must itself already include the glib headers).
* all: remove #if GLIB_CHECK_VERSION conditionals around g_type_init()Thomas Haller2015-07-121-3/+3
| | | | g_type_init() is now provided by nm-glib-compat.h as nm_g_type_init().
* all: consistently include config.hDan Winship2014-11-131-0/+2
| | | | | | | | | | | 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.)
* all: g_type_init() has been deprecated in GLib 2.35.0Jiří Klimeš2014-05-271-0/+3
| | | | | g_type_init() deprecation: https://bugzilla.gnome.org/show_bug.cgi?id=686161
* core: cleanup freeing of glib collections of pointersThomas Haller2013-10-221-2/+1
| | | | | | | | | | | | | | | | 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 <thaller@redhat.com>
* libnm-glib: rename some internal symbols in legacy compat libraryDan Williams2011-05-051-48/+45
| | | | | To ensure they don't show up in the exported symbol check, even though they aren't currently exported.
* api: add additional NM daemon statesDan Williams2011-02-141-5/+5
| | | | | | | DISCONNECTING: the only active network connection is now being disconnected LOCAL, SITE, GLOBAL: one-stop items for level of connectivity, which we'll use to show when we think we're actually connected to the internet or behind a captive portal or something
* api: remove deprecated methods and signalsDan Williams2011-02-141-2/+1
| | | | | | | | sleep, wake, StateChange, all deprecated in 0.8, are now removed. sleep & wake are replaced with the Sleep() method, while StateChange is replaced with the StateChanged signal which has the same arguments.
* 2008-11-14 Dan Williams <dcbw@redhat.com>Dan Williams2008-11-141-15/+16
| | | | | | | | Relicense libnm-glib to LGPLv2+ with agreement from contributors git-svn-id: http://svn-archive.gnome.org/svn/NetworkManager/trunk@4285 4912f4e0-d625-0410-9fb7-b9a5a253dbdc
* 2008-06-26 Dan Williams <dcbw@redhat.com>Dan Williams2008-06-261-3/+3
| | | | | | | | * Update FSF address in license headers (Michael Biebl <biebl@debian.org>) git-svn-id: http://svn-archive.gnome.org/svn/NetworkManager/trunk@3775 4912f4e0-d625-0410-9fb7-b9a5a253dbdc
* 2008-01-23 Dan Williams <dcbw@redhat.com>Dan Williams2008-01-241-7/+8
| | | | | | | | | | * libnm-glib/libnm_glib.c - (libnm_glib_init): make thread joinable - (libnm_glib_ctx_free): join thread on exit to clean up memory git-svn-id: http://svn-archive.gnome.org/svn/NetworkManager/trunk@3265 4912f4e0-d625-0410-9fb7-b9a5a253dbdc
* Fix rh #232691; never got onto trunkDan Williams2007-09-211-0/+2
| | | | git-svn-id: http://svn-archive.gnome.org/svn/NetworkManager/trunk@2845 4912f4e0-d625-0410-9fb7-b9a5a253dbdc
* 2007-08-13 Tambet Ingo <tambet@gmail.com>Tambet Ingo2007-08-131-0/+596
* libnm-glib/libnm-glib.pc.in: Rename to libnm_glib.pc.in. * libnm-glib/Makefile.am: Add legacy libnm_glib.[ch] to the * build. Rename the library from libnm-glib to libnm_glib to maintain the library API compatibility with 0.6 branch. * Makefile.am: Remove gnome/ SUBDIR. * gnome/libnm_glib/libnm_glib.[ch]: Move to libnm-glib/. * src/Makefile.am: Remove the WPA_SUPPLICANT_BIN define. * dispatcher-daemon/Makefile.am: Link the binary with * libnm_glib. * configure.in: Remove GNOME checks, NetworkManager does not * need any of these anymore. Remove checks for wpa_supplicant binary, it's used over dbus. Remove gnome/ directory files form AC_OUTPUT, that directory is getting moved. * test/Makefile.am: Remove define WPA_SUPPLICANT_BIN. Link the binaries with libnm_glib.la. git-svn-id: http://svn-archive.gnome.org/svn/NetworkManager/trunk@2669 4912f4e0-d625-0410-9fb7-b9a5a253dbdc