1 /* Generated by the protocol buffer compiler. DO NOT EDIT! */
2 /* Generated from: intercept.proto */
3
4 /* Do not generate deprecated warnings for self */
5 #ifndef PROTOBUF_C__NO_DEPRECATED
6 #define PROTOBUF_C__NO_DEPRECATED
7 #endif
8
9 #include "intercept.pb-c.h"
intercept_request__init(InterceptRequest * message)10 void intercept_request__init
11 (InterceptRequest *message)
12 {
13 static const InterceptRequest init_value = INTERCEPT_REQUEST__INIT;
14 *message = init_value;
15 }
intercept_request__get_packed_size(const InterceptRequest * message)16 size_t intercept_request__get_packed_size
17 (const InterceptRequest *message)
18 {
19 assert(message->base.descriptor == &intercept_request__descriptor);
20 return protobuf_c_message_get_packed_size ((const ProtobufCMessage*)(message));
21 }
intercept_request__pack(const InterceptRequest * message,uint8_t * out)22 size_t intercept_request__pack
23 (const InterceptRequest *message,
24 uint8_t *out)
25 {
26 assert(message->base.descriptor == &intercept_request__descriptor);
27 return protobuf_c_message_pack ((const ProtobufCMessage*)message, out);
28 }
intercept_request__pack_to_buffer(const InterceptRequest * message,ProtobufCBuffer * buffer)29 size_t intercept_request__pack_to_buffer
30 (const InterceptRequest *message,
31 ProtobufCBuffer *buffer)
32 {
33 assert(message->base.descriptor == &intercept_request__descriptor);
34 return protobuf_c_message_pack_to_buffer ((const ProtobufCMessage*)message, buffer);
35 }
36 InterceptRequest *
intercept_request__unpack(ProtobufCAllocator * allocator,size_t len,const uint8_t * data)37 intercept_request__unpack
38 (ProtobufCAllocator *allocator,
39 size_t len,
40 const uint8_t *data)
41 {
42 return (InterceptRequest *)
43 protobuf_c_message_unpack (&intercept_request__descriptor,
44 allocator, len, data);
45 }
intercept_request__free_unpacked(InterceptRequest * message,ProtobufCAllocator * allocator)46 void intercept_request__free_unpacked
47 (InterceptRequest *message,
48 ProtobufCAllocator *allocator)
49 {
50 if(!message)
51 return;
52 assert(message->base.descriptor == &intercept_request__descriptor);
53 protobuf_c_message_free_unpacked ((ProtobufCMessage*)message, allocator);
54 }
intercept_hello__init(InterceptHello * message)55 void intercept_hello__init
56 (InterceptHello *message)
57 {
58 static const InterceptHello init_value = INTERCEPT_HELLO__INIT;
59 *message = init_value;
60 }
intercept_hello__get_packed_size(const InterceptHello * message)61 size_t intercept_hello__get_packed_size
62 (const InterceptHello *message)
63 {
64 assert(message->base.descriptor == &intercept_hello__descriptor);
65 return protobuf_c_message_get_packed_size ((const ProtobufCMessage*)(message));
66 }
intercept_hello__pack(const InterceptHello * message,uint8_t * out)67 size_t intercept_hello__pack
68 (const InterceptHello *message,
69 uint8_t *out)
70 {
71 assert(message->base.descriptor == &intercept_hello__descriptor);
72 return protobuf_c_message_pack ((const ProtobufCMessage*)message, out);
73 }
intercept_hello__pack_to_buffer(const InterceptHello * message,ProtobufCBuffer * buffer)74 size_t intercept_hello__pack_to_buffer
75 (const InterceptHello *message,
76 ProtobufCBuffer *buffer)
77 {
78 assert(message->base.descriptor == &intercept_hello__descriptor);
79 return protobuf_c_message_pack_to_buffer ((const ProtobufCMessage*)message, buffer);
80 }
81 InterceptHello *
intercept_hello__unpack(ProtobufCAllocator * allocator,size_t len,const uint8_t * data)82 intercept_hello__unpack
83 (ProtobufCAllocator *allocator,
84 size_t len,
85 const uint8_t *data)
86 {
87 return (InterceptHello *)
88 protobuf_c_message_unpack (&intercept_hello__descriptor,
89 allocator, len, data);
90 }
intercept_hello__free_unpacked(InterceptHello * message,ProtobufCAllocator * allocator)91 void intercept_hello__free_unpacked
92 (InterceptHello *message,
93 ProtobufCAllocator *allocator)
94 {
95 if(!message)
96 return;
97 assert(message->base.descriptor == &intercept_hello__descriptor);
98 protobuf_c_message_free_unpacked ((ProtobufCMessage*)message, allocator);
99 }
hello_response__init(HelloResponse * message)100 void hello_response__init
101 (HelloResponse *message)
102 {
103 static const HelloResponse init_value = HELLO_RESPONSE__INIT;
104 *message = init_value;
105 }
hello_response__get_packed_size(const HelloResponse * message)106 size_t hello_response__get_packed_size
107 (const HelloResponse *message)
108 {
109 assert(message->base.descriptor == &hello_response__descriptor);
110 return protobuf_c_message_get_packed_size ((const ProtobufCMessage*)(message));
111 }
hello_response__pack(const HelloResponse * message,uint8_t * out)112 size_t hello_response__pack
113 (const HelloResponse *message,
114 uint8_t *out)
115 {
116 assert(message->base.descriptor == &hello_response__descriptor);
117 return protobuf_c_message_pack ((const ProtobufCMessage*)message, out);
118 }
hello_response__pack_to_buffer(const HelloResponse * message,ProtobufCBuffer * buffer)119 size_t hello_response__pack_to_buffer
120 (const HelloResponse *message,
121 ProtobufCBuffer *buffer)
122 {
123 assert(message->base.descriptor == &hello_response__descriptor);
124 return protobuf_c_message_pack_to_buffer ((const ProtobufCMessage*)message, buffer);
125 }
126 HelloResponse *
hello_response__unpack(ProtobufCAllocator * allocator,size_t len,const uint8_t * data)127 hello_response__unpack
128 (ProtobufCAllocator *allocator,
129 size_t len,
130 const uint8_t *data)
131 {
132 return (HelloResponse *)
133 protobuf_c_message_unpack (&hello_response__descriptor,
134 allocator, len, data);
135 }
hello_response__free_unpacked(HelloResponse * message,ProtobufCAllocator * allocator)136 void hello_response__free_unpacked
137 (HelloResponse *message,
138 ProtobufCAllocator *allocator)
139 {
140 if(!message)
141 return;
142 assert(message->base.descriptor == &hello_response__descriptor);
143 protobuf_c_message_free_unpacked ((ProtobufCMessage*)message, allocator);
144 }
policy_check_request__init(PolicyCheckRequest * message)145 void policy_check_request__init
146 (PolicyCheckRequest *message)
147 {
148 static const PolicyCheckRequest init_value = POLICY_CHECK_REQUEST__INIT;
149 *message = init_value;
150 }
policy_check_request__get_packed_size(const PolicyCheckRequest * message)151 size_t policy_check_request__get_packed_size
152 (const PolicyCheckRequest *message)
153 {
154 assert(message->base.descriptor == &policy_check_request__descriptor);
155 return protobuf_c_message_get_packed_size ((const ProtobufCMessage*)(message));
156 }
policy_check_request__pack(const PolicyCheckRequest * message,uint8_t * out)157 size_t policy_check_request__pack
158 (const PolicyCheckRequest *message,
159 uint8_t *out)
160 {
161 assert(message->base.descriptor == &policy_check_request__descriptor);
162 return protobuf_c_message_pack ((const ProtobufCMessage*)message, out);
163 }
policy_check_request__pack_to_buffer(const PolicyCheckRequest * message,ProtobufCBuffer * buffer)164 size_t policy_check_request__pack_to_buffer
165 (const PolicyCheckRequest *message,
166 ProtobufCBuffer *buffer)
167 {
168 assert(message->base.descriptor == &policy_check_request__descriptor);
169 return protobuf_c_message_pack_to_buffer ((const ProtobufCMessage*)message, buffer);
170 }
171 PolicyCheckRequest *
policy_check_request__unpack(ProtobufCAllocator * allocator,size_t len,const uint8_t * data)172 policy_check_request__unpack
173 (ProtobufCAllocator *allocator,
174 size_t len,
175 const uint8_t *data)
176 {
177 return (PolicyCheckRequest *)
178 protobuf_c_message_unpack (&policy_check_request__descriptor,
179 allocator, len, data);
180 }
policy_check_request__free_unpacked(PolicyCheckRequest * message,ProtobufCAllocator * allocator)181 void policy_check_request__free_unpacked
182 (PolicyCheckRequest *message,
183 ProtobufCAllocator *allocator)
184 {
185 if(!message)
186 return;
187 assert(message->base.descriptor == &policy_check_request__descriptor);
188 protobuf_c_message_free_unpacked ((ProtobufCMessage*)message, allocator);
189 }
policy_accept_message__init(PolicyAcceptMessage * message)190 void policy_accept_message__init
191 (PolicyAcceptMessage *message)
192 {
193 static const PolicyAcceptMessage init_value = POLICY_ACCEPT_MESSAGE__INIT;
194 *message = init_value;
195 }
policy_accept_message__get_packed_size(const PolicyAcceptMessage * message)196 size_t policy_accept_message__get_packed_size
197 (const PolicyAcceptMessage *message)
198 {
199 assert(message->base.descriptor == &policy_accept_message__descriptor);
200 return protobuf_c_message_get_packed_size ((const ProtobufCMessage*)(message));
201 }
policy_accept_message__pack(const PolicyAcceptMessage * message,uint8_t * out)202 size_t policy_accept_message__pack
203 (const PolicyAcceptMessage *message,
204 uint8_t *out)
205 {
206 assert(message->base.descriptor == &policy_accept_message__descriptor);
207 return protobuf_c_message_pack ((const ProtobufCMessage*)message, out);
208 }
policy_accept_message__pack_to_buffer(const PolicyAcceptMessage * message,ProtobufCBuffer * buffer)209 size_t policy_accept_message__pack_to_buffer
210 (const PolicyAcceptMessage *message,
211 ProtobufCBuffer *buffer)
212 {
213 assert(message->base.descriptor == &policy_accept_message__descriptor);
214 return protobuf_c_message_pack_to_buffer ((const ProtobufCMessage*)message, buffer);
215 }
216 PolicyAcceptMessage *
policy_accept_message__unpack(ProtobufCAllocator * allocator,size_t len,const uint8_t * data)217 policy_accept_message__unpack
218 (ProtobufCAllocator *allocator,
219 size_t len,
220 const uint8_t *data)
221 {
222 return (PolicyAcceptMessage *)
223 protobuf_c_message_unpack (&policy_accept_message__descriptor,
224 allocator, len, data);
225 }
policy_accept_message__free_unpacked(PolicyAcceptMessage * message,ProtobufCAllocator * allocator)226 void policy_accept_message__free_unpacked
227 (PolicyAcceptMessage *message,
228 ProtobufCAllocator *allocator)
229 {
230 if(!message)
231 return;
232 assert(message->base.descriptor == &policy_accept_message__descriptor);
233 protobuf_c_message_free_unpacked ((ProtobufCMessage*)message, allocator);
234 }
policy_reject_message__init(PolicyRejectMessage * message)235 void policy_reject_message__init
236 (PolicyRejectMessage *message)
237 {
238 static const PolicyRejectMessage init_value = POLICY_REJECT_MESSAGE__INIT;
239 *message = init_value;
240 }
policy_reject_message__get_packed_size(const PolicyRejectMessage * message)241 size_t policy_reject_message__get_packed_size
242 (const PolicyRejectMessage *message)
243 {
244 assert(message->base.descriptor == &policy_reject_message__descriptor);
245 return protobuf_c_message_get_packed_size ((const ProtobufCMessage*)(message));
246 }
policy_reject_message__pack(const PolicyRejectMessage * message,uint8_t * out)247 size_t policy_reject_message__pack
248 (const PolicyRejectMessage *message,
249 uint8_t *out)
250 {
251 assert(message->base.descriptor == &policy_reject_message__descriptor);
252 return protobuf_c_message_pack ((const ProtobufCMessage*)message, out);
253 }
policy_reject_message__pack_to_buffer(const PolicyRejectMessage * message,ProtobufCBuffer * buffer)254 size_t policy_reject_message__pack_to_buffer
255 (const PolicyRejectMessage *message,
256 ProtobufCBuffer *buffer)
257 {
258 assert(message->base.descriptor == &policy_reject_message__descriptor);
259 return protobuf_c_message_pack_to_buffer ((const ProtobufCMessage*)message, buffer);
260 }
261 PolicyRejectMessage *
policy_reject_message__unpack(ProtobufCAllocator * allocator,size_t len,const uint8_t * data)262 policy_reject_message__unpack
263 (ProtobufCAllocator *allocator,
264 size_t len,
265 const uint8_t *data)
266 {
267 return (PolicyRejectMessage *)
268 protobuf_c_message_unpack (&policy_reject_message__descriptor,
269 allocator, len, data);
270 }
policy_reject_message__free_unpacked(PolicyRejectMessage * message,ProtobufCAllocator * allocator)271 void policy_reject_message__free_unpacked
272 (PolicyRejectMessage *message,
273 ProtobufCAllocator *allocator)
274 {
275 if(!message)
276 return;
277 assert(message->base.descriptor == &policy_reject_message__descriptor);
278 protobuf_c_message_free_unpacked ((ProtobufCMessage*)message, allocator);
279 }
policy_error_message__init(PolicyErrorMessage * message)280 void policy_error_message__init
281 (PolicyErrorMessage *message)
282 {
283 static const PolicyErrorMessage init_value = POLICY_ERROR_MESSAGE__INIT;
284 *message = init_value;
285 }
policy_error_message__get_packed_size(const PolicyErrorMessage * message)286 size_t policy_error_message__get_packed_size
287 (const PolicyErrorMessage *message)
288 {
289 assert(message->base.descriptor == &policy_error_message__descriptor);
290 return protobuf_c_message_get_packed_size ((const ProtobufCMessage*)(message));
291 }
policy_error_message__pack(const PolicyErrorMessage * message,uint8_t * out)292 size_t policy_error_message__pack
293 (const PolicyErrorMessage *message,
294 uint8_t *out)
295 {
296 assert(message->base.descriptor == &policy_error_message__descriptor);
297 return protobuf_c_message_pack ((const ProtobufCMessage*)message, out);
298 }
policy_error_message__pack_to_buffer(const PolicyErrorMessage * message,ProtobufCBuffer * buffer)299 size_t policy_error_message__pack_to_buffer
300 (const PolicyErrorMessage *message,
301 ProtobufCBuffer *buffer)
302 {
303 assert(message->base.descriptor == &policy_error_message__descriptor);
304 return protobuf_c_message_pack_to_buffer ((const ProtobufCMessage*)message, buffer);
305 }
306 PolicyErrorMessage *
policy_error_message__unpack(ProtobufCAllocator * allocator,size_t len,const uint8_t * data)307 policy_error_message__unpack
308 (ProtobufCAllocator *allocator,
309 size_t len,
310 const uint8_t *data)
311 {
312 return (PolicyErrorMessage *)
313 protobuf_c_message_unpack (&policy_error_message__descriptor,
314 allocator, len, data);
315 }
policy_error_message__free_unpacked(PolicyErrorMessage * message,ProtobufCAllocator * allocator)316 void policy_error_message__free_unpacked
317 (PolicyErrorMessage *message,
318 ProtobufCAllocator *allocator)
319 {
320 if(!message)
321 return;
322 assert(message->base.descriptor == &policy_error_message__descriptor);
323 protobuf_c_message_free_unpacked ((ProtobufCMessage*)message, allocator);
324 }
intercept_response__init(InterceptResponse * message)325 void intercept_response__init
326 (InterceptResponse *message)
327 {
328 static const InterceptResponse init_value = INTERCEPT_RESPONSE__INIT;
329 *message = init_value;
330 }
intercept_response__get_packed_size(const InterceptResponse * message)331 size_t intercept_response__get_packed_size
332 (const InterceptResponse *message)
333 {
334 assert(message->base.descriptor == &intercept_response__descriptor);
335 return protobuf_c_message_get_packed_size ((const ProtobufCMessage*)(message));
336 }
intercept_response__pack(const InterceptResponse * message,uint8_t * out)337 size_t intercept_response__pack
338 (const InterceptResponse *message,
339 uint8_t *out)
340 {
341 assert(message->base.descriptor == &intercept_response__descriptor);
342 return protobuf_c_message_pack ((const ProtobufCMessage*)message, out);
343 }
intercept_response__pack_to_buffer(const InterceptResponse * message,ProtobufCBuffer * buffer)344 size_t intercept_response__pack_to_buffer
345 (const InterceptResponse *message,
346 ProtobufCBuffer *buffer)
347 {
348 assert(message->base.descriptor == &intercept_response__descriptor);
349 return protobuf_c_message_pack_to_buffer ((const ProtobufCMessage*)message, buffer);
350 }
351 InterceptResponse *
intercept_response__unpack(ProtobufCAllocator * allocator,size_t len,const uint8_t * data)352 intercept_response__unpack
353 (ProtobufCAllocator *allocator,
354 size_t len,
355 const uint8_t *data)
356 {
357 return (InterceptResponse *)
358 protobuf_c_message_unpack (&intercept_response__descriptor,
359 allocator, len, data);
360 }
intercept_response__free_unpacked(InterceptResponse * message,ProtobufCAllocator * allocator)361 void intercept_response__free_unpacked
362 (InterceptResponse *message,
363 ProtobufCAllocator *allocator)
364 {
365 if(!message)
366 return;
367 assert(message->base.descriptor == &intercept_response__descriptor);
368 protobuf_c_message_free_unpacked ((ProtobufCMessage*)message, allocator);
369 }
370 static const ProtobufCFieldDescriptor intercept_request__field_descriptors[2] =
371 {
372 {
373 "policy_check_req",
374 1,
375 PROTOBUF_C_LABEL_NONE,
376 PROTOBUF_C_TYPE_MESSAGE,
377 offsetof(InterceptRequest, type_case),
378 offsetof(InterceptRequest, u.policy_check_req),
379 &policy_check_request__descriptor,
380 NULL,
381 0 | PROTOBUF_C_FIELD_FLAG_ONEOF, /* flags */
382 0,NULL,NULL /* reserved1,reserved2, etc */
383 },
384 {
385 "hello",
386 2,
387 PROTOBUF_C_LABEL_NONE,
388 PROTOBUF_C_TYPE_MESSAGE,
389 offsetof(InterceptRequest, type_case),
390 offsetof(InterceptRequest, u.hello),
391 &intercept_hello__descriptor,
392 NULL,
393 0 | PROTOBUF_C_FIELD_FLAG_ONEOF, /* flags */
394 0,NULL,NULL /* reserved1,reserved2, etc */
395 },
396 };
397 static const unsigned intercept_request__field_indices_by_name[] = {
398 1, /* field[1] = hello */
399 0, /* field[0] = policy_check_req */
400 };
401 static const ProtobufCIntRange intercept_request__number_ranges[1 + 1] =
402 {
403 { 1, 0 },
404 { 0, 2 }
405 };
406 const ProtobufCMessageDescriptor intercept_request__descriptor =
407 {
408 PROTOBUF_C__MESSAGE_DESCRIPTOR_MAGIC,
409 "InterceptRequest",
410 "InterceptRequest",
411 "InterceptRequest",
412 "",
413 sizeof(InterceptRequest),
414 2,
415 intercept_request__field_descriptors,
416 intercept_request__field_indices_by_name,
417 1, intercept_request__number_ranges,
418 (ProtobufCMessageInit) intercept_request__init,
419 NULL,NULL,NULL /* reserved[123] */
420 };
421 static const ProtobufCFieldDescriptor intercept_hello__field_descriptors[1] =
422 {
423 {
424 "pid",
425 1,
426 PROTOBUF_C_LABEL_NONE,
427 PROTOBUF_C_TYPE_INT32,
428 0, /* quantifier_offset */
429 offsetof(InterceptHello, pid),
430 NULL,
431 NULL,
432 0, /* flags */
433 0,NULL,NULL /* reserved1,reserved2, etc */
434 },
435 };
436 static const unsigned intercept_hello__field_indices_by_name[] = {
437 0, /* field[0] = pid */
438 };
439 static const ProtobufCIntRange intercept_hello__number_ranges[1 + 1] =
440 {
441 { 1, 0 },
442 { 0, 1 }
443 };
444 const ProtobufCMessageDescriptor intercept_hello__descriptor =
445 {
446 PROTOBUF_C__MESSAGE_DESCRIPTOR_MAGIC,
447 "InterceptHello",
448 "InterceptHello",
449 "InterceptHello",
450 "",
451 sizeof(InterceptHello),
452 1,
453 intercept_hello__field_descriptors,
454 intercept_hello__field_indices_by_name,
455 1, intercept_hello__number_ranges,
456 (ProtobufCMessageInit) intercept_hello__init,
457 NULL,NULL,NULL /* reserved[123] */
458 };
459 static const ProtobufCFieldDescriptor hello_response__field_descriptors[3] =
460 {
461 {
462 "token_lo",
463 1,
464 PROTOBUF_C_LABEL_NONE,
465 PROTOBUF_C_TYPE_FIXED64,
466 0, /* quantifier_offset */
467 offsetof(HelloResponse, token_lo),
468 NULL,
469 NULL,
470 0, /* flags */
471 0,NULL,NULL /* reserved1,reserved2, etc */
472 },
473 {
474 "token_hi",
475 2,
476 PROTOBUF_C_LABEL_NONE,
477 PROTOBUF_C_TYPE_FIXED64,
478 0, /* quantifier_offset */
479 offsetof(HelloResponse, token_hi),
480 NULL,
481 NULL,
482 0, /* flags */
483 0,NULL,NULL /* reserved1,reserved2, etc */
484 },
485 {
486 "portno",
487 3,
488 PROTOBUF_C_LABEL_NONE,
489 PROTOBUF_C_TYPE_INT32,
490 0, /* quantifier_offset */
491 offsetof(HelloResponse, portno),
492 NULL,
493 NULL,
494 0, /* flags */
495 0,NULL,NULL /* reserved1,reserved2, etc */
496 },
497 };
498 static const unsigned hello_response__field_indices_by_name[] = {
499 2, /* field[2] = portno */
500 1, /* field[1] = token_hi */
501 0, /* field[0] = token_lo */
502 };
503 static const ProtobufCIntRange hello_response__number_ranges[1 + 1] =
504 {
505 { 1, 0 },
506 { 0, 3 }
507 };
508 const ProtobufCMessageDescriptor hello_response__descriptor =
509 {
510 PROTOBUF_C__MESSAGE_DESCRIPTOR_MAGIC,
511 "HelloResponse",
512 "HelloResponse",
513 "HelloResponse",
514 "",
515 sizeof(HelloResponse),
516 3,
517 hello_response__field_descriptors,
518 hello_response__field_indices_by_name,
519 1, hello_response__number_ranges,
520 (ProtobufCMessageInit) hello_response__init,
521 NULL,NULL,NULL /* reserved[123] */
522 };
523 static const ProtobufCFieldDescriptor policy_check_request__field_descriptors[5] =
524 {
525 {
526 "command",
527 1,
528 PROTOBUF_C_LABEL_NONE,
529 PROTOBUF_C_TYPE_STRING,
530 0, /* quantifier_offset */
531 offsetof(PolicyCheckRequest, command),
532 NULL,
533 &protobuf_c_empty_string,
534 0, /* flags */
535 0,NULL,NULL /* reserved1,reserved2, etc */
536 },
537 {
538 "cwd",
539 2,
540 PROTOBUF_C_LABEL_NONE,
541 PROTOBUF_C_TYPE_STRING,
542 0, /* quantifier_offset */
543 offsetof(PolicyCheckRequest, cwd),
544 NULL,
545 &protobuf_c_empty_string,
546 0, /* flags */
547 0,NULL,NULL /* reserved1,reserved2, etc */
548 },
549 {
550 "argv",
551 3,
552 PROTOBUF_C_LABEL_REPEATED,
553 PROTOBUF_C_TYPE_STRING,
554 offsetof(PolicyCheckRequest, n_argv),
555 offsetof(PolicyCheckRequest, argv),
556 NULL,
557 &protobuf_c_empty_string,
558 0, /* flags */
559 0,NULL,NULL /* reserved1,reserved2, etc */
560 },
561 {
562 "envp",
563 4,
564 PROTOBUF_C_LABEL_REPEATED,
565 PROTOBUF_C_TYPE_STRING,
566 offsetof(PolicyCheckRequest, n_envp),
567 offsetof(PolicyCheckRequest, envp),
568 NULL,
569 &protobuf_c_empty_string,
570 0, /* flags */
571 0,NULL,NULL /* reserved1,reserved2, etc */
572 },
573 {
574 "intercept_fd",
575 5,
576 PROTOBUF_C_LABEL_NONE,
577 PROTOBUF_C_TYPE_INT32,
578 0, /* quantifier_offset */
579 offsetof(PolicyCheckRequest, intercept_fd),
580 NULL,
581 NULL,
582 0, /* flags */
583 0,NULL,NULL /* reserved1,reserved2, etc */
584 },
585 };
586 static const unsigned policy_check_request__field_indices_by_name[] = {
587 2, /* field[2] = argv */
588 0, /* field[0] = command */
589 1, /* field[1] = cwd */
590 3, /* field[3] = envp */
591 4, /* field[4] = intercept_fd */
592 };
593 static const ProtobufCIntRange policy_check_request__number_ranges[1 + 1] =
594 {
595 { 1, 0 },
596 { 0, 5 }
597 };
598 const ProtobufCMessageDescriptor policy_check_request__descriptor =
599 {
600 PROTOBUF_C__MESSAGE_DESCRIPTOR_MAGIC,
601 "PolicyCheckRequest",
602 "PolicyCheckRequest",
603 "PolicyCheckRequest",
604 "",
605 sizeof(PolicyCheckRequest),
606 5,
607 policy_check_request__field_descriptors,
608 policy_check_request__field_indices_by_name,
609 1, policy_check_request__number_ranges,
610 (ProtobufCMessageInit) policy_check_request__init,
611 NULL,NULL,NULL /* reserved[123] */
612 };
613 static const ProtobufCFieldDescriptor policy_accept_message__field_descriptors[3] =
614 {
615 {
616 "run_command",
617 1,
618 PROTOBUF_C_LABEL_NONE,
619 PROTOBUF_C_TYPE_STRING,
620 0, /* quantifier_offset */
621 offsetof(PolicyAcceptMessage, run_command),
622 NULL,
623 &protobuf_c_empty_string,
624 0, /* flags */
625 0,NULL,NULL /* reserved1,reserved2, etc */
626 },
627 {
628 "run_argv",
629 2,
630 PROTOBUF_C_LABEL_REPEATED,
631 PROTOBUF_C_TYPE_STRING,
632 offsetof(PolicyAcceptMessage, n_run_argv),
633 offsetof(PolicyAcceptMessage, run_argv),
634 NULL,
635 &protobuf_c_empty_string,
636 0, /* flags */
637 0,NULL,NULL /* reserved1,reserved2, etc */
638 },
639 {
640 "run_envp",
641 3,
642 PROTOBUF_C_LABEL_REPEATED,
643 PROTOBUF_C_TYPE_STRING,
644 offsetof(PolicyAcceptMessage, n_run_envp),
645 offsetof(PolicyAcceptMessage, run_envp),
646 NULL,
647 &protobuf_c_empty_string,
648 0, /* flags */
649 0,NULL,NULL /* reserved1,reserved2, etc */
650 },
651 };
652 static const unsigned policy_accept_message__field_indices_by_name[] = {
653 1, /* field[1] = run_argv */
654 0, /* field[0] = run_command */
655 2, /* field[2] = run_envp */
656 };
657 static const ProtobufCIntRange policy_accept_message__number_ranges[1 + 1] =
658 {
659 { 1, 0 },
660 { 0, 3 }
661 };
662 const ProtobufCMessageDescriptor policy_accept_message__descriptor =
663 {
664 PROTOBUF_C__MESSAGE_DESCRIPTOR_MAGIC,
665 "PolicyAcceptMessage",
666 "PolicyAcceptMessage",
667 "PolicyAcceptMessage",
668 "",
669 sizeof(PolicyAcceptMessage),
670 3,
671 policy_accept_message__field_descriptors,
672 policy_accept_message__field_indices_by_name,
673 1, policy_accept_message__number_ranges,
674 (ProtobufCMessageInit) policy_accept_message__init,
675 NULL,NULL,NULL /* reserved[123] */
676 };
677 static const ProtobufCFieldDescriptor policy_reject_message__field_descriptors[1] =
678 {
679 {
680 "reject_message",
681 1,
682 PROTOBUF_C_LABEL_NONE,
683 PROTOBUF_C_TYPE_STRING,
684 0, /* quantifier_offset */
685 offsetof(PolicyRejectMessage, reject_message),
686 NULL,
687 &protobuf_c_empty_string,
688 0, /* flags */
689 0,NULL,NULL /* reserved1,reserved2, etc */
690 },
691 };
692 static const unsigned policy_reject_message__field_indices_by_name[] = {
693 0, /* field[0] = reject_message */
694 };
695 static const ProtobufCIntRange policy_reject_message__number_ranges[1 + 1] =
696 {
697 { 1, 0 },
698 { 0, 1 }
699 };
700 const ProtobufCMessageDescriptor policy_reject_message__descriptor =
701 {
702 PROTOBUF_C__MESSAGE_DESCRIPTOR_MAGIC,
703 "PolicyRejectMessage",
704 "PolicyRejectMessage",
705 "PolicyRejectMessage",
706 "",
707 sizeof(PolicyRejectMessage),
708 1,
709 policy_reject_message__field_descriptors,
710 policy_reject_message__field_indices_by_name,
711 1, policy_reject_message__number_ranges,
712 (ProtobufCMessageInit) policy_reject_message__init,
713 NULL,NULL,NULL /* reserved[123] */
714 };
715 static const ProtobufCFieldDescriptor policy_error_message__field_descriptors[1] =
716 {
717 {
718 "error_message",
719 1,
720 PROTOBUF_C_LABEL_NONE,
721 PROTOBUF_C_TYPE_STRING,
722 0, /* quantifier_offset */
723 offsetof(PolicyErrorMessage, error_message),
724 NULL,
725 &protobuf_c_empty_string,
726 0, /* flags */
727 0,NULL,NULL /* reserved1,reserved2, etc */
728 },
729 };
730 static const unsigned policy_error_message__field_indices_by_name[] = {
731 0, /* field[0] = error_message */
732 };
733 static const ProtobufCIntRange policy_error_message__number_ranges[1 + 1] =
734 {
735 { 1, 0 },
736 { 0, 1 }
737 };
738 const ProtobufCMessageDescriptor policy_error_message__descriptor =
739 {
740 PROTOBUF_C__MESSAGE_DESCRIPTOR_MAGIC,
741 "PolicyErrorMessage",
742 "PolicyErrorMessage",
743 "PolicyErrorMessage",
744 "",
745 sizeof(PolicyErrorMessage),
746 1,
747 policy_error_message__field_descriptors,
748 policy_error_message__field_indices_by_name,
749 1, policy_error_message__number_ranges,
750 (ProtobufCMessageInit) policy_error_message__init,
751 NULL,NULL,NULL /* reserved[123] */
752 };
753 static const ProtobufCFieldDescriptor intercept_response__field_descriptors[4] =
754 {
755 {
756 "hello_resp",
757 1,
758 PROTOBUF_C_LABEL_NONE,
759 PROTOBUF_C_TYPE_MESSAGE,
760 offsetof(InterceptResponse, type_case),
761 offsetof(InterceptResponse, u.hello_resp),
762 &hello_response__descriptor,
763 NULL,
764 0 | PROTOBUF_C_FIELD_FLAG_ONEOF, /* flags */
765 0,NULL,NULL /* reserved1,reserved2, etc */
766 },
767 {
768 "accept_msg",
769 2,
770 PROTOBUF_C_LABEL_NONE,
771 PROTOBUF_C_TYPE_MESSAGE,
772 offsetof(InterceptResponse, type_case),
773 offsetof(InterceptResponse, u.accept_msg),
774 &policy_accept_message__descriptor,
775 NULL,
776 0 | PROTOBUF_C_FIELD_FLAG_ONEOF, /* flags */
777 0,NULL,NULL /* reserved1,reserved2, etc */
778 },
779 {
780 "reject_msg",
781 3,
782 PROTOBUF_C_LABEL_NONE,
783 PROTOBUF_C_TYPE_MESSAGE,
784 offsetof(InterceptResponse, type_case),
785 offsetof(InterceptResponse, u.reject_msg),
786 &policy_reject_message__descriptor,
787 NULL,
788 0 | PROTOBUF_C_FIELD_FLAG_ONEOF, /* flags */
789 0,NULL,NULL /* reserved1,reserved2, etc */
790 },
791 {
792 "error_msg",
793 4,
794 PROTOBUF_C_LABEL_NONE,
795 PROTOBUF_C_TYPE_MESSAGE,
796 offsetof(InterceptResponse, type_case),
797 offsetof(InterceptResponse, u.error_msg),
798 &policy_error_message__descriptor,
799 NULL,
800 0 | PROTOBUF_C_FIELD_FLAG_ONEOF, /* flags */
801 0,NULL,NULL /* reserved1,reserved2, etc */
802 },
803 };
804 static const unsigned intercept_response__field_indices_by_name[] = {
805 1, /* field[1] = accept_msg */
806 3, /* field[3] = error_msg */
807 0, /* field[0] = hello_resp */
808 2, /* field[2] = reject_msg */
809 };
810 static const ProtobufCIntRange intercept_response__number_ranges[1 + 1] =
811 {
812 { 1, 0 },
813 { 0, 4 }
814 };
815 const ProtobufCMessageDescriptor intercept_response__descriptor =
816 {
817 PROTOBUF_C__MESSAGE_DESCRIPTOR_MAGIC,
818 "InterceptResponse",
819 "InterceptResponse",
820 "InterceptResponse",
821 "",
822 sizeof(InterceptResponse),
823 4,
824 intercept_response__field_descriptors,
825 intercept_response__field_indices_by_name,
826 1, intercept_response__number_ranges,
827 (ProtobufCMessageInit) intercept_response__init,
828 NULL,NULL,NULL /* reserved[123] */
829 };
830