2 * Copyright 2020, Intel Corporation
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..
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.
14 /* Generated by the protocol buffer compiler. DO NOT EDIT! */
15 /* Generated from: librpma_gpspm_flush.proto */
17 /* Do not generate deprecated warnings for self */
18 #ifndef PROTOBUF_C__NO_DEPRECATED
19 #define PROTOBUF_C__NO_DEPRECATED
22 #include "librpma_gpspm_flush.pb-c.h"
23 void gpspm_flush_request__init
24 (GPSPMFlushRequest *message)
26 static const GPSPMFlushRequest init_value = GPSPM_FLUSH_REQUEST__INIT;
27 *message = init_value;
29 size_t gpspm_flush_request__get_packed_size
30 (const GPSPMFlushRequest *message)
32 assert(message->base.descriptor == &gpspm_flush_request__descriptor);
33 return protobuf_c_message_get_packed_size ((const ProtobufCMessage*)(message));
35 size_t gpspm_flush_request__pack
36 (const GPSPMFlushRequest *message,
39 assert(message->base.descriptor == &gpspm_flush_request__descriptor);
40 return protobuf_c_message_pack ((const ProtobufCMessage*)message, out);
42 size_t gpspm_flush_request__pack_to_buffer
43 (const GPSPMFlushRequest *message,
44 ProtobufCBuffer *buffer)
46 assert(message->base.descriptor == &gpspm_flush_request__descriptor);
47 return protobuf_c_message_pack_to_buffer ((const ProtobufCMessage*)message, buffer);
50 gpspm_flush_request__unpack
51 (ProtobufCAllocator *allocator,
55 return (GPSPMFlushRequest *)
56 protobuf_c_message_unpack (&gpspm_flush_request__descriptor,
57 allocator, len, data);
59 void gpspm_flush_request__free_unpacked
60 (GPSPMFlushRequest *message,
61 ProtobufCAllocator *allocator)
65 assert(message->base.descriptor == &gpspm_flush_request__descriptor);
66 protobuf_c_message_free_unpacked ((ProtobufCMessage*)message, allocator);
68 void gpspm_flush_response__init
69 (GPSPMFlushResponse *message)
71 static const GPSPMFlushResponse init_value = GPSPM_FLUSH_RESPONSE__INIT;
72 *message = init_value;
74 size_t gpspm_flush_response__get_packed_size
75 (const GPSPMFlushResponse *message)
77 assert(message->base.descriptor == &gpspm_flush_response__descriptor);
78 return protobuf_c_message_get_packed_size ((const ProtobufCMessage*)(message));
80 size_t gpspm_flush_response__pack
81 (const GPSPMFlushResponse *message,
84 assert(message->base.descriptor == &gpspm_flush_response__descriptor);
85 return protobuf_c_message_pack ((const ProtobufCMessage*)message, out);
87 size_t gpspm_flush_response__pack_to_buffer
88 (const GPSPMFlushResponse *message,
89 ProtobufCBuffer *buffer)
91 assert(message->base.descriptor == &gpspm_flush_response__descriptor);
92 return protobuf_c_message_pack_to_buffer ((const ProtobufCMessage*)message, buffer);
95 gpspm_flush_response__unpack
96 (ProtobufCAllocator *allocator,
100 return (GPSPMFlushResponse *)
101 protobuf_c_message_unpack (&gpspm_flush_response__descriptor,
102 allocator, len, data);
104 void gpspm_flush_response__free_unpacked
105 (GPSPMFlushResponse *message,
106 ProtobufCAllocator *allocator)
110 assert(message->base.descriptor == &gpspm_flush_response__descriptor);
111 protobuf_c_message_free_unpacked ((ProtobufCMessage*)message, allocator);
113 static const ProtobufCFieldDescriptor gpspm_flush_request__field_descriptors[3] =
118 PROTOBUF_C_LABEL_REQUIRED,
119 PROTOBUF_C_TYPE_FIXED64,
120 0, /* quantifier_offset */
121 offsetof(GPSPMFlushRequest, offset),
125 0,NULL,NULL /* reserved1,reserved2, etc */
130 PROTOBUF_C_LABEL_REQUIRED,
131 PROTOBUF_C_TYPE_FIXED64,
132 0, /* quantifier_offset */
133 offsetof(GPSPMFlushRequest, length),
137 0,NULL,NULL /* reserved1,reserved2, etc */
142 PROTOBUF_C_LABEL_REQUIRED,
143 PROTOBUF_C_TYPE_FIXED64,
144 0, /* quantifier_offset */
145 offsetof(GPSPMFlushRequest, op_context),
149 0,NULL,NULL /* reserved1,reserved2, etc */
152 static const unsigned gpspm_flush_request__field_indices_by_name[] = {
153 1, /* field[1] = length */
154 0, /* field[0] = offset */
155 2, /* field[2] = op_context */
157 static const ProtobufCIntRange gpspm_flush_request__number_ranges[1 + 1] =
162 const ProtobufCMessageDescriptor gpspm_flush_request__descriptor =
164 PROTOBUF_C__MESSAGE_DESCRIPTOR_MAGIC,
165 "GPSPM_flush_request",
169 sizeof(GPSPMFlushRequest),
171 gpspm_flush_request__field_descriptors,
172 gpspm_flush_request__field_indices_by_name,
173 1, gpspm_flush_request__number_ranges,
174 (ProtobufCMessageInit) gpspm_flush_request__init,
175 NULL,NULL,NULL /* reserved[123] */
177 static const ProtobufCFieldDescriptor gpspm_flush_response__field_descriptors[1] =
182 PROTOBUF_C_LABEL_REQUIRED,
183 PROTOBUF_C_TYPE_FIXED64,
184 0, /* quantifier_offset */
185 offsetof(GPSPMFlushResponse, op_context),
189 0,NULL,NULL /* reserved1,reserved2, etc */
192 static const unsigned gpspm_flush_response__field_indices_by_name[] = {
193 0, /* field[0] = op_context */
195 static const ProtobufCIntRange gpspm_flush_response__number_ranges[1 + 1] =
200 const ProtobufCMessageDescriptor gpspm_flush_response__descriptor =
202 PROTOBUF_C__MESSAGE_DESCRIPTOR_MAGIC,
203 "GPSPM_flush_response",
204 "GPSPMFlushResponse",
205 "GPSPMFlushResponse",
207 sizeof(GPSPMFlushResponse),
209 gpspm_flush_response__field_descriptors,
210 gpspm_flush_response__field_indices_by_name,
211 1, gpspm_flush_response__number_ranges,
212 (ProtobufCMessageInit) gpspm_flush_response__init,
213 NULL,NULL,NULL /* reserved[123] */