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

#ifndef PROTOBUF_C_sk_2dopts_2eproto__INCLUDED
#define PROTOBUF_C_sk_2dopts_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


typedef struct SkOptsEntry SkOptsEntry;


/* --- enums --- */

typedef enum _SkShutdown {
  SK_SHUTDOWN__NONE = 0,
  SK_SHUTDOWN__READ = 1,
  SK_SHUTDOWN__WRITE = 2,
  SK_SHUTDOWN__BOTH = 3
    PROTOBUF_C__FORCE_ENUM_TO_BE_INT_SIZE(SK_SHUTDOWN)
} SkShutdown;

/* --- messages --- */

struct  SkOptsEntry
{
  ProtobufCMessage base;
  uint32_t so_sndbuf;
  uint32_t so_rcvbuf;
  uint64_t so_snd_tmo_sec;
  uint64_t so_snd_tmo_usec;
  uint64_t so_rcv_tmo_sec;
  uint64_t so_rcv_tmo_usec;
  protobuf_c_boolean has_reuseaddr;
  protobuf_c_boolean reuseaddr;
  protobuf_c_boolean has_so_priority;
  uint32_t so_priority;
  protobuf_c_boolean has_so_rcvlowat;
  uint32_t so_rcvlowat;
  protobuf_c_boolean has_so_mark;
  uint32_t so_mark;
  protobuf_c_boolean has_so_passcred;
  protobuf_c_boolean so_passcred;
  protobuf_c_boolean has_so_passsec;
  protobuf_c_boolean so_passsec;
  protobuf_c_boolean has_so_dontroute;
  protobuf_c_boolean so_dontroute;
  protobuf_c_boolean has_so_no_check;
  protobuf_c_boolean so_no_check;
  char *so_bound_dev;
  size_t n_so_filter;
  uint64_t *so_filter;
  protobuf_c_boolean has_so_reuseport;
  protobuf_c_boolean so_reuseport;
  protobuf_c_boolean has_so_broadcast;
  protobuf_c_boolean so_broadcast;
  protobuf_c_boolean has_so_keepalive;
  protobuf_c_boolean so_keepalive;
  /*
   * These three are deprecated, use tcp_opts_entry instead 
   */
  protobuf_c_boolean has_tcp_keepcnt;
  uint32_t tcp_keepcnt;
  protobuf_c_boolean has_tcp_keepidle;
  uint32_t tcp_keepidle;
  protobuf_c_boolean has_tcp_keepintvl;
  uint32_t tcp_keepintvl;
  protobuf_c_boolean has_so_oobinline;
  uint32_t so_oobinline;
  protobuf_c_boolean has_so_linger;
  uint32_t so_linger;
  protobuf_c_boolean has_so_buf_lock;
  uint32_t so_buf_lock;
};
#define SK_OPTS_ENTRY__INIT \
 { PROTOBUF_C_MESSAGE_INIT (&sk_opts_entry__descriptor) \
, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, NULL, 0,NULL, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 }


/* SkOptsEntry methods */
void   sk_opts_entry__init
                     (SkOptsEntry         *message);
size_t sk_opts_entry__get_packed_size
                     (const SkOptsEntry   *message);
size_t sk_opts_entry__pack
                     (const SkOptsEntry   *message,
                      uint8_t             *out);
size_t sk_opts_entry__pack_to_buffer
                     (const SkOptsEntry   *message,
                      ProtobufCBuffer     *buffer);
SkOptsEntry *
       sk_opts_entry__unpack
                     (ProtobufCAllocator  *allocator,
                      size_t               len,
                      const uint8_t       *data);
void   sk_opts_entry__free_unpacked
                     (SkOptsEntry *message,
                      ProtobufCAllocator *allocator);
/* --- per-message closures --- */

typedef void (*SkOptsEntry_Closure)
                 (const SkOptsEntry *message,
                  void *closure_data);

/* --- services --- */


/* --- descriptors --- */

extern const ProtobufCEnumDescriptor    sk_shutdown__descriptor;
extern const ProtobufCMessageDescriptor sk_opts_entry__descriptor;

PROTOBUF_C__END_DECLS


#endif  /* PROTOBUF_C_sk_2dopts_2eproto__INCLUDED */
