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

#ifndef PROTOBUF_C_fh_2eproto__INCLUDED
#define PROTOBUF_C_fh_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 FhEntry FhEntry;
typedef struct IrmapCacheEntry IrmapCacheEntry;


/* --- enums --- */

typedef enum _FhEntrySizes {
  FH_ENTRY_SIZES__min_entries = 16
    PROTOBUF_C__FORCE_ENUM_TO_BE_INT_SIZE(FH_ENTRY_SIZES)
} FhEntrySizes;

/* --- messages --- */

struct  FhEntry
{
  ProtobufCMessage base;
  uint32_t bytes;
  uint32_t type;
  /*
   * The minimum is fh_n_handle repetitions 
   */
  size_t n_handle;
  uint64_t *handle;
  char *path;
  protobuf_c_boolean has_mnt_id;
  uint32_t mnt_id;
};
#define FH_ENTRY__INIT \
 { PROTOBUF_C_MESSAGE_INIT (&fh_entry__descriptor) \
, 0, 0, 0,NULL, NULL, 0, 0 }


struct  IrmapCacheEntry
{
  ProtobufCMessage base;
  uint32_t dev;
  uint64_t inode;
  char *path;
};
#define IRMAP_CACHE_ENTRY__INIT \
 { PROTOBUF_C_MESSAGE_INIT (&irmap_cache_entry__descriptor) \
, 0, 0, NULL }


/* FhEntry methods */
void   fh_entry__init
                     (FhEntry         *message);
size_t fh_entry__get_packed_size
                     (const FhEntry   *message);
size_t fh_entry__pack
                     (const FhEntry   *message,
                      uint8_t             *out);
size_t fh_entry__pack_to_buffer
                     (const FhEntry   *message,
                      ProtobufCBuffer     *buffer);
FhEntry *
       fh_entry__unpack
                     (ProtobufCAllocator  *allocator,
                      size_t               len,
                      const uint8_t       *data);
void   fh_entry__free_unpacked
                     (FhEntry *message,
                      ProtobufCAllocator *allocator);
/* IrmapCacheEntry methods */
void   irmap_cache_entry__init
                     (IrmapCacheEntry         *message);
size_t irmap_cache_entry__get_packed_size
                     (const IrmapCacheEntry   *message);
size_t irmap_cache_entry__pack
                     (const IrmapCacheEntry   *message,
                      uint8_t             *out);
size_t irmap_cache_entry__pack_to_buffer
                     (const IrmapCacheEntry   *message,
                      ProtobufCBuffer     *buffer);
IrmapCacheEntry *
       irmap_cache_entry__unpack
                     (ProtobufCAllocator  *allocator,
                      size_t               len,
                      const uint8_t       *data);
void   irmap_cache_entry__free_unpacked
                     (IrmapCacheEntry *message,
                      ProtobufCAllocator *allocator);
/* --- per-message closures --- */

typedef void (*FhEntry_Closure)
                 (const FhEntry *message,
                  void *closure_data);
typedef void (*IrmapCacheEntry_Closure)
                 (const IrmapCacheEntry *message,
                  void *closure_data);

/* --- services --- */


/* --- descriptors --- */

extern const ProtobufCEnumDescriptor    fh_entry_sizes__descriptor;
extern const ProtobufCMessageDescriptor fh_entry__descriptor;
extern const ProtobufCMessageDescriptor irmap_cache_entry__descriptor;

PROTOBUF_C__END_DECLS


#endif  /* PROTOBUF_C_fh_2eproto__INCLUDED */
