MOS Source Code
Loading...
Searching...
No Matches
filesystem.pb.h
Go to the documentation of this file.
1/* Automatically generated nanopb header */
2/* Generated by nanopb-0.4.9-dev */
3
4#ifndef PB_MOSRPC_FS_FILESYSTEM_PB_H_INCLUDED
5#define PB_MOSRPC_FS_FILESYSTEM_PB_H_INCLUDED
6#include <pb.h>
7#include "mosrpc.pb.h"
8
9#if PB_PROTO_HEADER_VERSION != 40
10#error Regenerate this file with the current version of nanopb generator.
11#endif
12
13/* Struct definitions */
29
30typedef struct _mosrpc_fs_inode_ref {
31 uint64_t data; /* the private data of the inode, may be used by the filesystem */
33
34typedef struct _mosrpc_fs_dentry {
36 char *name;
38
39typedef struct _mosrpc_fs_pb_dirent {
41 char *name;
44
45typedef struct _mosrpc_fs_mount_request {
46 char *fs_name;
47 char *device;
48 char *options;
50
51typedef struct _mosrpc_fs_mount_response {
53 mosrpc_fs_inode_ref root_ref; /* the root inode of the mounted root */
56
57typedef struct _mosrpc_fs_readdir_request {
58 mosrpc_fs_inode_ref i_ref; /* the inode to read */
60
61typedef struct _mosrpc_fs_readdir_response {
64 struct _mosrpc_fs_pb_dirent *entries;
66
67typedef struct _mosrpc_fs_lookup_request {
68 mosrpc_fs_inode_ref i_ref; /* the inode of parent directory */
69 char *name; /* the name of the file to lookup */
71
72typedef struct _mosrpc_fs_lookup_response {
74 mosrpc_fs_inode_ref i_ref; /* the inode of the file */
77
78typedef struct _mosrpc_fs_readlink_request {
79 mosrpc_fs_inode_ref i_ref; /* the inode of the symlink */
81
82typedef struct _mosrpc_fs_readlink_response {
84 char *target; /* the target of the symlink */
86
87typedef struct _mosrpc_fs_getpage_request {
88 mosrpc_fs_inode_ref i_ref; /* the inode of the file */
89 uint64_t pgoff; /* the offset of the page, in number of pages */
91
92typedef struct _mosrpc_fs_getpage_response {
94 /* the data of the page, this is currently a raw byte array, which costs a lot of memory
95 we could use a page manager to reference a page and only pass a page uuid here */
96 pb_bytes_array_t *data;
98
99typedef struct _mosrpc_fs_putpage_request {
100 mosrpc_fs_inode_ref i_ref; /* the inode of the file */
101 uint64_t pgoff; /* the offset of the page, in number of pages */
102 pb_bytes_array_t *data; /* the data of the page */
104
105typedef struct _mosrpc_fs_putpage_response {
108
109typedef struct _mosrpc_fs_create_file_request {
110 mosrpc_fs_inode_ref i_ref; /* the inode of the parent directory */
111 char *name; /* the name of the file to create */
112 int32_t type; /* the type of the file to create */
113 uint32_t perm; /* the permissions of the file to create */
115
116typedef struct _mosrpc_fs_create_file_response {
118 mosrpc_fs_inode_ref i_ref; /* the inode of the created file */
121
122typedef struct _mosrpc_fs_make_dir_request {
123 mosrpc_fs_inode_ref i_ref; /* the inode of the parent directory */
124 char *name; /* the name of the directory to create */
125 uint32_t perm; /* the permissions of the directory to create */
127
128typedef struct _mosrpc_fs_make_dir_response {
130 mosrpc_fs_inode_ref i_ref; /* the inode of the created directory */
133
134typedef struct _mosrpc_fs_sync_inode_request {
135 mosrpc_fs_inode_ref i_ref; /* the inode to sync */
136 mosrpc_fs_inode_info i_info; /* the inode info */
138
139typedef struct _mosrpc_fs_sync_inode_response {
142
143typedef struct _mosrpc_fs_unlink_request {
144 mosrpc_fs_inode_ref i_ref; /* the inode of the parent directory */
145 mosrpc_fs_dentry dentry; /* the dentry to unlink */
147
148typedef struct _mosrpc_fs_unlink_response {
151
152
153#ifdef __cplusplus
154extern "C" {
155#endif
156
157/* Initializer values for message structs */
158#define mosrpc_fs_inode_info_init_default {0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0}
159#define mosrpc_fs_inode_ref_init_default {0}
160#define mosrpc_fs_dentry_init_default {0, NULL}
161#define mosrpc_fs_pb_dirent_init_default {0, NULL, 0}
162#define mosrpc_fs_mount_request_init_default {NULL, NULL, NULL}
163#define mosrpc_fs_mount_response_init_default {mosrpc_result_init_default, mosrpc_fs_inode_ref_init_default, mosrpc_fs_inode_info_init_default}
164#define mosrpc_fs_readdir_request_init_default {mosrpc_fs_inode_ref_init_default}
165#define mosrpc_fs_readdir_response_init_default {mosrpc_result_init_default, 0, NULL}
166#define mosrpc_fs_lookup_request_init_default {mosrpc_fs_inode_ref_init_default, NULL}
167#define mosrpc_fs_lookup_response_init_default {mosrpc_result_init_default, mosrpc_fs_inode_ref_init_default, mosrpc_fs_inode_info_init_default}
168#define mosrpc_fs_readlink_request_init_default {mosrpc_fs_inode_ref_init_default}
169#define mosrpc_fs_readlink_response_init_default {mosrpc_result_init_default, NULL}
170#define mosrpc_fs_getpage_request_init_default {mosrpc_fs_inode_ref_init_default, 0}
171#define mosrpc_fs_getpage_response_init_default {mosrpc_result_init_default, NULL}
172#define mosrpc_fs_putpage_request_init_default {mosrpc_fs_inode_ref_init_default, 0, NULL}
173#define mosrpc_fs_putpage_response_init_default {mosrpc_result_init_default}
174#define mosrpc_fs_create_file_request_init_default {mosrpc_fs_inode_ref_init_default, NULL, 0, 0}
175#define mosrpc_fs_create_file_response_init_default {mosrpc_result_init_default, mosrpc_fs_inode_ref_init_default, mosrpc_fs_inode_info_init_default}
176#define mosrpc_fs_make_dir_request_init_default {mosrpc_fs_inode_ref_init_default, NULL, 0}
177#define mosrpc_fs_make_dir_response_init_default {mosrpc_result_init_default, mosrpc_fs_inode_ref_init_default, mosrpc_fs_inode_info_init_default}
178#define mosrpc_fs_sync_inode_request_init_default {mosrpc_fs_inode_ref_init_default, mosrpc_fs_inode_info_init_default}
179#define mosrpc_fs_sync_inode_response_init_default {mosrpc_result_init_default}
180#define mosrpc_fs_unlink_request_init_default {mosrpc_fs_inode_ref_init_default, mosrpc_fs_dentry_init_default}
181#define mosrpc_fs_unlink_response_init_default {mosrpc_result_init_default}
182#define mosrpc_fs_inode_info_init_zero {0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0}
183#define mosrpc_fs_inode_ref_init_zero {0}
184#define mosrpc_fs_dentry_init_zero {0, NULL}
185#define mosrpc_fs_pb_dirent_init_zero {0, NULL, 0}
186#define mosrpc_fs_mount_request_init_zero {NULL, NULL, NULL}
187#define mosrpc_fs_mount_response_init_zero {mosrpc_result_init_zero, mosrpc_fs_inode_ref_init_zero, mosrpc_fs_inode_info_init_zero}
188#define mosrpc_fs_readdir_request_init_zero {mosrpc_fs_inode_ref_init_zero}
189#define mosrpc_fs_readdir_response_init_zero {mosrpc_result_init_zero, 0, NULL}
190#define mosrpc_fs_lookup_request_init_zero {mosrpc_fs_inode_ref_init_zero, NULL}
191#define mosrpc_fs_lookup_response_init_zero {mosrpc_result_init_zero, mosrpc_fs_inode_ref_init_zero, mosrpc_fs_inode_info_init_zero}
192#define mosrpc_fs_readlink_request_init_zero {mosrpc_fs_inode_ref_init_zero}
193#define mosrpc_fs_readlink_response_init_zero {mosrpc_result_init_zero, NULL}
194#define mosrpc_fs_getpage_request_init_zero {mosrpc_fs_inode_ref_init_zero, 0}
195#define mosrpc_fs_getpage_response_init_zero {mosrpc_result_init_zero, NULL}
196#define mosrpc_fs_putpage_request_init_zero {mosrpc_fs_inode_ref_init_zero, 0, NULL}
197#define mosrpc_fs_putpage_response_init_zero {mosrpc_result_init_zero}
198#define mosrpc_fs_create_file_request_init_zero {mosrpc_fs_inode_ref_init_zero, NULL, 0, 0}
199#define mosrpc_fs_create_file_response_init_zero {mosrpc_result_init_zero, mosrpc_fs_inode_ref_init_zero, mosrpc_fs_inode_info_init_zero}
200#define mosrpc_fs_make_dir_request_init_zero {mosrpc_fs_inode_ref_init_zero, NULL, 0}
201#define mosrpc_fs_make_dir_response_init_zero {mosrpc_result_init_zero, mosrpc_fs_inode_ref_init_zero, mosrpc_fs_inode_info_init_zero}
202#define mosrpc_fs_sync_inode_request_init_zero {mosrpc_fs_inode_ref_init_zero, mosrpc_fs_inode_info_init_zero}
203#define mosrpc_fs_sync_inode_response_init_zero {mosrpc_result_init_zero}
204#define mosrpc_fs_unlink_request_init_zero {mosrpc_fs_inode_ref_init_zero, mosrpc_fs_dentry_init_zero}
205#define mosrpc_fs_unlink_response_init_zero {mosrpc_result_init_zero}
206
207/* Field tags (for use in manual encoding/decoding) */
208#define mosrpc_fs_inode_info_ino_tag 1
209#define mosrpc_fs_inode_info_type_tag 2
210#define mosrpc_fs_inode_info_perm_tag 3
211#define mosrpc_fs_inode_info_size_tag 4
212#define mosrpc_fs_inode_info_uid_tag 5
213#define mosrpc_fs_inode_info_gid_tag 6
214#define mosrpc_fs_inode_info_sticky_tag 7
215#define mosrpc_fs_inode_info_suid_tag 8
216#define mosrpc_fs_inode_info_sgid_tag 9
217#define mosrpc_fs_inode_info_nlinks_tag 10
218#define mosrpc_fs_inode_info_accessed_tag 11
219#define mosrpc_fs_inode_info_created_tag 12
220#define mosrpc_fs_inode_info_modified_tag 13
221#define mosrpc_fs_inode_ref_data_tag 2
222#define mosrpc_fs_dentry_inode_id_tag 1
223#define mosrpc_fs_dentry_name_tag 2
224#define mosrpc_fs_pb_dirent_ino_tag 1
225#define mosrpc_fs_pb_dirent_name_tag 2
226#define mosrpc_fs_pb_dirent_type_tag 3
227#define mosrpc_fs_mount_request_fs_name_tag 1
228#define mosrpc_fs_mount_request_device_tag 2
229#define mosrpc_fs_mount_request_options_tag 3
230#define mosrpc_fs_mount_response_result_tag 1
231#define mosrpc_fs_mount_response_root_ref_tag 2
232#define mosrpc_fs_mount_response_root_info_tag 3
233#define mosrpc_fs_readdir_request_i_ref_tag 1
234#define mosrpc_fs_readdir_response_result_tag 1
235#define mosrpc_fs_readdir_response_entries_tag 2
236#define mosrpc_fs_lookup_request_i_ref_tag 1
237#define mosrpc_fs_lookup_request_name_tag 2
238#define mosrpc_fs_lookup_response_result_tag 1
239#define mosrpc_fs_lookup_response_i_ref_tag 2
240#define mosrpc_fs_lookup_response_i_info_tag 3
241#define mosrpc_fs_readlink_request_i_ref_tag 1
242#define mosrpc_fs_readlink_response_result_tag 1
243#define mosrpc_fs_readlink_response_target_tag 2
244#define mosrpc_fs_getpage_request_i_ref_tag 1
245#define mosrpc_fs_getpage_request_pgoff_tag 2
246#define mosrpc_fs_getpage_response_result_tag 1
247#define mosrpc_fs_getpage_response_data_tag 2
248#define mosrpc_fs_putpage_request_i_ref_tag 1
249#define mosrpc_fs_putpage_request_pgoff_tag 2
250#define mosrpc_fs_putpage_request_data_tag 3
251#define mosrpc_fs_putpage_response_result_tag 1
252#define mosrpc_fs_create_file_request_i_ref_tag 1
253#define mosrpc_fs_create_file_request_name_tag 2
254#define mosrpc_fs_create_file_request_type_tag 3
255#define mosrpc_fs_create_file_request_perm_tag 4
256#define mosrpc_fs_create_file_response_result_tag 1
257#define mosrpc_fs_create_file_response_i_ref_tag 2
258#define mosrpc_fs_create_file_response_i_info_tag 3
259#define mosrpc_fs_make_dir_request_i_ref_tag 1
260#define mosrpc_fs_make_dir_request_name_tag 2
261#define mosrpc_fs_make_dir_request_perm_tag 3
262#define mosrpc_fs_make_dir_response_result_tag 1
263#define mosrpc_fs_make_dir_response_i_ref_tag 2
264#define mosrpc_fs_make_dir_response_i_info_tag 3
265#define mosrpc_fs_sync_inode_request_i_ref_tag 1
266#define mosrpc_fs_sync_inode_request_i_info_tag 2
267#define mosrpc_fs_sync_inode_response_result_tag 1
268#define mosrpc_fs_unlink_request_i_ref_tag 1
269#define mosrpc_fs_unlink_request_dentry_tag 2
270#define mosrpc_fs_unlink_response_result_tag 1
271
272/* Struct field encoding specification for nanopb */
273#define mosrpc_fs_inode_info_FIELDLIST(X, a) \
274X(a, STATIC, SINGULAR, UINT64, ino, 1) \
275X(a, STATIC, SINGULAR, INT32, type, 2) \
276X(a, STATIC, SINGULAR, UINT32, perm, 3) \
277X(a, STATIC, SINGULAR, UINT64, size, 4) \
278X(a, STATIC, SINGULAR, UINT32, uid, 5) \
279X(a, STATIC, SINGULAR, UINT32, gid, 6) \
280X(a, STATIC, SINGULAR, BOOL, sticky, 7) \
281X(a, STATIC, SINGULAR, BOOL, suid, 8) \
282X(a, STATIC, SINGULAR, BOOL, sgid, 9) \
283X(a, STATIC, SINGULAR, UINT64, nlinks, 10) \
284X(a, STATIC, SINGULAR, UINT64, accessed, 11) \
285X(a, STATIC, SINGULAR, UINT64, created, 12) \
286X(a, STATIC, SINGULAR, UINT64, modified, 13)
287#define mosrpc_fs_inode_info_CALLBACK NULL
288#define mosrpc_fs_inode_info_DEFAULT NULL
289
290#define mosrpc_fs_inode_ref_FIELDLIST(X, a) \
291X(a, STATIC, SINGULAR, UINT64, data, 2)
292#define mosrpc_fs_inode_ref_CALLBACK NULL
293#define mosrpc_fs_inode_ref_DEFAULT NULL
294
295#define mosrpc_fs_dentry_FIELDLIST(X, a) \
296X(a, STATIC, SINGULAR, UINT64, inode_id, 1) \
297X(a, POINTER, SINGULAR, STRING, name, 2)
298#define mosrpc_fs_dentry_CALLBACK NULL
299#define mosrpc_fs_dentry_DEFAULT NULL
300
301#define mosrpc_fs_pb_dirent_FIELDLIST(X, a) \
302X(a, STATIC, SINGULAR, UINT64, ino, 1) \
303X(a, POINTER, SINGULAR, STRING, name, 2) \
304X(a, STATIC, SINGULAR, INT32, type, 3)
305#define mosrpc_fs_pb_dirent_CALLBACK NULL
306#define mosrpc_fs_pb_dirent_DEFAULT NULL
307
308#define mosrpc_fs_mount_request_FIELDLIST(X, a) \
309X(a, POINTER, SINGULAR, STRING, fs_name, 1) \
310X(a, POINTER, SINGULAR, STRING, device, 2) \
311X(a, POINTER, SINGULAR, STRING, options, 3)
312#define mosrpc_fs_mount_request_CALLBACK NULL
313#define mosrpc_fs_mount_request_DEFAULT NULL
314
315#define mosrpc_fs_mount_response_FIELDLIST(X, a) \
316X(a, STATIC, SINGULAR, MESSAGE, result, 1) \
317X(a, STATIC, SINGULAR, MESSAGE, root_ref, 2) \
318X(a, STATIC, SINGULAR, MESSAGE, root_info, 3)
319#define mosrpc_fs_mount_response_CALLBACK NULL
320#define mosrpc_fs_mount_response_DEFAULT NULL
321#define mosrpc_fs_mount_response_result_MSGTYPE mosrpc_result
322#define mosrpc_fs_mount_response_root_ref_MSGTYPE mosrpc_fs_inode_ref
323#define mosrpc_fs_mount_response_root_info_MSGTYPE mosrpc_fs_inode_info
324
325#define mosrpc_fs_readdir_request_FIELDLIST(X, a) \
326X(a, STATIC, SINGULAR, MESSAGE, i_ref, 1)
327#define mosrpc_fs_readdir_request_CALLBACK NULL
328#define mosrpc_fs_readdir_request_DEFAULT NULL
329#define mosrpc_fs_readdir_request_i_ref_MSGTYPE mosrpc_fs_inode_ref
330
331#define mosrpc_fs_readdir_response_FIELDLIST(X, a) \
332X(a, STATIC, SINGULAR, MESSAGE, result, 1) \
333X(a, POINTER, REPEATED, MESSAGE, entries, 2)
334#define mosrpc_fs_readdir_response_CALLBACK NULL
335#define mosrpc_fs_readdir_response_DEFAULT NULL
336#define mosrpc_fs_readdir_response_result_MSGTYPE mosrpc_result
337#define mosrpc_fs_readdir_response_entries_MSGTYPE mosrpc_fs_pb_dirent
338
339#define mosrpc_fs_lookup_request_FIELDLIST(X, a) \
340X(a, STATIC, SINGULAR, MESSAGE, i_ref, 1) \
341X(a, POINTER, SINGULAR, STRING, name, 2)
342#define mosrpc_fs_lookup_request_CALLBACK NULL
343#define mosrpc_fs_lookup_request_DEFAULT NULL
344#define mosrpc_fs_lookup_request_i_ref_MSGTYPE mosrpc_fs_inode_ref
345
346#define mosrpc_fs_lookup_response_FIELDLIST(X, a) \
347X(a, STATIC, SINGULAR, MESSAGE, result, 1) \
348X(a, STATIC, SINGULAR, MESSAGE, i_ref, 2) \
349X(a, STATIC, SINGULAR, MESSAGE, i_info, 3)
350#define mosrpc_fs_lookup_response_CALLBACK NULL
351#define mosrpc_fs_lookup_response_DEFAULT NULL
352#define mosrpc_fs_lookup_response_result_MSGTYPE mosrpc_result
353#define mosrpc_fs_lookup_response_i_ref_MSGTYPE mosrpc_fs_inode_ref
354#define mosrpc_fs_lookup_response_i_info_MSGTYPE mosrpc_fs_inode_info
355
356#define mosrpc_fs_readlink_request_FIELDLIST(X, a) \
357X(a, STATIC, SINGULAR, MESSAGE, i_ref, 1)
358#define mosrpc_fs_readlink_request_CALLBACK NULL
359#define mosrpc_fs_readlink_request_DEFAULT NULL
360#define mosrpc_fs_readlink_request_i_ref_MSGTYPE mosrpc_fs_inode_ref
361
362#define mosrpc_fs_readlink_response_FIELDLIST(X, a) \
363X(a, STATIC, SINGULAR, MESSAGE, result, 1) \
364X(a, POINTER, SINGULAR, STRING, target, 2)
365#define mosrpc_fs_readlink_response_CALLBACK NULL
366#define mosrpc_fs_readlink_response_DEFAULT NULL
367#define mosrpc_fs_readlink_response_result_MSGTYPE mosrpc_result
368
369#define mosrpc_fs_getpage_request_FIELDLIST(X, a) \
370X(a, STATIC, SINGULAR, MESSAGE, i_ref, 1) \
371X(a, STATIC, SINGULAR, UINT64, pgoff, 2)
372#define mosrpc_fs_getpage_request_CALLBACK NULL
373#define mosrpc_fs_getpage_request_DEFAULT NULL
374#define mosrpc_fs_getpage_request_i_ref_MSGTYPE mosrpc_fs_inode_ref
375
376#define mosrpc_fs_getpage_response_FIELDLIST(X, a) \
377X(a, STATIC, SINGULAR, MESSAGE, result, 1) \
378X(a, POINTER, SINGULAR, BYTES, data, 2)
379#define mosrpc_fs_getpage_response_CALLBACK NULL
380#define mosrpc_fs_getpage_response_DEFAULT NULL
381#define mosrpc_fs_getpage_response_result_MSGTYPE mosrpc_result
382
383#define mosrpc_fs_putpage_request_FIELDLIST(X, a) \
384X(a, STATIC, SINGULAR, MESSAGE, i_ref, 1) \
385X(a, STATIC, SINGULAR, UINT64, pgoff, 2) \
386X(a, POINTER, SINGULAR, BYTES, data, 3)
387#define mosrpc_fs_putpage_request_CALLBACK NULL
388#define mosrpc_fs_putpage_request_DEFAULT NULL
389#define mosrpc_fs_putpage_request_i_ref_MSGTYPE mosrpc_fs_inode_ref
390
391#define mosrpc_fs_putpage_response_FIELDLIST(X, a) \
392X(a, STATIC, SINGULAR, MESSAGE, result, 1)
393#define mosrpc_fs_putpage_response_CALLBACK NULL
394#define mosrpc_fs_putpage_response_DEFAULT NULL
395#define mosrpc_fs_putpage_response_result_MSGTYPE mosrpc_result
396
397#define mosrpc_fs_create_file_request_FIELDLIST(X, a) \
398X(a, STATIC, SINGULAR, MESSAGE, i_ref, 1) \
399X(a, POINTER, SINGULAR, STRING, name, 2) \
400X(a, STATIC, SINGULAR, INT32, type, 3) \
401X(a, STATIC, SINGULAR, UINT32, perm, 4)
402#define mosrpc_fs_create_file_request_CALLBACK NULL
403#define mosrpc_fs_create_file_request_DEFAULT NULL
404#define mosrpc_fs_create_file_request_i_ref_MSGTYPE mosrpc_fs_inode_ref
405
406#define mosrpc_fs_create_file_response_FIELDLIST(X, a) \
407X(a, STATIC, SINGULAR, MESSAGE, result, 1) \
408X(a, STATIC, SINGULAR, MESSAGE, i_ref, 2) \
409X(a, STATIC, SINGULAR, MESSAGE, i_info, 3)
410#define mosrpc_fs_create_file_response_CALLBACK NULL
411#define mosrpc_fs_create_file_response_DEFAULT NULL
412#define mosrpc_fs_create_file_response_result_MSGTYPE mosrpc_result
413#define mosrpc_fs_create_file_response_i_ref_MSGTYPE mosrpc_fs_inode_ref
414#define mosrpc_fs_create_file_response_i_info_MSGTYPE mosrpc_fs_inode_info
415
416#define mosrpc_fs_make_dir_request_FIELDLIST(X, a) \
417X(a, STATIC, SINGULAR, MESSAGE, i_ref, 1) \
418X(a, POINTER, SINGULAR, STRING, name, 2) \
419X(a, STATIC, SINGULAR, UINT32, perm, 3)
420#define mosrpc_fs_make_dir_request_CALLBACK NULL
421#define mosrpc_fs_make_dir_request_DEFAULT NULL
422#define mosrpc_fs_make_dir_request_i_ref_MSGTYPE mosrpc_fs_inode_ref
423
424#define mosrpc_fs_make_dir_response_FIELDLIST(X, a) \
425X(a, STATIC, SINGULAR, MESSAGE, result, 1) \
426X(a, STATIC, SINGULAR, MESSAGE, i_ref, 2) \
427X(a, STATIC, SINGULAR, MESSAGE, i_info, 3)
428#define mosrpc_fs_make_dir_response_CALLBACK NULL
429#define mosrpc_fs_make_dir_response_DEFAULT NULL
430#define mosrpc_fs_make_dir_response_result_MSGTYPE mosrpc_result
431#define mosrpc_fs_make_dir_response_i_ref_MSGTYPE mosrpc_fs_inode_ref
432#define mosrpc_fs_make_dir_response_i_info_MSGTYPE mosrpc_fs_inode_info
433
434#define mosrpc_fs_sync_inode_request_FIELDLIST(X, a) \
435X(a, STATIC, SINGULAR, MESSAGE, i_ref, 1) \
436X(a, STATIC, SINGULAR, MESSAGE, i_info, 2)
437#define mosrpc_fs_sync_inode_request_CALLBACK NULL
438#define mosrpc_fs_sync_inode_request_DEFAULT NULL
439#define mosrpc_fs_sync_inode_request_i_ref_MSGTYPE mosrpc_fs_inode_ref
440#define mosrpc_fs_sync_inode_request_i_info_MSGTYPE mosrpc_fs_inode_info
441
442#define mosrpc_fs_sync_inode_response_FIELDLIST(X, a) \
443X(a, STATIC, SINGULAR, MESSAGE, result, 1)
444#define mosrpc_fs_sync_inode_response_CALLBACK NULL
445#define mosrpc_fs_sync_inode_response_DEFAULT NULL
446#define mosrpc_fs_sync_inode_response_result_MSGTYPE mosrpc_result
447
448#define mosrpc_fs_unlink_request_FIELDLIST(X, a) \
449X(a, STATIC, SINGULAR, MESSAGE, i_ref, 1) \
450X(a, STATIC, SINGULAR, MESSAGE, dentry, 2)
451#define mosrpc_fs_unlink_request_CALLBACK NULL
452#define mosrpc_fs_unlink_request_DEFAULT NULL
453#define mosrpc_fs_unlink_request_i_ref_MSGTYPE mosrpc_fs_inode_ref
454#define mosrpc_fs_unlink_request_dentry_MSGTYPE mosrpc_fs_dentry
455
456#define mosrpc_fs_unlink_response_FIELDLIST(X, a) \
457X(a, STATIC, SINGULAR, MESSAGE, result, 1)
458#define mosrpc_fs_unlink_response_CALLBACK NULL
459#define mosrpc_fs_unlink_response_DEFAULT NULL
460#define mosrpc_fs_unlink_response_result_MSGTYPE mosrpc_result
461
462extern const pb_msgdesc_t mosrpc_fs_inode_info_msg;
463extern const pb_msgdesc_t mosrpc_fs_inode_ref_msg;
464extern const pb_msgdesc_t mosrpc_fs_dentry_msg;
465extern const pb_msgdesc_t mosrpc_fs_pb_dirent_msg;
466extern const pb_msgdesc_t mosrpc_fs_mount_request_msg;
467extern const pb_msgdesc_t mosrpc_fs_mount_response_msg;
468extern const pb_msgdesc_t mosrpc_fs_readdir_request_msg;
469extern const pb_msgdesc_t mosrpc_fs_readdir_response_msg;
470extern const pb_msgdesc_t mosrpc_fs_lookup_request_msg;
471extern const pb_msgdesc_t mosrpc_fs_lookup_response_msg;
472extern const pb_msgdesc_t mosrpc_fs_readlink_request_msg;
473extern const pb_msgdesc_t mosrpc_fs_readlink_response_msg;
474extern const pb_msgdesc_t mosrpc_fs_getpage_request_msg;
475extern const pb_msgdesc_t mosrpc_fs_getpage_response_msg;
476extern const pb_msgdesc_t mosrpc_fs_putpage_request_msg;
477extern const pb_msgdesc_t mosrpc_fs_putpage_response_msg;
478extern const pb_msgdesc_t mosrpc_fs_create_file_request_msg;
479extern const pb_msgdesc_t mosrpc_fs_create_file_response_msg;
480extern const pb_msgdesc_t mosrpc_fs_make_dir_request_msg;
481extern const pb_msgdesc_t mosrpc_fs_make_dir_response_msg;
482extern const pb_msgdesc_t mosrpc_fs_sync_inode_request_msg;
483extern const pb_msgdesc_t mosrpc_fs_sync_inode_response_msg;
484extern const pb_msgdesc_t mosrpc_fs_unlink_request_msg;
485extern const pb_msgdesc_t mosrpc_fs_unlink_response_msg;
486
487/* Defines for backwards compatibility with code written before nanopb-0.4.0 */
488#define mosrpc_fs_inode_info_fields &mosrpc_fs_inode_info_msg
489#define mosrpc_fs_inode_ref_fields &mosrpc_fs_inode_ref_msg
490#define mosrpc_fs_dentry_fields &mosrpc_fs_dentry_msg
491#define mosrpc_fs_pb_dirent_fields &mosrpc_fs_pb_dirent_msg
492#define mosrpc_fs_mount_request_fields &mosrpc_fs_mount_request_msg
493#define mosrpc_fs_mount_response_fields &mosrpc_fs_mount_response_msg
494#define mosrpc_fs_readdir_request_fields &mosrpc_fs_readdir_request_msg
495#define mosrpc_fs_readdir_response_fields &mosrpc_fs_readdir_response_msg
496#define mosrpc_fs_lookup_request_fields &mosrpc_fs_lookup_request_msg
497#define mosrpc_fs_lookup_response_fields &mosrpc_fs_lookup_response_msg
498#define mosrpc_fs_readlink_request_fields &mosrpc_fs_readlink_request_msg
499#define mosrpc_fs_readlink_response_fields &mosrpc_fs_readlink_response_msg
500#define mosrpc_fs_getpage_request_fields &mosrpc_fs_getpage_request_msg
501#define mosrpc_fs_getpage_response_fields &mosrpc_fs_getpage_response_msg
502#define mosrpc_fs_putpage_request_fields &mosrpc_fs_putpage_request_msg
503#define mosrpc_fs_putpage_response_fields &mosrpc_fs_putpage_response_msg
504#define mosrpc_fs_create_file_request_fields &mosrpc_fs_create_file_request_msg
505#define mosrpc_fs_create_file_response_fields &mosrpc_fs_create_file_response_msg
506#define mosrpc_fs_make_dir_request_fields &mosrpc_fs_make_dir_request_msg
507#define mosrpc_fs_make_dir_response_fields &mosrpc_fs_make_dir_response_msg
508#define mosrpc_fs_sync_inode_request_fields &mosrpc_fs_sync_inode_request_msg
509#define mosrpc_fs_sync_inode_response_fields &mosrpc_fs_sync_inode_response_msg
510#define mosrpc_fs_unlink_request_fields &mosrpc_fs_unlink_request_msg
511#define mosrpc_fs_unlink_response_fields &mosrpc_fs_unlink_response_msg
512
513/* Maximum encoded size of messages (where known) */
514/* mosrpc_fs_dentry_size depends on runtime parameters */
515/* mosrpc_fs_pb_dirent_size depends on runtime parameters */
516/* mosrpc_fs_mount_request_size depends on runtime parameters */
517/* mosrpc_fs_readdir_response_size depends on runtime parameters */
518/* mosrpc_fs_lookup_request_size depends on runtime parameters */
519/* mosrpc_fs_readlink_response_size depends on runtime parameters */
520/* mosrpc_fs_getpage_response_size depends on runtime parameters */
521/* mosrpc_fs_putpage_request_size depends on runtime parameters */
522/* mosrpc_fs_create_file_request_size depends on runtime parameters */
523/* mosrpc_fs_make_dir_request_size depends on runtime parameters */
524/* mosrpc_fs_unlink_request_size depends on runtime parameters */
525#define mosrpc_fs_getpage_request_size 24
526#define mosrpc_fs_inode_info_size 101
527#define mosrpc_fs_inode_ref_size 11
528#define mosrpc_fs_readdir_request_size 13
529#define mosrpc_fs_readlink_request_size 13
530#define mosrpc_fs_sync_inode_request_size 116
531#if defined(mosrpc_result_size)
532#define MOSRPC_FS_FILESYSTEM_PB_H_MAX_SIZE mosrpc_fs_mount_response_size
533#define mosrpc_fs_create_file_response_size (122 + mosrpc_result_size)
534#define mosrpc_fs_lookup_response_size (122 + mosrpc_result_size)
535#define mosrpc_fs_make_dir_response_size (122 + mosrpc_result_size)
536#define mosrpc_fs_mount_response_size (122 + mosrpc_result_size)
537#define mosrpc_fs_putpage_response_size (6 + mosrpc_result_size)
538#define mosrpc_fs_sync_inode_response_size (6 + mosrpc_result_size)
539#define mosrpc_fs_unlink_response_size (6 + mosrpc_result_size)
540#endif
541
542#ifdef __cplusplus
543} /* extern "C" */
544#endif
545
546#endif
const pb_msgdesc_t mosrpc_fs_sync_inode_request_msg
const pb_msgdesc_t mosrpc_fs_readlink_response_msg
const pb_msgdesc_t mosrpc_fs_inode_ref_msg
const pb_msgdesc_t mosrpc_fs_lookup_request_msg
const pb_msgdesc_t mosrpc_fs_unlink_request_msg
const pb_msgdesc_t mosrpc_fs_create_file_response_msg
const pb_msgdesc_t mosrpc_fs_dentry_msg
const pb_msgdesc_t mosrpc_fs_getpage_response_msg
const pb_msgdesc_t mosrpc_fs_readdir_response_msg
const pb_msgdesc_t mosrpc_fs_putpage_response_msg
const pb_msgdesc_t mosrpc_fs_lookup_response_msg
const pb_msgdesc_t mosrpc_fs_make_dir_request_msg
const pb_msgdesc_t mosrpc_fs_readdir_request_msg
const pb_msgdesc_t mosrpc_fs_make_dir_response_msg
const pb_msgdesc_t mosrpc_fs_create_file_request_msg
const pb_msgdesc_t mosrpc_fs_mount_request_msg
const pb_msgdesc_t mosrpc_fs_getpage_request_msg
const pb_msgdesc_t mosrpc_fs_readlink_request_msg
const pb_msgdesc_t mosrpc_fs_pb_dirent_msg
const pb_msgdesc_t mosrpc_fs_putpage_request_msg
const pb_msgdesc_t mosrpc_fs_sync_inode_response_msg
const pb_msgdesc_t mosrpc_fs_mount_response_msg
const pb_msgdesc_t mosrpc_fs_unlink_response_msg
const pb_msgdesc_t mosrpc_fs_inode_info_msg
uint_least16_t pb_size_t
Definition pb.h:310
unsigned int uint32_t
Definition pb_syshdr.h:24
unsigned long long uint64_t
Definition pb_syshdr.h:26
signed int int32_t
Definition pb_syshdr.h:23
mosrpc_fs_inode_info i_info
mosrpc_fs_inode_ref i_ref
pb_bytes_array_t * data
mosrpc_fs_inode_ref i_ref
mosrpc_fs_inode_info i_info
mosrpc_fs_inode_ref i_ref
mosrpc_fs_inode_ref i_ref
mosrpc_fs_inode_info i_info
mosrpc_fs_inode_ref i_ref
mosrpc_fs_inode_info root_info
mosrpc_fs_inode_ref root_ref
mosrpc_fs_inode_ref i_ref
pb_bytes_array_t * data
mosrpc_fs_inode_ref i_ref
struct _mosrpc_fs_pb_dirent * entries
mosrpc_fs_inode_info i_info
mosrpc_fs_inode_ref i_ref