/*
Generated by the protocol buffer compiler.
DO NOT EDIT! */
#ifndef
PROTOBUF_C_statusapi_2eproto__INCLUDED
#define
PROTOBUF_C_statusapi_2eproto__INCLUDED
#include
<google/protobuf-c/protobuf-c.h>
PROTOBUF_C_BEGIN_DECLS
typedef
struct _Statusapi__StatusRequestType Statusapi__StatusRequestType;
typedef
struct _Statusapi__StatusResponseType Statusapi__StatusResponseType;
typedef
struct _Statusapi__StatusParams Statusapi__StatusParams;
/* ---
enums --- */
/* ---
messages --- */
struct _Statusapi__StatusRequestType
{
ProtobufCMessage base;
};
#define
STATUSAPI__STATUS_REQUEST_TYPE__INIT
\
{ PROTOBUF_C_MESSAGE_INIT
(&statusapi__status_request_type__descriptor) \
}
struct _Statusapi__StatusResponseType
{
ProtobufCMessage base;
};
#define
STATUSAPI__STATUS_RESPONSE_TYPE__INIT
\
{ PROTOBUF_C_MESSAGE_INIT
(&statusapi__status_response_type__descriptor) \
}
struct _Statusapi__StatusParams
{
ProtobufCMessage base;
protobuf_c_boolean has_zoom_status;
int32_t zoom_status;
protobuf_c_boolean has_focus_status;
int32_t focus_status;
};
#define
STATUSAPI__STATUS_PARAMS__INIT
\
{ PROTOBUF_C_MESSAGE_INIT
(&statusapi__status_params__descriptor) \
, 0,0, 0,0 }
/*
Statusapi__StatusRequestType methods */
void statusapi__status_request_type__init
(Statusapi__StatusRequestType *message);
size_t
statusapi__status_request_type__get_packed_size
(const
Statusapi__StatusRequestType
*message);
size_t
statusapi__status_request_type__pack
(const Statusapi__StatusRequestType *message,
uint8_t *out);
size_t
statusapi__status_request_type__pack_to_buffer
(const
Statusapi__StatusRequestType
*message,
ProtobufCBuffer *buffer);
Statusapi__StatusRequestType
*
statusapi__status_request_type__unpack
(ProtobufCAllocator *allocator,
size_t len,
const uint8_t *data);
void statusapi__status_request_type__free_unpacked
(Statusapi__StatusRequestType *message,
ProtobufCAllocator
*allocator);
/*
Statusapi__StatusResponseType methods */
void statusapi__status_response_type__init
(Statusapi__StatusResponseType *message);
size_t
statusapi__status_response_type__get_packed_size
(const
Statusapi__StatusResponseType
*message);
size_t
statusapi__status_response_type__pack
(const Statusapi__StatusResponseType *message,
uint8_t *out);
size_t
statusapi__status_response_type__pack_to_buffer
(const
Statusapi__StatusResponseType
*message,
ProtobufCBuffer *buffer);
Statusapi__StatusResponseType
*
statusapi__status_response_type__unpack
(ProtobufCAllocator *allocator,
size_t len,
const uint8_t *data);
void statusapi__status_response_type__free_unpacked
(Statusapi__StatusResponseType *message,
ProtobufCAllocator
*allocator);
/*
Statusapi__StatusParams methods */
void statusapi__status_params__init
(Statusapi__StatusParams
*message);
size_t
statusapi__status_params__get_packed_size
(const
Statusapi__StatusParams *message);
size_t
statusapi__status_params__pack
(const Statusapi__StatusParams *message,
uint8_t *out);
size_t
statusapi__status_params__pack_to_buffer
(const
Statusapi__StatusParams *message,
ProtobufCBuffer *buffer);
Statusapi__StatusParams
*
statusapi__status_params__unpack
(ProtobufCAllocator *allocator,
size_t len,
const uint8_t *data);
void statusapi__status_params__free_unpacked
(Statusapi__StatusParams
*message,
ProtobufCAllocator
*allocator);
/* ---
per-message closures --- */
typedef
void (*Statusapi__StatusRequestType_Closure)
(const
Statusapi__StatusRequestType *message,
void *closure_data);
typedef
void (*Statusapi__StatusResponseType_Closure)
(const
Statusapi__StatusResponseType *message,
void *closure_data);
typedef
void (*Statusapi__StatusParams_Closure)
(const
Statusapi__StatusParams *message,
void *closure_data);
/* ---
services --- */
typedef
struct _Statusapi__Status_Service Statusapi__Status_Service;
struct
_Statusapi__Status_Service
{
ProtobufCService base;
void
(*set_status)(Statusapi__Status_Service *service,
const
Statusapi__StatusParams *input,
Statusapi__StatusResponseType_Closure closure,
void *closure_data);
void (*get_status)(Statusapi__Status_Service
*service,
const
Statusapi__StatusRequestType *input,
Statusapi__StatusParams_Closure closure,
void *closure_data);
};
typedef
void (*Statusapi__Status_ServiceDestroy)(Statusapi__Status_Service *);
void
statusapi__status__init (Statusapi__Status_Service *service,
Statusapi__Status_ServiceDestroy destroy);
#define
STATUSAPI__STATUS__BASE_INIT \
{ &statusapi__status__descriptor,
protobuf_c_service_invoke_internal, NULL }
#define
STATUSAPI__STATUS__INIT(function_prefix__) \
{ STATUSAPI__STATUS__BASE_INIT,\
function_prefix__ ## set_status,\
function_prefix__ ## get_status }
void
statusapi__status__set_status(ProtobufCService *service,
const
Statusapi__StatusParams *input,
Statusapi__StatusResponseType_Closure closure,
void
*closure_data);
void
statusapi__status__get_status(ProtobufCService *service,
const
Statusapi__StatusRequestType *input,
Statusapi__StatusParams_Closure closure,
void *closure_data);
/* ---
descriptors --- */
extern
const ProtobufCMessageDescriptor statusapi__status_request_type__descriptor;
extern
const ProtobufCMessageDescriptor statusapi__status_response_type__descriptor;
extern
const ProtobufCMessageDescriptor statusapi__status_params__descriptor;
extern
const ProtobufCServiceDescriptor statusapi__status__descriptor;
PROTOBUF_C_END_DECLS
#endif /* PROTOBUF_statusapi_2eproto__INCLUDED */
|