blob: 652314c7aaa46c7787f2143ecaec51bbc109c0f0 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
|
#ifndef __G_DAEMON_VFS_H__
#define __G_DAEMON_VFS_H__
#include <gio/gvfs.h>
#include <dbus/dbus.h>
#include "gmountspec.h"
#include "gvfsuriutils.h"
G_BEGIN_DECLS
typedef struct _GDaemonVfs GDaemonVfs;
typedef struct _GDaemonVfsClass GDaemonVfsClass;
typedef struct {
volatile int ref_count;
char *dbus_id;
char *object_path;
GMountSpec *spec;
char *prefered_filename_encoding; /* NULL -> UTF8 */
} GMountRef;
typedef void (*GMountRefLookupCallback) (GMountRef *mount_ref,
gpointer data,
GError *error);
GType g_daemon_vfs_get_type (GTypeModule *module);
GDaemonVfs *g_daemon_vfs_new (void);
char * _g_daemon_vfs_get_uri_for_mountspec (GMountSpec *spec,
char *path,
gboolean allow_utf8);
void _g_daemon_vfs_get_mount_ref_async (GMountSpec *spec,
const char *path,
GMountRefLookupCallback callback,
gpointer user_data);
GMountRef * _g_daemon_vfs_get_mount_ref_sync (GMountSpec *spec,
const char *path,
GError **error);
const char * _g_mount_ref_resolve_path (GMountRef *ref,
const char *path);
GMountRef * _g_mount_ref_ref (GMountRef *ref);
void _g_mount_ref_unref (GMountRef *ref);
DBusConnection *_g_daemon_vfs_get_async_bus (void);
G_END_DECLS
#endif /* __G_DAEMON_VFS_H__ */
|