diff options
author | Alexander Larsson <alexl@redhat.com> | 2007-10-31 14:44:09 +0000 |
---|---|---|
committer | Alexander Larsson <alexl@src.gnome.org> | 2007-10-31 14:44:09 +0000 |
commit | 03827fe3e7202f88dc3052dd01d346bc130617ff (patch) | |
tree | 8a2650bcc6dd02b3bf9e159c5278cb61bc0ad049 /common/gmounttracker.h | |
parent | 940f44cece2a227707be01a4d9ae9e0670cba83e (diff) | |
download | gvfs-03827fe3e7202f88dc3052dd01d346bc130617ff.tar.gz |
Add all mount info to GMountInfo Make it refcounted
2007-10-31 Alexander Larsson <alexl@redhat.com>
* common/gmounttracker.[ch]:
Add all mount info to GMountInfo
Make it refcounted
* client/gdaemonvfs.[ch]:
* client/gdaemonfile.c:
* client/gdaemonvolumemonitor.c:
Remove GMountRef, replacing its use with
GMountInfo
svn path=/trunk/; revision=1001
Diffstat (limited to 'common/gmounttracker.h')
-rw-r--r-- | common/gmounttracker.h | 16 |
1 files changed, 12 insertions, 4 deletions
diff --git a/common/gmounttracker.h b/common/gmounttracker.h index e795212a..2a526b64 100644 --- a/common/gmounttracker.h +++ b/common/gmounttracker.h @@ -17,11 +17,14 @@ typedef struct _GMountTracker GMountTracker; typedef struct _GMountTrackerClass GMountTrackerClass; typedef struct { + volatile int ref_count; char *display_name; char *icon; char *dbus_id; char *object_path; gboolean user_visible; + char *prefered_filename_encoding; /* NULL -> UTF8 */ + char *fuse_mountpoint; GMountSpec *mount_spec; } GMountInfo; @@ -37,10 +40,15 @@ struct _GMountTrackerClass GType g_mount_tracker_get_type (void) G_GNUC_CONST; -gboolean g_mount_info_equal (GMountInfo *info1, - GMountInfo *info2); -GMountInfo *g_mount_info_dup (GMountInfo *info); -void g_mount_info_free (GMountInfo *info); +gboolean g_mount_info_equal (GMountInfo *info1, + GMountInfo *info2); +GMountInfo *g_mount_info_ref (GMountInfo *info); +GMountInfo *g_mount_info_dup (GMountInfo *info); +void g_mount_info_unref (GMountInfo *info); +const char *g_mount_info_resolve_path (GMountInfo *info, + const char *path); + +GMountInfo * g_mount_info_from_dbus (DBusMessageIter *iter); GMountTracker *g_mount_tracker_new (DBusConnection *connection); GList * g_mount_tracker_list_mounts (GMountTracker *tracker); |