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

#ifndef PROTOBUF_C_eventpoll_2eproto__INCLUDED
#define PROTOBUF_C_eventpoll_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 "fown.pb-c.h"

typedef struct EventpollTfdEntry EventpollTfdEntry;
typedef struct EventpollFileEntry EventpollFileEntry;


/* --- enums --- */


/* --- messages --- */

struct  EventpollTfdEntry
{
  ProtobufCMessage base;
  uint32_t id;
  uint32_t tfd;
  uint32_t events;
  uint64_t data;
  /*
   * to find dup'ed target files 
   */
  protobuf_c_boolean has_dev;
  uint32_t dev;
  protobuf_c_boolean has_inode;
  uint64_t inode;
  protobuf_c_boolean has_pos;
  uint64_t pos;
};
#define EVENTPOLL_TFD_ENTRY__INIT \
 { PROTOBUF_C_MESSAGE_INIT (&eventpoll_tfd_entry__descriptor) \
, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 }


struct  EventpollFileEntry
{
  ProtobufCMessage base;
  uint32_t id;
  uint32_t flags;
  FownEntry *fown;
  size_t n_tfd;
  EventpollTfdEntry **tfd;
};
#define EVENTPOLL_FILE_ENTRY__INIT \
 { PROTOBUF_C_MESSAGE_INIT (&eventpoll_file_entry__descriptor) \
, 0, 0, NULL, 0,NULL }


/* EventpollTfdEntry methods */
void   eventpoll_tfd_entry__init
                     (EventpollTfdEntry         *message);
size_t eventpoll_tfd_entry__get_packed_size
                     (const EventpollTfdEntry   *message);
size_t eventpoll_tfd_entry__pack
                     (const EventpollTfdEntry   *message,
                      uint8_t             *out);
size_t eventpoll_tfd_entry__pack_to_buffer
                     (const EventpollTfdEntry   *message,
                      ProtobufCBuffer     *buffer);
EventpollTfdEntry *
       eventpoll_tfd_entry__unpack
                     (ProtobufCAllocator  *allocator,
                      size_t               len,
                      const uint8_t       *data);
void   eventpoll_tfd_entry__free_unpacked
                     (EventpollTfdEntry *message,
                      ProtobufCAllocator *allocator);
/* EventpollFileEntry methods */
void   eventpoll_file_entry__init
                     (EventpollFileEntry         *message);
size_t eventpoll_file_entry__get_packed_size
                     (const EventpollFileEntry   *message);
size_t eventpoll_file_entry__pack
                     (const EventpollFileEntry   *message,
                      uint8_t             *out);
size_t eventpoll_file_entry__pack_to_buffer
                     (const EventpollFileEntry   *message,
                      ProtobufCBuffer     *buffer);
EventpollFileEntry *
       eventpoll_file_entry__unpack
                     (ProtobufCAllocator  *allocator,
                      size_t               len,
                      const uint8_t       *data);
void   eventpoll_file_entry__free_unpacked
                     (EventpollFileEntry *message,
                      ProtobufCAllocator *allocator);
/* --- per-message closures --- */

typedef void (*EventpollTfdEntry_Closure)
                 (const EventpollTfdEntry *message,
                  void *closure_data);
typedef void (*EventpollFileEntry_Closure)
                 (const EventpollFileEntry *message,
                  void *closure_data);

/* --- services --- */


/* --- descriptors --- */

extern const ProtobufCMessageDescriptor eventpoll_tfd_entry__descriptor;
extern const ProtobufCMessageDescriptor eventpoll_file_entry__descriptor;

PROTOBUF_C__END_DECLS


#endif  /* PROTOBUF_C_eventpoll_2eproto__INCLUDED */
