summaryrefslogtreecommitdiff
path: root/common/gmountspec.h
diff options
context:
space:
mode:
authorAlexander Larsson <alexl@src.gnome.org>2007-09-13 11:13:23 +0000
committerAlexander Larsson <alexl@src.gnome.org>2007-09-13 11:13:23 +0000
commit3c9f59e9bb4e28eb1534976c34300e3854bc0925 (patch)
tree844c7589031462cc47d1a40535797e5aecdd4152 /common/gmountspec.h
parent6222ed3e656389695f8031d62bb401628d1c8edd (diff)
downloadgvfs-3c9f59e9bb4e28eb1534976c34300e3854bc0925.tar.gz
Make GMountSpec refcounted
Original git commit by Alexander Larsson <alex@greebo.(none)> at 1170078223 +0100 svn path=/trunk/; revision=275
Diffstat (limited to 'common/gmountspec.h')
-rw-r--r--common/gmountspec.h4
1 files changed, 3 insertions, 1 deletions
diff --git a/common/gmountspec.h b/common/gmountspec.h
index 34979056..a89fb9e4 100644
--- a/common/gmountspec.h
+++ b/common/gmountspec.h
@@ -30,12 +30,14 @@ typedef struct {
} GMountSpecItem;
typedef struct {
+ volatile int ref_count;
GArray *items;
char *mount_prefix;
} GMountSpec;
GMountSpec *g_mount_spec_new (void);
-void g_mount_spec_free (GMountSpec *spec);
+GMountSpec *g_mount_spec_ref (GMountSpec *spec);
+void g_mount_spec_unref (GMountSpec *spec);
GMountSpec *g_mount_spec_from_dbus (DBusMessageIter *iter);
void g_mount_spec_to_dbus (DBusMessageIter *iter,
GMountSpec *spec);