summaryrefslogtreecommitdiffstats
path: root/src/AFC.h
diff options
context:
space:
mode:
authorGravatar Martin Szulecki2009-07-25 00:19:47 +0200
committerGravatar Martin Szulecki2009-07-25 00:19:47 +0200
commitc3d9e80985ef52eebb25bb07512cabc52786c130 (patch)
tree12e7b989b4beba1ca32c5629e215edf98a8ae1d0 /src/AFC.h
parent19a28b0ed18c8ca2f855e7d129ddcdb8c939a707 (diff)
downloadlibimobiledevice-c3d9e80985ef52eebb25bb07512cabc52786c130.tar.gz
libimobiledevice-c3d9e80985ef52eebb25bb07512cabc52786c130.tar.bz2
Define remaining unknown AFC operations; SUCCESS is actually a DATA operation
Diffstat (limited to 'src/AFC.h')
-rw-r--r--src/AFC.h57
1 files changed, 29 insertions, 28 deletions
diff --git a/src/AFC.h b/src/AFC.h
index 5d337e5..a0ce0ef 100644
--- a/src/AFC.h
+++ b/src/AFC.h
@@ -52,35 +52,36 @@ struct afc_client_int {
52 GMutex *mutex; 52 GMutex *mutex;
53}; 53};
54 54
55/* AFC Operations */
55enum { 56enum {
56 AFC_ERROR = 0x00000001, 57 AFC_OP_STATUS = 0x00000001, // Status
57 AFC_SUCCESS_RESPONSE = 0x00000002, 58 AFC_OP_DATA = 0x00000002, // Data
58 AFC_LIST_DIR = 0x00000003, // ReadDir 59 AFC_OP_READ_DIR = 0x00000003, // ReadDir
59 // 0x00000004 // ReadFile 60 AFC_OP_READ_FILE = 0x00000004, // ReadFile
60 // 0x00000005 // WriteFile 61 AFC_OP_WRITE_FILE = 0x00000005, // WriteFile
61 // 0x00000006 // WritePart 62 AFC_OP_WRITE_PART = 0x00000006, // WritePart
62 AFC_TRUNCATE = 0x00000007, // Truncate 63 AFC_OP_TRUNCATE = 0x00000007, // TruncateFile
63 AFC_DELETE = 0x00000008, // RemovePath 64 AFC_OP_REMOVE_PATH = 0x00000008, // RemovePath
64 AFC_MAKE_DIR = 0x00000009, // MakeDir 65 AFC_OP_MAKE_DIR = 0x00000009, // MakeDir
65 AFC_GET_INFO = 0x0000000a, // GetFileInfo 66 AFC_OP_GET_FILE_INFO = 0x0000000a, // GetFileInfo
66 AFC_GET_DEVINFO = 0x0000000b, // GetDeviceInfo 67 AFC_OP_GET_DEVINFO = 0x0000000b, // GetDeviceInfo
67 // 0x0000000c // same as 5, but writes to temp file, then renames it. 68 AFC_OP_WRITE_FILE_ATOM = 0x0000000c, // WriteFileAtomic (tmp file+rename)
68 AFC_FILE_OPEN = 0x0000000d, // FileRefOpen 69 AFC_OP_FILE_OPEN = 0x0000000d, // FileRefOpen
69 AFC_FILE_HANDLE = 0x0000000e, // _unknownPacket 70 AFC_OP_FILE_OPEN_RES = 0x0000000e, // FileRefOpenResult
70 AFC_READ = 0x0000000f, // FileRefRead 71 AFC_OP_READ = 0x0000000f, // FileRefRead
71 AFC_WRITE = 0x00000010, // FileRefWrite 72 AFC_OP_WRITE = 0x00000010, // FileRefWrite
72 AFC_FILE_SEEK = 0x00000011, // FileRefSeek 73 AFC_OP_FILE_SEEK = 0x00000011, // FileRefSeek
73 AFC_FILE_TELL = 0x00000012, // FileRefTell 74 AFC_OP_FILE_TELL = 0x00000012, // FileRefTell
74 // 0x00000013 // _unknownPacket 75 AFC_OP_FILE_TELL_RES = 0x00000013, // FileRefTellResult
75 AFC_FILE_CLOSE = 0x00000014, // FileRefClose 76 AFC_OP_FILE_CLOSE = 0x00000014, // FileRefClose
76 AFC_FILE_TRUNCATE = 0x00000015, // FileRefSetFileSize (ftruncate) 77 AFC_OP_FILE_SET_SIZE = 0x00000015, // FileRefSetFileSize (ftruncate)
77 // 0x00000016 // SetFatalError 78 AFC_OP_GET_CON_INFO = 0x00000016, // GetConnectionInfo
78 // 0x00000017 // SetConnectionOptions 79 AFC_OP_SET_CON_OPTIONS = 0x00000017, // SetConnectionOptions
79 AFC_RENAME = 0x00000018, // RenamePath 80 AFC_OP_RENAME_PATH = 0x00000018, // RenamePath
80 // 0x00000019 // SetFSBlockSize (0x800000) 81 AFC_OP_SET_FS_BS = 0x00000019, // SetFSBlockSize (0x800000)
81 // 0x0000001A // SetBlockSize (0x800000) 82 AFC_OP_SET_SOCKET_BS = 0x0000001A, // SetSocketBlockSize (0x800000)
82 AFC_FILE_LOCK = 0x0000001B, // FileRefLock 83 AFC_OP_FILE_LOCK = 0x0000001B, // FileRefLock
83 AFC_MAKE_LINK = 0x0000001C // MakeLink 84 AFC_OP_MAKE_LINK = 0x0000001C // MakeLink
84}; 85};
85 86
86static int afcerror_to_errno(int afcerror); 87static int afcerror_to_errno(int afcerror);