| 1 | /* |
| 2 | * Copyright 2020, Intel Corporation |
| 3 | * |
| 4 | * This program is free software; you can redistribute it and/or |
| 5 | * modify it under the terms of the GNU General Public License, |
| 6 | * version 2 as published by the Free Software Foundation.. |
| 7 | * |
| 8 | * This program is distributed in the hope that it will be useful, |
| 9 | * but WITHOUT ANY WARRANTY; without even the implied warranty of |
| 10 | * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the |
| 11 | * GNU General Public License for more details. |
| 12 | */ |
| 13 | |
| 14 | /* Generated by the protocol buffer compiler. DO NOT EDIT! */ |
| 15 | /* Generated from: librpma_gpspm_flush.proto */ |
| 16 | |
| 17 | #ifndef PROTOBUF_C_GPSPM_5fflush_2eproto__INCLUDED |
| 18 | #define PROTOBUF_C_GPSPM_5fflush_2eproto__INCLUDED |
| 19 | |
| 20 | #include <protobuf-c/protobuf-c.h> |
| 21 | |
| 22 | PROTOBUF_C__BEGIN_DECLS |
| 23 | |
| 24 | #if PROTOBUF_C_VERSION_NUMBER < 1000000 |
| 25 | # error This file was generated by a newer version of protoc-c which is incompatible with your libprotobuf-c headers. Please update your headers. |
| 26 | #elif 1003003 < PROTOBUF_C_MIN_COMPILER_VERSION |
| 27 | # 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. |
| 28 | #endif |
| 29 | |
| 30 | |
| 31 | typedef struct _GPSPMFlushRequest GPSPMFlushRequest; |
| 32 | typedef struct _GPSPMFlushResponse GPSPMFlushResponse; |
| 33 | |
| 34 | |
| 35 | /* --- enums --- */ |
| 36 | |
| 37 | |
| 38 | /* --- messages --- */ |
| 39 | |
| 40 | struct _GPSPMFlushRequest |
| 41 | { |
| 42 | ProtobufCMessage base; |
| 43 | uint64_t offset; |
| 44 | uint64_t length; |
| 45 | uint64_t op_context; |
| 46 | }; |
| 47 | #define GPSPM_FLUSH_REQUEST__INIT \ |
| 48 | { PROTOBUF_C_MESSAGE_INIT (&gpspm_flush_request__descriptor) \ |
| 49 | , 0, 0, 0 } |
| 50 | |
| 51 | |
| 52 | struct _GPSPMFlushResponse |
| 53 | { |
| 54 | ProtobufCMessage base; |
| 55 | uint64_t op_context; |
| 56 | }; |
| 57 | #define GPSPM_FLUSH_RESPONSE__INIT \ |
| 58 | { PROTOBUF_C_MESSAGE_INIT (&gpspm_flush_response__descriptor) \ |
| 59 | , 0 } |
| 60 | |
| 61 | |
| 62 | /* GPSPMFlushRequest methods */ |
| 63 | void gpspm_flush_request__init |
| 64 | (GPSPMFlushRequest *message); |
| 65 | size_t gpspm_flush_request__get_packed_size |
| 66 | (const GPSPMFlushRequest *message); |
| 67 | size_t gpspm_flush_request__pack |
| 68 | (const GPSPMFlushRequest *message, |
| 69 | uint8_t *out); |
| 70 | size_t gpspm_flush_request__pack_to_buffer |
| 71 | (const GPSPMFlushRequest *message, |
| 72 | ProtobufCBuffer *buffer); |
| 73 | GPSPMFlushRequest * |
| 74 | gpspm_flush_request__unpack |
| 75 | (ProtobufCAllocator *allocator, |
| 76 | size_t len, |
| 77 | const uint8_t *data); |
| 78 | void gpspm_flush_request__free_unpacked |
| 79 | (GPSPMFlushRequest *message, |
| 80 | ProtobufCAllocator *allocator); |
| 81 | /* GPSPMFlushResponse methods */ |
| 82 | void gpspm_flush_response__init |
| 83 | (GPSPMFlushResponse *message); |
| 84 | size_t gpspm_flush_response__get_packed_size |
| 85 | (const GPSPMFlushResponse *message); |
| 86 | size_t gpspm_flush_response__pack |
| 87 | (const GPSPMFlushResponse *message, |
| 88 | uint8_t *out); |
| 89 | size_t gpspm_flush_response__pack_to_buffer |
| 90 | (const GPSPMFlushResponse *message, |
| 91 | ProtobufCBuffer *buffer); |
| 92 | GPSPMFlushResponse * |
| 93 | gpspm_flush_response__unpack |
| 94 | (ProtobufCAllocator *allocator, |
| 95 | size_t len, |
| 96 | const uint8_t *data); |
| 97 | void gpspm_flush_response__free_unpacked |
| 98 | (GPSPMFlushResponse *message, |
| 99 | ProtobufCAllocator *allocator); |
| 100 | /* --- per-message closures --- */ |
| 101 | |
| 102 | typedef void (*GPSPMFlushRequest_Closure) |
| 103 | (const GPSPMFlushRequest *message, |
| 104 | void *closure_data); |
| 105 | typedef void (*GPSPMFlushResponse_Closure) |
| 106 | (const GPSPMFlushResponse *message, |
| 107 | void *closure_data); |
| 108 | |
| 109 | /* --- services --- */ |
| 110 | |
| 111 | |
| 112 | /* --- descriptors --- */ |
| 113 | |
| 114 | extern const ProtobufCMessageDescriptor gpspm_flush_request__descriptor; |
| 115 | extern const ProtobufCMessageDescriptor gpspm_flush_response__descriptor; |
| 116 | |
| 117 | PROTOBUF_C__END_DECLS |
| 118 | |
| 119 | |
| 120 | #endif /* PROTOBUF_C_GPSPM_5fflush_2eproto__INCLUDED */ |