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

#ifndef PROTOBUF_C_tun_2eproto__INCLUDED
#define PROTOBUF_C_tun_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 "opts.pb-c.h"

typedef struct TunfileEntry TunfileEntry;
typedef struct TunLinkEntry TunLinkEntry;


/* --- enums --- */


/* --- messages --- */

struct  TunfileEntry
{
  ProtobufCMessage base;
  uint32_t id;
  char *netdev;
  protobuf_c_boolean has_detached;
  protobuf_c_boolean detached;
  protobuf_c_boolean has_ns_id;
  uint32_t ns_id;
};
#define TUNFILE_ENTRY__INIT \
 { PROTOBUF_C_MESSAGE_INIT (&tunfile_entry__descriptor) \
, 0, NULL, 0, 0, 0, 0 }


struct  TunLinkEntry
{
  ProtobufCMessage base;
  uint32_t flags;
  int32_t owner;
  int32_t group;
  uint32_t vnethdr;
  uint32_t sndbuf;
};
#define TUN_LINK_ENTRY__INIT \
 { PROTOBUF_C_MESSAGE_INIT (&tun_link_entry__descriptor) \
, 0, 0, 0, 0, 0 }


/* TunfileEntry methods */
void   tunfile_entry__init
                     (TunfileEntry         *message);
size_t tunfile_entry__get_packed_size
                     (const TunfileEntry   *message);
size_t tunfile_entry__pack
                     (const TunfileEntry   *message,
                      uint8_t             *out);
size_t tunfile_entry__pack_to_buffer
                     (const TunfileEntry   *message,
                      ProtobufCBuffer     *buffer);
TunfileEntry *
       tunfile_entry__unpack
                     (ProtobufCAllocator  *allocator,
                      size_t               len,
                      const uint8_t       *data);
void   tunfile_entry__free_unpacked
                     (TunfileEntry *message,
                      ProtobufCAllocator *allocator);
/* TunLinkEntry methods */
void   tun_link_entry__init
                     (TunLinkEntry         *message);
size_t tun_link_entry__get_packed_size
                     (const TunLinkEntry   *message);
size_t tun_link_entry__pack
                     (const TunLinkEntry   *message,
                      uint8_t             *out);
size_t tun_link_entry__pack_to_buffer
                     (const TunLinkEntry   *message,
                      ProtobufCBuffer     *buffer);
TunLinkEntry *
       tun_link_entry__unpack
                     (ProtobufCAllocator  *allocator,
                      size_t               len,
                      const uint8_t       *data);
void   tun_link_entry__free_unpacked
                     (TunLinkEntry *message,
                      ProtobufCAllocator *allocator);
/* --- per-message closures --- */

typedef void (*TunfileEntry_Closure)
                 (const TunfileEntry *message,
                  void *closure_data);
typedef void (*TunLinkEntry_Closure)
                 (const TunLinkEntry *message,
                  void *closure_data);

/* --- services --- */


/* --- descriptors --- */

extern const ProtobufCMessageDescriptor tunfile_entry__descriptor;
extern const ProtobufCMessageDescriptor tun_link_entry__descriptor;

PROTOBUF_C__END_DECLS


#endif  /* PROTOBUF_C_tun_2eproto__INCLUDED */
