mirror of
https://github.com/espressif/esp-idf.git
synced 2026-10-02 11:10:54 +03:00
protocomm: Regenerated proto-c and python with protobuf compiler v3.21.0
This commit is contained in:
@@ -10,25 +10,25 @@ 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 "sec0.pb-c.h"
|
||||
#include "sec1.pb-c.h"
|
||||
|
||||
typedef struct _SessionData SessionData;
|
||||
typedef struct SessionData SessionData;
|
||||
|
||||
|
||||
/* --- enums --- */
|
||||
|
||||
/*
|
||||
* Allowed values for the type of security
|
||||
* being used in a protocomm session
|
||||
* being used in a protocomm session
|
||||
*/
|
||||
typedef enum _SecSchemeVersion {
|
||||
/*
|
||||
*!< Unsecured - plaintext communication
|
||||
*!< Unsecured - plaintext communication
|
||||
*/
|
||||
SEC_SCHEME_VERSION__SecScheme0 = 0,
|
||||
/*
|
||||
@@ -44,28 +44,28 @@ typedef enum {
|
||||
SESSION_DATA__PROTO__NOT_SET = 0,
|
||||
SESSION_DATA__PROTO_SEC0 = 10,
|
||||
SESSION_DATA__PROTO_SEC1 = 11
|
||||
PROTOBUF_C__FORCE_ENUM_TO_BE_INT_SIZE(SESSION_DATA__PROTO)
|
||||
PROTOBUF_C__FORCE_ENUM_TO_BE_INT_SIZE(SESSION_DATA__PROTO__CASE)
|
||||
} SessionData__ProtoCase;
|
||||
|
||||
/*
|
||||
* Data structure exchanged when establishing
|
||||
* secure session between Host and Client
|
||||
* secure session between Host and Client
|
||||
*/
|
||||
struct _SessionData
|
||||
struct SessionData
|
||||
{
|
||||
ProtobufCMessage base;
|
||||
/*
|
||||
*!< Type of security
|
||||
*!< Type of security
|
||||
*/
|
||||
SecSchemeVersion sec_ver;
|
||||
SessionData__ProtoCase proto_case;
|
||||
union {
|
||||
/*
|
||||
*!< Payload data in case of security 0
|
||||
*!< Payload data in case of security 0
|
||||
*/
|
||||
Sec0Payload *sec0;
|
||||
/*
|
||||
*!< Payload data in case of security 1
|
||||
*!< Payload data in case of security 1
|
||||
*/
|
||||
Sec1Payload *sec1;
|
||||
};
|
||||
|
||||
Reference in New Issue
Block a user