protocomm: Regenerated proto-c and python with protobuf compiler v3.21.0

This commit is contained in:
Laukik Hase
2022-05-27 09:31:51 +05:30
parent 1ee3ee6854
commit a3f5087336
8 changed files with 112 additions and 738 deletions

View File

@@ -10,21 +10,21 @@ PROTOBUF_C__BEGIN_DECLS
#if PROTOBUF_C_VERSION_NUMBER < 1003000
# error This file was generated by a newer version of protoc-c which is incompatible with your libprotobuf-c headers. Please update your headers.
#elif 1003000 < PROTOBUF_C_MIN_COMPILER_VERSION
#elif 1004000 < PROTOBUF_C_MIN_COMPILER_VERSION
# 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.
#endif
#include "constants.pb-c.h"
typedef struct _S0SessionCmd S0SessionCmd;
typedef struct _S0SessionResp S0SessionResp;
typedef struct _Sec0Payload Sec0Payload;
typedef struct S0SessionCmd S0SessionCmd;
typedef struct S0SessionResp S0SessionResp;
typedef struct Sec0Payload Sec0Payload;
/* --- enums --- */
/*
* A message must be of type Cmd or Resp
* A message must be of type Cmd or Resp
*/
typedef enum _Sec0MsgType {
SEC0_MSG_TYPE__S0_Session_Command = 0,
@@ -35,9 +35,9 @@ typedef enum _Sec0MsgType {
/* --- messages --- */
/*
* Data structure of Session command/request packet
* Data structure of Session command/request packet
*/
struct _S0SessionCmd
struct S0SessionCmd
{
ProtobufCMessage base;
};
@@ -47,9 +47,9 @@ struct _S0SessionCmd
/*
* Data structure of Session response packet
* Data structure of Session response packet
*/
struct _S0SessionResp
struct S0SessionResp
{
ProtobufCMessage base;
Status status;
@@ -63,27 +63,27 @@ typedef enum {
SEC0_PAYLOAD__PAYLOAD__NOT_SET = 0,
SEC0_PAYLOAD__PAYLOAD_SC = 20,
SEC0_PAYLOAD__PAYLOAD_SR = 21
PROTOBUF_C__FORCE_ENUM_TO_BE_INT_SIZE(SEC0_PAYLOAD__PAYLOAD)
PROTOBUF_C__FORCE_ENUM_TO_BE_INT_SIZE(SEC0_PAYLOAD__PAYLOAD__CASE)
} Sec0Payload__PayloadCase;
/*
* Payload structure of session data
* Payload structure of session data
*/
struct _Sec0Payload
struct Sec0Payload
{
ProtobufCMessage base;
/*
*!< Type of message
*!< Type of message
*/
Sec0MsgType msg;
Sec0Payload__PayloadCase payload_case;
union {
/*
*!< Payload data interpreted as Cmd
*!< Payload data interpreted as Cmd
*/
S0SessionCmd *sc;
/*
*!< Payload data interpreted as Resp
*!< Payload data interpreted as Resp
*/
S0SessionResp *sr;
};