OVMS3-idf/examples/provisioning/custom_config/components/custom_provisioning/proto-c/custom_config.pb-c.h
Anurag Kar 84f094453b Examples : Added provisioning examples, tests and client tool.
* BLE and softAP provisioning examples added along with tests.
* An application specific example added for demonstrating custom provisioning scheme.
* tools/esp_prov/esp_prov.py can be used as a provisioning client for SoftAP, BLE and CLI based transports.

Co-Authored-By: Amey Inamdar <amey@espressif.com>
Co-Authored-By: Anurag Kar <anurag.kar@espressif.com>
2018-10-02 19:07:28 +05:30

114 lines
4 KiB
C

/* Generated by the protocol buffer compiler. DO NOT EDIT! */
/* Generated from: custom_config.proto */
#ifndef PROTOBUF_C_custom_5fconfig_2eproto__INCLUDED
#define PROTOBUF_C_custom_5fconfig_2eproto__INCLUDED
#include <protobuf-c/protobuf-c.h>
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
# 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
typedef struct _CustomConfigRequest CustomConfigRequest;
typedef struct _CustomConfigResponse CustomConfigResponse;
/* --- enums --- */
typedef enum _CustomConfigStatus {
CUSTOM_CONFIG_STATUS__ConfigSuccess = 0,
CUSTOM_CONFIG_STATUS__ConfigFail = 1
PROTOBUF_C__FORCE_ENUM_TO_BE_INT_SIZE(CUSTOM_CONFIG_STATUS)
} CustomConfigStatus;
/* --- messages --- */
struct _CustomConfigRequest
{
ProtobufCMessage base;
char *info;
int32_t version;
};
#define CUSTOM_CONFIG_REQUEST__INIT \
{ PROTOBUF_C_MESSAGE_INIT (&custom_config_request__descriptor) \
, (char *)protobuf_c_empty_string, 0 }
struct _CustomConfigResponse
{
ProtobufCMessage base;
CustomConfigStatus status;
int32_t dummy;
};
#define CUSTOM_CONFIG_RESPONSE__INIT \
{ PROTOBUF_C_MESSAGE_INIT (&custom_config_response__descriptor) \
, CUSTOM_CONFIG_STATUS__ConfigSuccess, 0 }
/* CustomConfigRequest methods */
void custom_config_request__init
(CustomConfigRequest *message);
size_t custom_config_request__get_packed_size
(const CustomConfigRequest *message);
size_t custom_config_request__pack
(const CustomConfigRequest *message,
uint8_t *out);
size_t custom_config_request__pack_to_buffer
(const CustomConfigRequest *message,
ProtobufCBuffer *buffer);
CustomConfigRequest *
custom_config_request__unpack
(ProtobufCAllocator *allocator,
size_t len,
const uint8_t *data);
void custom_config_request__free_unpacked
(CustomConfigRequest *message,
ProtobufCAllocator *allocator);
/* CustomConfigResponse methods */
void custom_config_response__init
(CustomConfigResponse *message);
size_t custom_config_response__get_packed_size
(const CustomConfigResponse *message);
size_t custom_config_response__pack
(const CustomConfigResponse *message,
uint8_t *out);
size_t custom_config_response__pack_to_buffer
(const CustomConfigResponse *message,
ProtobufCBuffer *buffer);
CustomConfigResponse *
custom_config_response__unpack
(ProtobufCAllocator *allocator,
size_t len,
const uint8_t *data);
void custom_config_response__free_unpacked
(CustomConfigResponse *message,
ProtobufCAllocator *allocator);
/* --- per-message closures --- */
typedef void (*CustomConfigRequest_Closure)
(const CustomConfigRequest *message,
void *closure_data);
typedef void (*CustomConfigResponse_Closure)
(const CustomConfigResponse *message,
void *closure_data);
/* --- services --- */
/* --- descriptors --- */
extern const ProtobufCEnumDescriptor custom_config_status__descriptor;
extern const ProtobufCMessageDescriptor custom_config_request__descriptor;
extern const ProtobufCMessageDescriptor custom_config_response__descriptor;
PROTOBUF_C__END_DECLS
#endif /* PROTOBUF_C_custom_5fconfig_2eproto__INCLUDED */