CiFEr
data.pb-c.h
1 /* Generated by the protocol buffer compiler. DO NOT EDIT! */
2 /* Generated from: data.proto */
3 
4 #ifndef PROTOBUF_C_data_2eproto__INCLUDED
5 #define PROTOBUF_C_data_2eproto__INCLUDED
6 
7 #include <protobuf-c/protobuf-c.h>
8 
9 PROTOBUF_C__BEGIN_DECLS
10 
11 #if PROTOBUF_C_VERSION_NUMBER < 1000000
12 # error This file was generated by a newer version of protoc-c which is incompatible with your libprotobuf-c headers. Please update your headers.
13 #elif 1003003 < PROTOBUF_C_MIN_COMPILER_VERSION
14 # error This file was generated by an older version of protoc-c which is incompatible with your libprotobuf-c headers. Please regenerate this file with a newer version of protoc-c.
15 #endif
16 
17 
18 typedef struct _MpzSer MpzSer;
19 typedef struct _MatSer MatSer;
20 typedef struct _OctetSer OctetSer;
21 typedef struct _MspSer MspSer;
22 typedef struct _VecOctetSer VecOctetSer;
23 
24 
25 /* --- enums --- */
26 
27 
28 /* --- messages --- */
29 
30 struct _MpzSer
31 {
32  ProtobufCMessage base;
33  size_t n_val;
34  int64_t *val;
35  protobuf_c_boolean neg;
36 };
37 #define MPZ_SER__INIT \
38  { PROTOBUF_C_MESSAGE_INIT (&mpz_ser__descriptor) \
39  , 0,NULL, 0 }
40 
41 
42 struct _MatSer
43 {
44  ProtobufCMessage base;
45  size_t n_val;
46  MpzSer **val;
47  int64_t rows;
48  int64_t cols;
49 };
50 #define MAT_SER__INIT \
51  { PROTOBUF_C_MESSAGE_INIT (&mat_ser__descriptor) \
52  , 0,NULL, 0, 0 }
53 
54 
55 struct _OctetSer
56 {
57  ProtobufCMessage base;
58  size_t n_val;
59  int32_t *val;
60  int64_t len;
61  int64_t max;
62 };
63 #define OCTET_SER__INIT \
64  { PROTOBUF_C_MESSAGE_INIT (&octet_ser__descriptor) \
65  , 0,NULL, 0, 0 }
66 
67 
68 struct _MspSer
69 {
70  ProtobufCMessage base;
71  MatSer *mat;
72  size_t n_row_to_attrib;
73  int64_t *row_to_attrib;
74 };
75 #define MSP_SER__INIT \
76  { PROTOBUF_C_MESSAGE_INIT (&msp_ser__descriptor) \
77  , NULL, 0,NULL }
78 
79 
81 {
82  ProtobufCMessage base;
83  size_t n_vec;
84  OctetSer **vec;
85  int64_t size;
86 };
87 #define VEC_OCTET_SER__INIT \
88  { PROTOBUF_C_MESSAGE_INIT (&vec_octet_ser__descriptor) \
89  , 0,NULL, 0 }
90 
91 
92 /* MpzSer methods */
93 void mpz_ser__init
94  (MpzSer *message);
95 size_t mpz_ser__get_packed_size
96  (const MpzSer *message);
97 size_t mpz_ser__pack
98  (const MpzSer *message,
99  uint8_t *out);
100 size_t mpz_ser__pack_to_buffer
101  (const MpzSer *message,
102  ProtobufCBuffer *buffer);
103 MpzSer *
104  mpz_ser__unpack
105  (ProtobufCAllocator *allocator,
106  size_t len,
107  const uint8_t *data);
108 void mpz_ser__free_unpacked
109  (MpzSer *message,
110  ProtobufCAllocator *allocator);
111 /* MatSer methods */
112 void mat_ser__init
113  (MatSer *message);
114 size_t mat_ser__get_packed_size
115  (const MatSer *message);
116 size_t mat_ser__pack
117  (const MatSer *message,
118  uint8_t *out);
119 size_t mat_ser__pack_to_buffer
120  (const MatSer *message,
121  ProtobufCBuffer *buffer);
122 MatSer *
123  mat_ser__unpack
124  (ProtobufCAllocator *allocator,
125  size_t len,
126  const uint8_t *data);
127 void mat_ser__free_unpacked
128  (MatSer *message,
129  ProtobufCAllocator *allocator);
130 /* OctetSer methods */
131 void octet_ser__init
132  (OctetSer *message);
133 size_t octet_ser__get_packed_size
134  (const OctetSer *message);
135 size_t octet_ser__pack
136  (const OctetSer *message,
137  uint8_t *out);
138 size_t octet_ser__pack_to_buffer
139  (const OctetSer *message,
140  ProtobufCBuffer *buffer);
141 OctetSer *
142  octet_ser__unpack
143  (ProtobufCAllocator *allocator,
144  size_t len,
145  const uint8_t *data);
146 void octet_ser__free_unpacked
147  (OctetSer *message,
148  ProtobufCAllocator *allocator);
149 /* MspSer methods */
150 void msp_ser__init
151  (MspSer *message);
152 size_t msp_ser__get_packed_size
153  (const MspSer *message);
154 size_t msp_ser__pack
155  (const MspSer *message,
156  uint8_t *out);
157 size_t msp_ser__pack_to_buffer
158  (const MspSer *message,
159  ProtobufCBuffer *buffer);
160 MspSer *
161  msp_ser__unpack
162  (ProtobufCAllocator *allocator,
163  size_t len,
164  const uint8_t *data);
165 void msp_ser__free_unpacked
166  (MspSer *message,
167  ProtobufCAllocator *allocator);
168 /* VecOctetSer methods */
169 void vec_octet_ser__init
170  (VecOctetSer *message);
171 size_t vec_octet_ser__get_packed_size
172  (const VecOctetSer *message);
173 size_t vec_octet_ser__pack
174  (const VecOctetSer *message,
175  uint8_t *out);
176 size_t vec_octet_ser__pack_to_buffer
177  (const VecOctetSer *message,
178  ProtobufCBuffer *buffer);
179 VecOctetSer *
180  vec_octet_ser__unpack
181  (ProtobufCAllocator *allocator,
182  size_t len,
183  const uint8_t *data);
184 void vec_octet_ser__free_unpacked
185  (VecOctetSer *message,
186  ProtobufCAllocator *allocator);
187 /* --- per-message closures --- */
188 
189 typedef void (*MpzSer_Closure)
190  (const MpzSer *message,
191  void *closure_data);
192 typedef void (*MatSer_Closure)
193  (const MatSer *message,
194  void *closure_data);
195 typedef void (*OctetSer_Closure)
196  (const OctetSer *message,
197  void *closure_data);
198 typedef void (*MspSer_Closure)
199  (const MspSer *message,
200  void *closure_data);
201 typedef void (*VecOctetSer_Closure)
202  (const VecOctetSer *message,
203  void *closure_data);
204 
205 /* --- services --- */
206 
207 
208 /* --- descriptors --- */
209 
210 extern const ProtobufCMessageDescriptor mpz_ser__descriptor;
211 extern const ProtobufCMessageDescriptor mat_ser__descriptor;
212 extern const ProtobufCMessageDescriptor octet_ser__descriptor;
213 extern const ProtobufCMessageDescriptor msp_ser__descriptor;
214 extern const ProtobufCMessageDescriptor vec_octet_ser__descriptor;
215 
216 PROTOBUF_C__END_DECLS
217 
218 
219 #endif /* PROTOBUF_C_data_2eproto__INCLUDED */
_MpzSer
Definition: data.pb-c.h:30
_MspSer
Definition: data.pb-c.h:68
_OctetSer
Definition: data.pb-c.h:55
_VecOctetSer
Definition: data.pb-c.h:80
_MatSer
Definition: data.pb-c.h:42