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

#ifndef PROTOBUF_C_core_2driscv64_2eproto__INCLUDED
#define PROTOBUF_C_core_2driscv64_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 UserRiscv64RegsEntry UserRiscv64RegsEntry;
typedef struct UserRiscv64DExtEntry UserRiscv64DExtEntry;
typedef struct ThreadInfoRiscv64 ThreadInfoRiscv64;


/* --- enums --- */


/* --- messages --- */

/*
 * Refer to riscv-gnu-toolchain/linux-headers/include/asm/ptrace.h
 */
struct  UserRiscv64RegsEntry
{
  ProtobufCMessage base;
  uint64_t pc;
  uint64_t ra;
  uint64_t sp;
  uint64_t gp;
  uint64_t tp;
  uint64_t t0;
  uint64_t t1;
  uint64_t t2;
  uint64_t s0;
  uint64_t s1;
  uint64_t a0;
  uint64_t a1;
  uint64_t a2;
  uint64_t a3;
  uint64_t a4;
  uint64_t a5;
  uint64_t a6;
  uint64_t a7;
  uint64_t s2;
  uint64_t s3;
  uint64_t s4;
  uint64_t s5;
  uint64_t s6;
  uint64_t s7;
  uint64_t s8;
  uint64_t s9;
  uint64_t s10;
  uint64_t s11;
  uint64_t t3;
  uint64_t t4;
  uint64_t t5;
  uint64_t t6;
};
#define USER_RISCV64_REGS_ENTRY__INIT \
 { PROTOBUF_C_MESSAGE_INIT (&user_riscv64_regs_entry__descriptor) \
, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 }


struct  UserRiscv64DExtEntry
{
  ProtobufCMessage base;
  size_t n_f;
  uint64_t *f;
  uint32_t fcsr;
};
#define USER_RISCV64_D_EXT_ENTRY__INIT \
 { PROTOBUF_C_MESSAGE_INIT (&user_riscv64_d_ext_entry__descriptor) \
, 0,NULL, 0 }


struct  ThreadInfoRiscv64
{
  ProtobufCMessage base;
  uint64_t clear_tid_addr;
  uint64_t tls;
  UserRiscv64RegsEntry *gpregs;
  UserRiscv64DExtEntry *fpsimd;
};
#define THREAD_INFO_RISCV64__INIT \
 { PROTOBUF_C_MESSAGE_INIT (&thread_info_riscv64__descriptor) \
, 0, 0, NULL, NULL }


/* UserRiscv64RegsEntry methods */
void   user_riscv64_regs_entry__init
                     (UserRiscv64RegsEntry         *message);
size_t user_riscv64_regs_entry__get_packed_size
                     (const UserRiscv64RegsEntry   *message);
size_t user_riscv64_regs_entry__pack
                     (const UserRiscv64RegsEntry   *message,
                      uint8_t             *out);
size_t user_riscv64_regs_entry__pack_to_buffer
                     (const UserRiscv64RegsEntry   *message,
                      ProtobufCBuffer     *buffer);
UserRiscv64RegsEntry *
       user_riscv64_regs_entry__unpack
                     (ProtobufCAllocator  *allocator,
                      size_t               len,
                      const uint8_t       *data);
void   user_riscv64_regs_entry__free_unpacked
                     (UserRiscv64RegsEntry *message,
                      ProtobufCAllocator *allocator);
/* UserRiscv64DExtEntry methods */
void   user_riscv64_d_ext_entry__init
                     (UserRiscv64DExtEntry         *message);
size_t user_riscv64_d_ext_entry__get_packed_size
                     (const UserRiscv64DExtEntry   *message);
size_t user_riscv64_d_ext_entry__pack
                     (const UserRiscv64DExtEntry   *message,
                      uint8_t             *out);
size_t user_riscv64_d_ext_entry__pack_to_buffer
                     (const UserRiscv64DExtEntry   *message,
                      ProtobufCBuffer     *buffer);
UserRiscv64DExtEntry *
       user_riscv64_d_ext_entry__unpack
                     (ProtobufCAllocator  *allocator,
                      size_t               len,
                      const uint8_t       *data);
void   user_riscv64_d_ext_entry__free_unpacked
                     (UserRiscv64DExtEntry *message,
                      ProtobufCAllocator *allocator);
/* ThreadInfoRiscv64 methods */
void   thread_info_riscv64__init
                     (ThreadInfoRiscv64         *message);
size_t thread_info_riscv64__get_packed_size
                     (const ThreadInfoRiscv64   *message);
size_t thread_info_riscv64__pack
                     (const ThreadInfoRiscv64   *message,
                      uint8_t             *out);
size_t thread_info_riscv64__pack_to_buffer
                     (const ThreadInfoRiscv64   *message,
                      ProtobufCBuffer     *buffer);
ThreadInfoRiscv64 *
       thread_info_riscv64__unpack
                     (ProtobufCAllocator  *allocator,
                      size_t               len,
                      const uint8_t       *data);
void   thread_info_riscv64__free_unpacked
                     (ThreadInfoRiscv64 *message,
                      ProtobufCAllocator *allocator);
/* --- per-message closures --- */

typedef void (*UserRiscv64RegsEntry_Closure)
                 (const UserRiscv64RegsEntry *message,
                  void *closure_data);
typedef void (*UserRiscv64DExtEntry_Closure)
                 (const UserRiscv64DExtEntry *message,
                  void *closure_data);
typedef void (*ThreadInfoRiscv64_Closure)
                 (const ThreadInfoRiscv64 *message,
                  void *closure_data);

/* --- services --- */


/* --- descriptors --- */

extern const ProtobufCMessageDescriptor user_riscv64_regs_entry__descriptor;
extern const ProtobufCMessageDescriptor user_riscv64_d_ext_entry__descriptor;
extern const ProtobufCMessageDescriptor thread_info_riscv64__descriptor;

PROTOBUF_C__END_DECLS


#endif  /* PROTOBUF_C_core_2driscv64_2eproto__INCLUDED */
