summaryrefslogtreecommitdiff
path: root/libnm-glib/nm-object-cache.h
Commit message (Collapse)AuthorAgeFilesLines
* 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-2/+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).
* libnm-glib: fix a crash when using multiple NMClientsDan Winship2014-08-011-1/+1
| | | | | | | | | | | | | | NMObjectCache was assuming there would never be more than one object with the same path, but since NMClient is an NMObject, it was getting cached too, so if you created two clients and then unreffed one of them, it's possible the wrong one could get left in the cache, causing a crash the next time the other one called nm_object_cache_clear(). Fix this by only adding NMObjects to the cache in the codepaths where we also check to see if the object was already in the cache. (This also means we can remove the "except" argument to nm_object_cache_clear(), since the NMClient won't be cached any more.)
* libnm-util, libnm-glib: standardize copyright/license headersDan Winship2014-07-151-3/+1
| | | | | | | | | | | | | | | | | | - 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.
* libnm-glib: ensure object cache is cleared when NM stops (bgo #674473)Dan Williams2012-04-231-0/+1
| | | | | | | Otherwise if a client holds references to the objects (or in the JavaScript case, uses deferred garbage collection) they'll still be in the cache when NM restarts, and the old object may have the same path as some new object, which isn't good.
* libnm-glib: prevent possible access of freed memoryDan Williams2012-03-121-2/+0
| | | | | valgrind reported that 'path' is already freed by the time we get to _nm_object_cache_remove_by_path().
* libnm-glib: make _nm_object_cache_get() return a referenced objectDan Williams2011-02-161-0/+1
|
* clean up glib includes (bgo #564376)Przemysław Grzegorczyk2009-01-191-1/+1
| | | | Only <glib.h> and <gtk/gtk.h> need to be included.
* 2008-11-14 Dan Williams <dcbw@redhat.com>Dan Williams2008-11-141-14/+14
| | | | | | | | 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
* Rename private nm_* functions to _nm_*Michael Biebl2008-08-261-4/+4
| | | | git-svn-id: http://svn-archive.gnome.org/svn/NetworkManager/trunk@4012 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-03-24 Dan Williams <dcbw@redhat.com>Dan Williams2008-03-241-0/+39
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