1 | /* Automatically generated nanopb header */ |
2 | /* Generated by nanopb-0.4.9-dev */ |
3 | |
4 | #ifndef PB_MOSRPC_USERFS_USERFS_MANAGER_PB_H_INCLUDED |
5 | #define PB_MOSRPC_USERFS_USERFS_MANAGER_PB_H_INCLUDED |
6 | #include <pb.h> |
7 | #include "mosrpc.pb.h" |
8 | #include "mosrpc-options.pb.h" |
9 | |
10 | #if PB_PROTO_HEADER_VERSION != 40 |
11 | #error Regenerate this file with the current version of nanopb generator. |
12 | #endif |
13 | |
14 | /* Struct definitions */ |
15 | typedef struct _mosrpc_userfs_pb_fs { |
16 | char *name; /* the name of the filesystem */ |
17 | } mosrpc_userfs_pb_fs; |
18 | |
19 | typedef struct _mosrpc_userfs_register_request { |
20 | mosrpc_userfs_pb_fs fs; |
21 | char *rpc_server_name; |
22 | } mosrpc_userfs_register_request; |
23 | |
24 | typedef struct _mosrpc_userfs_register_response { |
25 | mosrpc_result result; |
26 | } mosrpc_userfs_register_response; |
27 | |
28 | |
29 | #ifdef __cplusplus |
30 | extern "C" { |
31 | #endif |
32 | |
33 | /* Initializer values for message structs */ |
34 | #define mosrpc_userfs_pb_fs_init_default {NULL} |
35 | #define mosrpc_userfs_register_request_init_default {mosrpc_userfs_pb_fs_init_default, NULL} |
36 | #define mosrpc_userfs_register_response_init_default {mosrpc_result_init_default} |
37 | #define mosrpc_userfs_pb_fs_init_zero {NULL} |
38 | #define mosrpc_userfs_register_request_init_zero {mosrpc_userfs_pb_fs_init_zero, NULL} |
39 | #define mosrpc_userfs_register_response_init_zero {mosrpc_result_init_zero} |
40 | |
41 | /* Field tags (for use in manual encoding/decoding) */ |
42 | #define mosrpc_userfs_pb_fs_name_tag 1 |
43 | #define mosrpc_userfs_register_request_fs_tag 1 |
44 | #define mosrpc_userfs_register_request_rpc_server_name_tag 2 |
45 | #define mosrpc_userfs_register_response_result_tag 1 |
46 | |
47 | /* Struct field encoding specification for nanopb */ |
48 | #define mosrpc_userfs_pb_fs_FIELDLIST(X, a) \ |
49 | X(a, POINTER, SINGULAR, STRING, name, 1) |
50 | #define mosrpc_userfs_pb_fs_CALLBACK NULL |
51 | #define mosrpc_userfs_pb_fs_DEFAULT NULL |
52 | |
53 | #define mosrpc_userfs_register_request_FIELDLIST(X, a) \ |
54 | X(a, STATIC, SINGULAR, MESSAGE, fs, 1) \ |
55 | X(a, POINTER, SINGULAR, STRING, rpc_server_name, 2) |
56 | #define mosrpc_userfs_register_request_CALLBACK NULL |
57 | #define mosrpc_userfs_register_request_DEFAULT NULL |
58 | #define mosrpc_userfs_register_request_fs_MSGTYPE mosrpc_userfs_pb_fs |
59 | |
60 | #define mosrpc_userfs_register_response_FIELDLIST(X, a) \ |
61 | X(a, STATIC, SINGULAR, MESSAGE, result, 1) |
62 | #define mosrpc_userfs_register_response_CALLBACK NULL |
63 | #define mosrpc_userfs_register_response_DEFAULT NULL |
64 | #define mosrpc_userfs_register_response_result_MSGTYPE mosrpc_result |
65 | |
66 | extern const pb_msgdesc_t mosrpc_userfs_pb_fs_msg; |
67 | extern const pb_msgdesc_t mosrpc_userfs_register_request_msg; |
68 | extern const pb_msgdesc_t mosrpc_userfs_register_response_msg; |
69 | |
70 | /* Defines for backwards compatibility with code written before nanopb-0.4.0 */ |
71 | #define mosrpc_userfs_pb_fs_fields &mosrpc_userfs_pb_fs_msg |
72 | #define mosrpc_userfs_register_request_fields &mosrpc_userfs_register_request_msg |
73 | #define mosrpc_userfs_register_response_fields &mosrpc_userfs_register_response_msg |
74 | |
75 | /* Maximum encoded size of messages (where known) */ |
76 | /* mosrpc_userfs_pb_fs_size depends on runtime parameters */ |
77 | /* mosrpc_userfs_register_request_size depends on runtime parameters */ |
78 | #if defined(mosrpc_result_size) |
79 | #define MOSRPC_USERFS_USERFS_MANAGER_PB_H_MAX_SIZE mosrpc_userfs_register_response_size |
80 | #define mosrpc_userfs_register_response_size (6 + mosrpc_result_size) |
81 | #endif |
82 | |
83 | #ifdef __cplusplus |
84 | } /* extern "C" */ |
85 | #endif |
86 | |
87 | #endif |
88 | |