]> git.sesse.net Git - pistorm/blob - a314/software-amiga/a314fs_pistorm/messages.h
Adapt a314fs to work on PiStorm + A314 emulation
[pistorm] / a314 / software-amiga / a314fs_pistorm / messages.h
1 #pragma pack(push, 1)
2
3 struct LocateObjectRequest
4 {
5         short has_response;
6         short type;
7         long key;
8         short mode;
9         char name[1];
10 };
11
12 struct LocateObjectResponse
13 {
14         short has_response;
15         short success;
16         short error_code;
17         long key;
18 };
19
20 struct FreeLockRequest
21 {
22         short has_response;
23         short type;
24         long key;
25 };
26
27 struct FreeLockResponse
28 {
29         short has_response;
30         short success;
31         short error_code;
32 };
33
34 struct CopyDirRequest
35 {
36         short has_response;
37         short type;
38         long key;
39 };
40
41 struct CopyDirResponse
42 {
43         short has_response;
44         short success;
45         short error_code;
46         long key;
47 };
48
49 struct ParentRequest
50 {
51         short has_response;
52         short type;
53         long key;
54 };
55
56 struct ParentResponse
57 {
58         short has_response;
59         short success;
60         short error_code;
61         long key;
62 };
63
64 struct ExamineObjectRequest
65 {
66         short has_response;
67         short type;
68         long key;
69 };
70
71 struct ExamineObjectResponse
72 {
73         short has_response;
74         short success;
75         short error_code;
76
77         short disk_key;
78         short entry_type;
79         int size;
80         int protection;
81         int date[3];
82         char data[1];
83 };
84
85 struct ExamineNextRequest
86 {
87         short has_response;
88         short type;
89         long key;
90         short disk_key;
91 };
92
93 struct ExamineNextResponse
94 {
95         short has_response;
96         short success;
97         short error_code;
98
99         short disk_key;
100         short entry_type;
101         int size;
102         int protection;
103         int date[3];
104         char data[1];
105 };
106
107 struct FindXxxRequest
108 {
109         short has_response;
110         short type;
111         long key;
112         char name[1];
113 };
114
115 struct FindXxxResponse
116 {
117         short has_response;
118         short success;
119         short error_code;
120         long arg1;
121 };
122
123 struct ReadRequest
124 {
125         short has_response;
126         short type;
127         long arg1;
128         int address;
129         int length;
130 };
131
132 struct ReadResponse
133 {
134         short has_response;
135         short success;
136         short error_code;
137         int actual;
138 };
139
140 struct WriteRequest
141 {
142         short has_response;
143         short type;
144         long arg1;
145         int address;
146         int length;
147 };
148
149 struct WriteResponse
150 {
151         short has_response;
152         short success;
153         short error_code;
154         int actual;
155 };
156
157 struct SeekRequest
158 {
159         short has_response;
160         short type;
161         long arg1;
162         int new_pos;
163         int mode;
164 };
165
166 struct SeekResponse
167 {
168         short has_response;
169         short success;
170         short error_code;
171         int old_pos;
172 };
173
174 struct EndRequest
175 {
176         short has_response;
177         short type;
178         long arg1;
179 };
180
181 struct EndResponse
182 {
183         short has_response;
184         short success;
185         short error_code;
186 };
187
188 struct DeleteObjectRequest
189 {
190         short has_response;
191         short type;
192         long key;
193         char name[1];
194 };
195
196 struct DeleteObjectResponse
197 {
198         short has_response;
199         short success;
200         short error_code;
201 };
202
203 struct RenameObjectRequest
204 {
205         short has_response;
206         short type;
207         long key;
208         long target_dir;
209         unsigned char name_len;
210         unsigned char new_name_len;
211 };
212
213 struct RenameObjectResponse
214 {
215         short has_response;
216         short success;
217         short error_code;
218 };
219
220 struct CreateDirRequest
221 {
222         short has_response;
223         short type;
224         long key;
225         char name[1];
226 };
227
228 struct CreateDirResponse
229 {
230         short has_response;
231         short success;
232         short error_code;
233         long key;
234 };
235
236 struct SetProtectRequest
237 {
238         short has_response;
239         short type;
240         long key;
241         long mask;
242         char name[1];
243 };
244
245 struct SetProtectResponse
246 {
247         short has_response;
248         short success;
249         short error_code;
250 };
251
252 struct SetCommentRequest
253 {
254         short has_response;
255         short type;
256         long key;
257         unsigned char name_len;
258         unsigned char comment_len;
259 };
260
261 struct SetCommentResponse
262 {
263         short has_response;
264         short success;
265         short error_code;
266 };
267
268 struct SameLockRequest
269 {
270         short has_response;
271         short type;
272         long key1;
273         long key2;
274 };
275
276 struct SameLockResponse
277 {
278         short has_response;
279         short success;
280         short error_code;
281 };
282
283 struct ExamineFhRequest
284 {
285         short has_response;
286         short type;
287         long arg1;
288 };
289
290 struct ExamineFhResponse
291 {
292         short has_response;
293         short success;
294         short error_code;
295
296         short disk_key;
297         short entry_type;
298         int size;
299         int protection;
300         int date[3];
301         char data[1];
302 };
303
304 struct UnsupportedRequest
305 {
306         short has_response;
307         short type;
308         short dp_Type;
309 };
310
311 struct UnsupportedResponse
312 {
313         short has_response;
314         short success;
315         short error_code;
316 };
317
318 #pragma pack(pop)