/* Generated by the protocol buffer compiler.  DO NOT EDIT! */
/* Generated from: ipc-msg.proto */

#ifndef PROTOBUF_C_ipc_2dmsg_2eproto__INCLUDED
#define PROTOBUF_C_ipc_2dmsg_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 protobuf-c which is incompatible with your libprotobuf-c headers. Please update your headers.
#elif 1005002 < PROTOBUF_C_MIN_COMPILER_VERSION
# error This file was generated by an older version of protobuf-c which is incompatible with your libprotobuf-c headers. Please regenerate this file with a newer version of protobuf-c.
#endif

#include "ipc-desc.pb-c.h"

typedef struct IpcMsg IpcMsg;
typedef struct IpcMsgEntry IpcMsgEntry;


/* --- enums --- */


/* --- messages --- */

struct  IpcMsg
{
  ProtobufCMessage base;
  uint64_t mtype;
  uint32_t msize;
};
#define IPC_MSG__INIT \
 { PROTOBUF_C_MESSAGE_INIT (&ipc_msg__descriptor) \
, 0, 0 }


struct  IpcMsgEntry
{
  ProtobufCMessage base;
  IpcDescEntry *desc;
  uint32_t qbytes;
  uint32_t qnum;
};
#define IPC_MSG_ENTRY__INIT \
 { PROTOBUF_C_MESSAGE_INIT (&ipc_msg_entry__descriptor) \
, NULL, 0, 0 }


/* IpcMsg methods */
void   ipc_msg__init
                     (IpcMsg         *message);
size_t ipc_msg__get_packed_size
                     (const IpcMsg   *message);
size_t ipc_msg__pack
                     (const IpcMsg   *message,
                      uint8_t             *out);
size_t ipc_msg__pack_to_buffer
                     (const IpcMsg   *message,
                      ProtobufCBuffer     *buffer);
IpcMsg *
       ipc_msg__unpack
                     (ProtobufCAllocator  *allocator,
                      size_t               len,
                      const uint8_t       *data);
void   ipc_msg__free_unpacked
                     (IpcMsg *message,
                      ProtobufCAllocator *allocator);
/* IpcMsgEntry methods */
void   ipc_msg_entry__init
                     (IpcMsgEntry         *message);
size_t ipc_msg_entry__get_packed_size
                     (const IpcMsgEntry   *message);
size_t ipc_msg_entry__pack
                     (const IpcMsgEntry   *message,
                      uint8_t             *out);
size_t ipc_msg_entry__pack_to_buffer
                     (const IpcMsgEntry   *message,
                      ProtobufCBuffer     *buffer);
IpcMsgEntry *
       ipc_msg_entry__unpack
                     (ProtobufCAllocator  *allocator,
                      size_t               len,
                      const uint8_t       *data);
void   ipc_msg_entry__free_unpacked
                     (IpcMsgEntry *message,
                      ProtobufCAllocator *allocator);
/* --- per-message closures --- */

typedef void (*IpcMsg_Closure)
                 (const IpcMsg *message,
                  void *closure_data);
typedef void (*IpcMsgEntry_Closure)
                 (const IpcMsgEntry *message,
                  void *closure_data);

/* --- services --- */


/* --- descriptors --- */

extern const ProtobufCMessageDescriptor ipc_msg__descriptor;
extern const ProtobufCMessageDescriptor ipc_msg_entry__descriptor;

PROTOBUF_C__END_DECLS


#endif  /* PROTOBUF_C_ipc_2dmsg_2eproto__INCLUDED */
