summaryrefslogtreecommitdiff
path: root/libnm-glib/nm-object-cache.h
diff options
context:
space:
mode:
authorDan Williams <dcbw@redhat.com>2008-03-24 15:17:30 +0000
committerDan Williams <dcbw@redhat.com>2008-03-24 15:17:30 +0000
commit007351657f84fa9cc27ab4271539984d1c395c81 (patch)
treec625ad9edf8b807390765d2ade0b6d12dff4a25e /libnm-glib/nm-object-cache.h
parent1a6782962bce688df8026c1c3924009c304b1ae1 (diff)
downloadNetworkManager-007351657f84fa9cc27ab4271539984d1c395c81.tar.gz
2008-03-24 Dan Williams <dcbw@redhat.com>
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
Diffstat (limited to 'libnm-glib/nm-object-cache.h')
-rw-r--r--libnm-glib/nm-object-cache.h39
1 files changed, 39 insertions, 0 deletions
diff --git a/libnm-glib/nm-object-cache.h b/libnm-glib/nm-object-cache.h
new file mode 100644
index 0000000000..5cb47c844f
--- /dev/null
+++ b/libnm-glib/nm-object-cache.h
@@ -0,0 +1,39 @@
+/* -*- Mode: C; tab-width: 4; indent-tabs-mode: t; c-basic-offset: 4 -*- */
+/* NetworkManager -- Network link manager
+ *
+ * Dan Williams <dcbw@redhat.com>
+ *
+ * This program is free software; you can redistribute it and/or modify
+ * it under the terms of the GNU General Public License as published by
+ * the Free Software Foundation; either version 2 of the License, or
+ * (at your option) any later version.
+ *
+ * This program is distributed in the hope that it will be useful,
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
+ * GNU General Public License for more details.
+ *
+ * You should have received a copy of the GNU General Public License
+ * along with this program; if not, write to the Free Software
+ * Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
+ *
+ * (C) Copyright 2008 Red Hat, Inc.
+ */
+
+#ifndef NM_OBJECT_CACHE_H
+#define NM_OBJECT_CACHE_H
+
+#include <glib/gtypes.h>
+#include <glib-object.h>
+#include "nm-object.h"
+
+G_BEGIN_DECLS
+
+NMObject *nm_object_cache_get (const char *path);
+void nm_object_cache_add (NMObject *object);
+void nm_object_cache_remove_by_object (NMObject *object);
+void nm_object_cache_remove_by_path (const char *path);
+
+G_END_DECLS
+
+#endif /* NM_OBJECT_CACHE_H */