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

#ifndef PROTOBUF_C_core_2dloongarch64_2eproto__INCLUDED
#define PROTOBUF_C_core_2dloongarch64_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 UserLoongarch64GpregsEntry UserLoongarch64GpregsEntry;
typedef struct UserLoongarch64FpregsEntry UserLoongarch64FpregsEntry;
typedef struct ThreadInfoLoongarch64 ThreadInfoLoongarch64;


/* --- enums --- */


/* --- messages --- */

struct  UserLoongarch64GpregsEntry
{
  ProtobufCMessage base;
  size_t n_regs;
  uint64_t *regs;
  uint64_t pc;
};
#define USER_LOONGARCH64_GPREGS_ENTRY__INIT \
 { PROTOBUF_C_MESSAGE_INIT (&user_loongarch64_gpregs_entry__descriptor) \
, 0,NULL, 0 }


struct  UserLoongarch64FpregsEntry
{
  ProtobufCMessage base;
  size_t n_regs;
  uint64_t *regs;
  uint64_t fcc;
  uint32_t fcsr;
};
#define USER_LOONGARCH64_FPREGS_ENTRY__INIT \
 { PROTOBUF_C_MESSAGE_INIT (&user_loongarch64_fpregs_entry__descriptor) \
, 0,NULL, 0, 0 }


struct  ThreadInfoLoongarch64
{
  ProtobufCMessage base;
  uint64_t clear_tid_addr;
  uint64_t tls;
  UserLoongarch64GpregsEntry *gpregs;
  UserLoongarch64FpregsEntry *fpregs;
};
#define THREAD_INFO_LOONGARCH64__INIT \
 { PROTOBUF_C_MESSAGE_INIT (&thread_info_loongarch64__descriptor) \
, 0, 0, NULL, NULL }


/* UserLoongarch64GpregsEntry methods */
void   user_loongarch64_gpregs_entry__init
                     (UserLoongarch64GpregsEntry         *message);
size_t user_loongarch64_gpregs_entry__get_packed_size
                     (const UserLoongarch64GpregsEntry   *message);
size_t user_loongarch64_gpregs_entry__pack
                     (const UserLoongarch64GpregsEntry   *message,
                      uint8_t             *out);
size_t user_loongarch64_gpregs_entry__pack_to_buffer
                     (const UserLoongarch64GpregsEntry   *message,
                      ProtobufCBuffer     *buffer);
UserLoongarch64GpregsEntry *
       user_loongarch64_gpregs_entry__unpack
                     (ProtobufCAllocator  *allocator,
                      size_t               len,
                      const uint8_t       *data);
void   user_loongarch64_gpregs_entry__free_unpacked
                     (UserLoongarch64GpregsEntry *message,
                      ProtobufCAllocator *allocator);
/* UserLoongarch64FpregsEntry methods */
void   user_loongarch64_fpregs_entry__init
                     (UserLoongarch64FpregsEntry         *message);
size_t user_loongarch64_fpregs_entry__get_packed_size
                     (const UserLoongarch64FpregsEntry   *message);
size_t user_loongarch64_fpregs_entry__pack
                     (const UserLoongarch64FpregsEntry   *message,
                      uint8_t             *out);
size_t user_loongarch64_fpregs_entry__pack_to_buffer
                     (const UserLoongarch64FpregsEntry   *message,
                      ProtobufCBuffer     *buffer);
UserLoongarch64FpregsEntry *
       user_loongarch64_fpregs_entry__unpack
                     (ProtobufCAllocator  *allocator,
                      size_t               len,
                      const uint8_t       *data);
void   user_loongarch64_fpregs_entry__free_unpacked
                     (UserLoongarch64FpregsEntry *message,
                      ProtobufCAllocator *allocator);
/* ThreadInfoLoongarch64 methods */
void   thread_info_loongarch64__init
                     (ThreadInfoLoongarch64         *message);
size_t thread_info_loongarch64__get_packed_size
                     (const ThreadInfoLoongarch64   *message);
size_t thread_info_loongarch64__pack
                     (const ThreadInfoLoongarch64   *message,
                      uint8_t             *out);
size_t thread_info_loongarch64__pack_to_buffer
                     (const ThreadInfoLoongarch64   *message,
                      ProtobufCBuffer     *buffer);
ThreadInfoLoongarch64 *
       thread_info_loongarch64__unpack
                     (ProtobufCAllocator  *allocator,
                      size_t               len,
                      const uint8_t       *data);
void   thread_info_loongarch64__free_unpacked
                     (ThreadInfoLoongarch64 *message,
                      ProtobufCAllocator *allocator);
/* --- per-message closures --- */

typedef void (*UserLoongarch64GpregsEntry_Closure)
                 (const UserLoongarch64GpregsEntry *message,
                  void *closure_data);
typedef void (*UserLoongarch64FpregsEntry_Closure)
                 (const UserLoongarch64FpregsEntry *message,
                  void *closure_data);
typedef void (*ThreadInfoLoongarch64_Closure)
                 (const ThreadInfoLoongarch64 *message,
                  void *closure_data);

/* --- services --- */


/* --- descriptors --- */

extern const ProtobufCMessageDescriptor user_loongarch64_gpregs_entry__descriptor;
extern const ProtobufCMessageDescriptor user_loongarch64_fpregs_entry__descriptor;
extern const ProtobufCMessageDescriptor thread_info_loongarch64__descriptor;

PROTOBUF_C__END_DECLS


#endif  /* PROTOBUF_C_core_2dloongarch64_2eproto__INCLUDED */
