diff options
author | Alexander Larsson <alexl@src.gnome.org> | 2007-09-13 11:13:23 +0000 |
---|---|---|
committer | Alexander Larsson <alexl@src.gnome.org> | 2007-09-13 11:13:23 +0000 |
commit | 3c9f59e9bb4e28eb1534976c34300e3854bc0925 (patch) | |
tree | 844c7589031462cc47d1a40535797e5aecdd4152 /common/gmountspec.h | |
parent | 6222ed3e656389695f8031d62bb401628d1c8edd (diff) | |
download | gvfs-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.h | 4 |
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); |