blob: 7589258391dc023a2fd1a60037a6144a32cdd06c (
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
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
|
#ifndef __G_VFS_DAEMON_PROTOCOL_H__
#define __G_VFS_DAEMON_PROTOCOL_H__
G_BEGIN_DECLS
#define G_VFS_DBUS_DAEMON_NAME "org.gtk.vfs.Daemon"
#define G_VFS_DBUS_MOUNTPOINT_INTERFACE "org.gtk.vfs.Mountpoint"
#define G_VFS_DBUS_ANNOUNCE_MOUNTPOINT "AnnounceMountpoint"
#define G_VFS_DBUS_MOUNTPOINT_TRACKER_INTERFACE "org.gtk.vfs.MountpointTracker"
#define G_VFS_DBUS_LIST_MOUNT_POINTS "ListMountpoints"
#define G_VFS_DBUS_MOUNTPOINT_NAME "org.gtk.vfs.mount."
#define G_VFS_DBUS_ERROR_SOCKET_FAILED "org.gtk.vfs.Error.SocketFailed"
#define G_VFS_DBUS_DAEMON_PATH "/org/gtk/vfs/Daemon"
#define G_VFS_DBUS_DAEMON_INTERFACE "org.gtk.vfs.Daemon"
#define G_VFS_DBUS_OP_GET_CONNECTION "GetConnection"
#define G_VFS_DBUS_OP_OPEN_FOR_READ "OpenForRead"
#define G_VFS_DBUS_OP_CANCEL "Cancel"
typedef struct {
guint32 command;
guint32 seq_nr;
guint32 arg1;
guint32 arg2;
} GVfsDaemonSocketProtocolRequest;
#define G_VFS_DAEMON_SOCKET_PROTOCOL_REQUEST_SIZE 16
#define G_VFS_DAEMON_SOCKET_PROTOCOL_REQUEST_READ 0
#define G_VFS_DAEMON_SOCKET_PROTOCOL_REQUEST_CLOSE 1
#define G_VFS_DAEMON_SOCKET_PROTOCOL_REQUEST_CANCEL 2
#define G_VFS_DAEMON_SOCKET_PROTOCOL_REQUEST_SEEK_CUR 3
#define G_VFS_DAEMON_SOCKET_PROTOCOL_REQUEST_SEEK_SET 4
#define G_VFS_DAEMON_SOCKET_PROTOCOL_REQUEST_SEEK_END 5
/*
read, readahead reply:
type, seek_generation, size, data
seek reply:
type, pos (64),
error:
type, code, size, data (size bytes, 2 strings: domain, message)
*/
typedef struct {
guint32 type;
guint32 seq_nr;
guint32 arg1;
guint32 arg2;
} GVfsDaemonSocketProtocolReply;
#define G_VFS_DAEMON_SOCKET_PROTOCOL_REPLY_SIZE 16
#define G_VFS_DAEMON_SOCKET_PROTOCOL_REPLY_DATA 0
#define G_VFS_DAEMON_SOCKET_PROTOCOL_REPLY_ERROR 1
#define G_VFS_DAEMON_SOCKET_PROTOCOL_REPLY_SEEK_POS 2
#define G_VFS_DAEMON_SOCKET_PROTOCOL_REPLY_CLOSED 3
G_END_DECLS
#endif /* __G_VFS_DAEMON_PROTOCOL_H__ */
|