ra8-firmware 0.1.0
Bare-metal firmware for the Renesas RA8 family (RA8D2 / RA8P1)
Loading...
Searching...
No Matches
ra8_media_download.pb-c.h
Go to the documentation of this file.
1
14
15/* Generated by the protocol buffer compiler. DO NOT EDIT! */
16/* Generated from: ra8_media_download.proto */
17
18#ifndef PROTOBUF_C_ra8_5fmedia_5fdownload_2eproto__INCLUDED
19#define PROTOBUF_C_ra8_5fmedia_5fdownload_2eproto__INCLUDED
20
21#include <protobuf-c/protobuf-c.h>
22
23PROTOBUF_C__BEGIN_DECLS
24
25#if PROTOBUF_C_VERSION_NUMBER < 1003000
26# error This file was generated by a newer version of protobuf-c which is incompatible with your libprotobuf-c headers. Please update your headers.
27#elif 1005002 < PROTOBUF_C_MIN_COMPILER_VERSION
28# error This file was generated by an older version of protobuf-c which is incompatible with your libprotobuf-c headers. Please regenerate this file with a newer version of protobuf-c.
29#endif
30
31
38
39
40/* --- enums --- */
41
42/*
43 * Values intentionally match mdl_format_t. Keep the generated and shared
44 * enums synchronized; production TUs assert the mapping at compile time.
45 */
59typedef enum _Ra8__Mdl__State { /* C23HDR-OK: protoc-c 1.5.2 owns this enum ABI. */
66 PROTOBUF_C__FORCE_ENUM_TO_BE_INT_SIZE(RA8__MDL__STATE)
68
69/* --- messages --- */
70
83#define RA8__MDL__START_REQUEST__INIT \
84 { PROTOBUF_C_MESSAGE_INIT (&ra8__mdl__start_request__descriptor) \
85, 0, (char *)protobuf_c_empty_string, RA8__MDL__FORMAT__FORMAT_LOOSE, (char *)protobuf_c_empty_string, (char *)protobuf_c_empty_string, (char *)protobuf_c_empty_string, (char *)protobuf_c_empty_string, 0 }
86
87
89{
90 ProtobufCMessage base;
92 uint32_t job_id;
95};
96#define RA8__MDL__ACCEPTED__INIT \
97 { PROTOBUF_C_MESSAGE_INIT (&ra8__mdl__accepted__descriptor) \
98, 0, 0, 0, RA8__MDL__FORMAT__FORMAT_LOOSE }
99
100
102{
103 ProtobufCMessage base;
105 uint32_t job_id;
107 uint32_t max_bytes;
108};
109#define RA8__MDL__NEXT_REQUEST__INIT \
110 { PROTOBUF_C_MESSAGE_INIT (&ra8__mdl__next_request__descriptor) \
111, 0, 0, 0, 0 }
112
113
115{
116 ProtobufCMessage base;
118 uint32_t job_id;
119 uint32_t sequence;
120 uint64_t offset;
121 ProtobufCBinaryData data;
122 uint64_t total_bytes;
124 int32_t status;
125 ProtobufCBinaryData sha256;
126 int32_t http_status;
128 char *etag;
131};
132#define RA8__MDL__CHUNK__INIT \
133 { PROTOBUF_C_MESSAGE_INIT (&ra8__mdl__chunk__descriptor) \
134, 0, 0, 0, 0, {0,NULL}, 0, RA8__MDL__STATE__STATE_UNSPECIFIED, 0, {0,NULL}, 0, (char *)protobuf_c_empty_string, (char *)protobuf_c_empty_string, (char *)protobuf_c_empty_string, (char *)protobuf_c_empty_string }
135
136
138{
139 ProtobufCMessage base;
141 uint32_t job_id;
142};
143#define RA8__MDL__CANCEL_REQUEST__INIT \
144 { PROTOBUF_C_MESSAGE_INIT (&ra8__mdl__cancel_request__descriptor) \
145, 0, 0 }
146
147
149{
150 ProtobufCMessage base;
152 uint32_t job_id;
153 int32_t status;
154};
155#define RA8__MDL__CANCELLED__INIT \
156 { PROTOBUF_C_MESSAGE_INIT (&ra8__mdl__cancelled__descriptor) \
157, 0, 0, 0 }
158
159
160/* Ra8__Mdl__StartRequest methods */
162 (Ra8__Mdl__StartRequest *message);
164 (const Ra8__Mdl__StartRequest *message);
166 (const Ra8__Mdl__StartRequest *message,
167 uint8_t *out);
169 (const Ra8__Mdl__StartRequest *message,
170 ProtobufCBuffer *buffer);
173 (ProtobufCAllocator *allocator,
174 size_t len,
175 const uint8_t *data);
177 (Ra8__Mdl__StartRequest *message,
178 ProtobufCAllocator *allocator);
179/* Ra8__Mdl__Accepted methods */
181 (Ra8__Mdl__Accepted *message);
183 (const Ra8__Mdl__Accepted *message);
185 (const Ra8__Mdl__Accepted *message,
186 uint8_t *out);
188 (const Ra8__Mdl__Accepted *message,
189 ProtobufCBuffer *buffer);
192 (ProtobufCAllocator *allocator,
193 size_t len,
194 const uint8_t *data);
196 (Ra8__Mdl__Accepted *message,
197 ProtobufCAllocator *allocator);
198/* Ra8__Mdl__NextRequest methods */
200 (Ra8__Mdl__NextRequest *message);
202 (const Ra8__Mdl__NextRequest *message);
204 (const Ra8__Mdl__NextRequest *message,
205 uint8_t *out);
207 (const Ra8__Mdl__NextRequest *message,
208 ProtobufCBuffer *buffer);
211 (ProtobufCAllocator *allocator,
212 size_t len,
213 const uint8_t *data);
215 (Ra8__Mdl__NextRequest *message,
216 ProtobufCAllocator *allocator);
217/* Ra8__Mdl__Chunk methods */
219 (Ra8__Mdl__Chunk *message);
221 (const Ra8__Mdl__Chunk *message);
223 (const Ra8__Mdl__Chunk *message,
224 uint8_t *out);
226 (const Ra8__Mdl__Chunk *message,
227 ProtobufCBuffer *buffer);
230 (ProtobufCAllocator *allocator,
231 size_t len,
232 const uint8_t *data);
234 (Ra8__Mdl__Chunk *message,
235 ProtobufCAllocator *allocator);
236/* Ra8__Mdl__CancelRequest methods */
238 (Ra8__Mdl__CancelRequest *message);
240 (const Ra8__Mdl__CancelRequest *message);
242 (const Ra8__Mdl__CancelRequest *message,
243 uint8_t *out);
245 (const Ra8__Mdl__CancelRequest *message,
246 ProtobufCBuffer *buffer);
249 (ProtobufCAllocator *allocator,
250 size_t len,
251 const uint8_t *data);
253 (Ra8__Mdl__CancelRequest *message,
254 ProtobufCAllocator *allocator);
255/* Ra8__Mdl__Cancelled methods */
257 (Ra8__Mdl__Cancelled *message);
259 (const Ra8__Mdl__Cancelled *message);
261 (const Ra8__Mdl__Cancelled *message,
262 uint8_t *out);
264 (const Ra8__Mdl__Cancelled *message,
265 ProtobufCBuffer *buffer);
268 (ProtobufCAllocator *allocator,
269 size_t len,
270 const uint8_t *data);
272 (Ra8__Mdl__Cancelled *message,
273 ProtobufCAllocator *allocator);
274/* --- per-message closures --- */
275
277 (const Ra8__Mdl__StartRequest *message,
278 void *closure_data);
280 (const Ra8__Mdl__Accepted *message,
281 void *closure_data);
283 (const Ra8__Mdl__NextRequest *message,
284 void *closure_data);
286 (const Ra8__Mdl__Chunk *message,
287 void *closure_data);
289 (const Ra8__Mdl__CancelRequest *message,
290 void *closure_data);
292 (const Ra8__Mdl__Cancelled *message,
293 void *closure_data);
294
295/* --- services --- */
296
297
298/* --- descriptors --- */
299
300extern const ProtobufCEnumDescriptor ra8__mdl__format__descriptor;
301extern const ProtobufCEnumDescriptor ra8__mdl__state__descriptor;
302extern const ProtobufCMessageDescriptor ra8__mdl__start_request__descriptor;
303extern const ProtobufCMessageDescriptor ra8__mdl__accepted__descriptor;
304extern const ProtobufCMessageDescriptor ra8__mdl__next_request__descriptor;
305extern const ProtobufCMessageDescriptor ra8__mdl__chunk__descriptor;
306extern const ProtobufCMessageDescriptor ra8__mdl__cancel_request__descriptor;
307extern const ProtobufCMessageDescriptor ra8__mdl__cancelled__descriptor;
308
309PROTOBUF_C__END_DECLS
310
311
312#endif /* PROTOBUF_C_ra8_5fmedia_5fdownload_2eproto__INCLUDED */
size_t ra8__mdl__accepted__pack_to_buffer(const Ra8__Mdl__Accepted *message, ProtobufCBuffer *buffer)
void ra8__mdl__cancel_request__init(Ra8__Mdl__CancelRequest *message)
void ra8__mdl__chunk__init(Ra8__Mdl__Chunk *message)
size_t ra8__mdl__cancel_request__pack_to_buffer(const Ra8__Mdl__CancelRequest *message, ProtobufCBuffer *buffer)
size_t ra8__mdl__start_request__pack(const Ra8__Mdl__StartRequest *message, uint8_t *out)
Ra8__Mdl__Chunk * ra8__mdl__chunk__unpack(ProtobufCAllocator *allocator, size_t len, const uint8_t *data)
void ra8__mdl__accepted__free_unpacked(Ra8__Mdl__Accepted *message, ProtobufCAllocator *allocator)
void ra8__mdl__cancel_request__free_unpacked(Ra8__Mdl__CancelRequest *message, ProtobufCAllocator *allocator)
const ProtobufCMessageDescriptor ra8__mdl__accepted__descriptor
void ra8__mdl__next_request__init(Ra8__Mdl__NextRequest *message)
size_t ra8__mdl__next_request__pack_to_buffer(const Ra8__Mdl__NextRequest *message, ProtobufCBuffer *buffer)
size_t ra8__mdl__cancelled__pack(const Ra8__Mdl__Cancelled *message, uint8_t *out)
const ProtobufCMessageDescriptor ra8__mdl__start_request__descriptor
@ RA8__MDL__FORMAT__FORMAT_CBT_GZ
@ RA8__MDL__FORMAT__FORMAT_RABOOK
@ RA8__MDL__FORMAT__FORMAT_CBT_XZ
@ RA8__MDL__FORMAT__FORMAT_JOF
@ RA8__MDL__FORMAT__FORMAT_INVALID
@ RA8__MDL__FORMAT__FORMAT_LOOSE
@ RA8__MDL__FORMAT__FORMAT_CBR
@ RA8__MDL__FORMAT__FORMAT_CBZ
@ RA8__MDL__FORMAT__FORMAT_CBT
@ RA8__MDL__FORMAT__FORMAT_EPUB
void(* Ra8__Mdl__Chunk_Closure)(const Ra8__Mdl__Chunk *message, void *closure_data)
Ra8__Mdl__Accepted * ra8__mdl__accepted__unpack(ProtobufCAllocator *allocator, size_t len, const uint8_t *data)
size_t ra8__mdl__cancelled__get_packed_size(const Ra8__Mdl__Cancelled *message)
size_t ra8__mdl__cancel_request__get_packed_size(const Ra8__Mdl__CancelRequest *message)
const ProtobufCMessageDescriptor ra8__mdl__cancelled__descriptor
void ra8__mdl__chunk__free_unpacked(Ra8__Mdl__Chunk *message, ProtobufCAllocator *allocator)
const ProtobufCEnumDescriptor ra8__mdl__state__descriptor
size_t ra8__mdl__next_request__pack(const Ra8__Mdl__NextRequest *message, uint8_t *out)
size_t ra8__mdl__chunk__pack_to_buffer(const Ra8__Mdl__Chunk *message, ProtobufCBuffer *buffer)
const ProtobufCMessageDescriptor ra8__mdl__chunk__descriptor
void ra8__mdl__cancelled__free_unpacked(Ra8__Mdl__Cancelled *message, ProtobufCAllocator *allocator)
size_t ra8__mdl__chunk__pack(const Ra8__Mdl__Chunk *message, uint8_t *out)
void(* Ra8__Mdl__Accepted_Closure)(const Ra8__Mdl__Accepted *message, void *closure_data)
const ProtobufCMessageDescriptor ra8__mdl__cancel_request__descriptor
void ra8__mdl__cancelled__init(Ra8__Mdl__Cancelled *message)
size_t ra8__mdl__start_request__pack_to_buffer(const Ra8__Mdl__StartRequest *message, ProtobufCBuffer *buffer)
size_t ra8__mdl__start_request__get_packed_size(const Ra8__Mdl__StartRequest *message)
Ra8__Mdl__NextRequest * ra8__mdl__next_request__unpack(ProtobufCAllocator *allocator, size_t len, const uint8_t *data)
size_t ra8__mdl__cancelled__pack_to_buffer(const Ra8__Mdl__Cancelled *message, ProtobufCBuffer *buffer)
const ProtobufCEnumDescriptor ra8__mdl__format__descriptor
size_t ra8__mdl__accepted__pack(const Ra8__Mdl__Accepted *message, uint8_t *out)
void(* Ra8__Mdl__NextRequest_Closure)(const Ra8__Mdl__NextRequest *message, void *closure_data)
size_t ra8__mdl__chunk__get_packed_size(const Ra8__Mdl__Chunk *message)
enum _Ra8__Mdl__Format Ra8__Mdl__Format
@ RA8__MDL__STATE__STATE_DOWNLOADING
@ RA8__MDL__STATE__STATE_UNSPECIFIED
@ RA8__MDL__STATE__STATE_COMPLETE
@ RA8__MDL__STATE__STATE_CANCELLED
@ RA8__MDL__STATE__STATE_ACCEPTED
@ RA8__MDL__STATE__STATE_FAILED
const ProtobufCMessageDescriptor ra8__mdl__next_request__descriptor
Ra8__Mdl__Cancelled * ra8__mdl__cancelled__unpack(ProtobufCAllocator *allocator, size_t len, const uint8_t *data)
enum _Ra8__Mdl__State Ra8__Mdl__State
void ra8__mdl__start_request__init(Ra8__Mdl__StartRequest *message)
void(* Ra8__Mdl__Cancelled_Closure)(const Ra8__Mdl__Cancelled *message, void *closure_data)
void ra8__mdl__start_request__free_unpacked(Ra8__Mdl__StartRequest *message, ProtobufCAllocator *allocator)
void(* Ra8__Mdl__StartRequest_Closure)(const Ra8__Mdl__StartRequest *message, void *closure_data)
size_t ra8__mdl__next_request__get_packed_size(const Ra8__Mdl__NextRequest *message)
void ra8__mdl__accepted__init(Ra8__Mdl__Accepted *message)
void ra8__mdl__next_request__free_unpacked(Ra8__Mdl__NextRequest *message, ProtobufCAllocator *allocator)
size_t ra8__mdl__accepted__get_packed_size(const Ra8__Mdl__Accepted *message)
size_t ra8__mdl__cancel_request__pack(const Ra8__Mdl__CancelRequest *message, uint8_t *out)
void(* Ra8__Mdl__CancelRequest_Closure)(const Ra8__Mdl__CancelRequest *message, void *closure_data)
Ra8__Mdl__CancelRequest * ra8__mdl__cancel_request__unpack(ProtobufCAllocator *allocator, size_t len, const uint8_t *data)
Ra8__Mdl__StartRequest * ra8__mdl__start_request__unpack(ProtobufCAllocator *allocator, size_t len, const uint8_t *data)
ProtobufCBinaryData sha256
ProtobufCBinaryData data