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
|
#ifndef __G_VFS_DAEMON_DBUS_H__
#define __G_VFS_DAEMON_DBUS_H__
#include <glib.h>
#include <dbus/dbus.h>
#include <gvfs/gcancellable.h>
G_BEGIN_DECLS
typedef void (*GVfsAsyncDBusCallback) (DBusMessage *reply,
DBusConnection *conntection,
GError *io_error,
GCancellable *cancellable,
gpointer op_callback,
gpointer op_callback_data,
gpointer callback_data);
typedef void (*GetFdAsyncCallback) (int fd,
gpointer callback_data);
int _g_dbus_connection_get_fd_sync (DBusConnection *conn,
int fd_id);
gboolean _g_dbus_message_iter_append_filename (DBusMessageIter *iter,
const char *filename);
void _g_error_from_dbus (DBusError *derror,
GError **error);
char * _g_dbus_bus_name_from_mountpoint (const char *mountpoint);
void _g_dbus_connection_get_fd_async (DBusConnection *connection,
int fd_id,
GetFdAsyncCallback callback,
gpointer callback_data);
void _g_vfs_daemon_call_async (const char *mountpoint,
DBusMessage *message,
GMainContext *context,
gpointer op_callback,
gpointer op_callback_data,
GVfsAsyncDBusCallback callback,
gpointer callback_data,
GCancellable *cancellable);
DBusMessage *_g_vfs_daemon_call_sync (const char *mountpoint,
DBusMessage *message,
DBusConnection **connection_out,
GCancellable *cancellable,
GError **error);
G_END_DECLS
#endif /* __G_VFS_DAEMON_DBUS_H__ */
|