#include <ctype.h>
#include <errno.h>
#include <ruby/version.h>
#include "convert.h"
#include "message.h"
#include "protobuf.h"
Go to the source code of this file.
Classes | |
struct | Descriptor |
struct | DescriptorPool |
struct | EnumDescriptor |
struct | FieldDescriptor |
struct | FileDescriptor |
struct | OneofDescriptor |
Macros | |
#define | CONVERT(upb, ruby) |
#define | CONVERT(upb, ruby) case UPB_DESCRIPTOR_TYPE_ ## upb : return ID2SYM(rb_intern( # ruby )); |
#define | CONVERT(upb, ruby) case UPB_LABEL_ ## upb : return ID2SYM(rb_intern( # ruby )); |
Functions | |
void | Defs_register (VALUE module) |
static VALUE | Descriptor_alloc (VALUE klass) |
VALUE | Descriptor_DefToClass (const upb_msgdef *m) |
static VALUE | Descriptor_each (VALUE _self) |
static VALUE | Descriptor_each_oneof (VALUE _self) |
static VALUE | Descriptor_file_descriptor (VALUE _self) |
const upb_msgdef * | Descriptor_GetMsgDef (VALUE desc_rb) |
static VALUE | Descriptor_initialize (VALUE _self, VALUE cookie, VALUE descriptor_pool, VALUE ptr) |
static VALUE | Descriptor_lookup (VALUE _self, VALUE name) |
static VALUE | Descriptor_lookup_oneof (VALUE _self, VALUE name) |
static void | Descriptor_mark (void *_self) |
static VALUE | Descriptor_msgclass (VALUE _self) |
static VALUE | Descriptor_name (VALUE _self) |
static void | Descriptor_register (VALUE module) |
VALUE | DescriptorPool_add_serialized_file (VALUE _self, VALUE serialized_file_proto) |
static VALUE | DescriptorPool_alloc (VALUE klass) |
static void | DescriptorPool_free (void *_self) |
static VALUE | DescriptorPool_generated_pool (VALUE _self) |
const upb_symtab * | DescriptorPool_GetSymtab (VALUE desc_pool_rb) |
static VALUE | DescriptorPool_lookup (VALUE _self, VALUE name) |
static void | DescriptorPool_mark (void *_self) |
static void | DescriptorPool_register (VALUE module) |
static VALUE | descriptortype_to_ruby (upb_descriptortype_t type) |
static VALUE | EnumDescriptor_alloc (VALUE klass) |
static VALUE | EnumDescriptor_each (VALUE _self) |
static VALUE | EnumDescriptor_enummodule (VALUE _self) |
static VALUE | EnumDescriptor_file_descriptor (VALUE _self) |
const upb_enumdef * | EnumDescriptor_GetEnumDef (VALUE enum_desc_rb) |
static VALUE | EnumDescriptor_initialize (VALUE _self, VALUE cookie, VALUE descriptor_pool, VALUE ptr) |
static VALUE | EnumDescriptor_lookup_name (VALUE _self, VALUE name) |
static VALUE | EnumDescriptor_lookup_value (VALUE _self, VALUE number) |
static void | EnumDescriptor_mark (void *_self) |
static VALUE | EnumDescriptor_name (VALUE _self) |
static void | EnumDescriptor_register (VALUE module) |
static VALUE | FieldDescriptor__type (VALUE _self) |
static VALUE | FieldDescriptor_alloc (VALUE klass) |
static VALUE | FieldDescriptor_clear (VALUE _self, VALUE msg_rb) |
static VALUE | FieldDescriptor_default (VALUE _self) |
static VALUE | FieldDescriptor_get (VALUE _self, VALUE msg_rb) |
static VALUE | FieldDescriptor_has (VALUE _self, VALUE msg_rb) |
static VALUE | FieldDescriptor_initialize (VALUE _self, VALUE cookie, VALUE descriptor_pool, VALUE ptr) |
static VALUE | FieldDescriptor_json_name (VALUE _self) |
static VALUE | FieldDescriptor_label (VALUE _self) |
static void | FieldDescriptor_mark (void *_self) |
static VALUE | FieldDescriptor_name (VALUE _self) |
static VALUE | FieldDescriptor_number (VALUE _self) |
static void | FieldDescriptor_register (VALUE module) |
static VALUE | FieldDescriptor_set (VALUE _self, VALUE msg_rb, VALUE value) |
static VALUE | FieldDescriptor_submsg_name (VALUE _self) |
static VALUE | FieldDescriptor_subtype (VALUE _self) |
static VALUE | FileDescriptor_alloc (VALUE klass) |
static VALUE | FileDescriptor_initialize (VALUE _self, VALUE cookie, VALUE descriptor_pool, VALUE ptr) |
static void | FileDescriptor_mark (void *_self) |
static VALUE | FileDescriptor_name (VALUE _self) |
static void | FileDescriptor_register (VALUE module) |
static VALUE | FileDescriptor_syntax (VALUE _self) |
static VALUE | get_def_obj (VALUE _descriptor_pool, const void *ptr, VALUE klass) |
static VALUE | get_enumdef_obj (VALUE descriptor_pool, const upb_enumdef *def) |
static VALUE | get_fielddef_obj (VALUE descriptor_pool, const upb_fielddef *def) |
static VALUE | get_filedef_obj (VALUE descriptor_pool, const upb_filedef *def) |
static VALUE | get_msgdef_obj (VALUE descriptor_pool, const upb_msgdef *def) |
static VALUE | get_oneofdef_obj (VALUE descriptor_pool, const upb_oneofdef *def) |
static const char * | get_str (VALUE str) |
static VALUE | OneofDescriptor_alloc (VALUE klass) |
static VALUE | OneofDescriptor_each (VALUE _self) |
static VALUE | OneofDescriptor_initialize (VALUE _self, VALUE cookie, VALUE descriptor_pool, VALUE ptr) |
static void | OneofDescriptor_mark (void *_self) |
static VALUE | OneofDescriptor_name (VALUE _self) |
static void | OneofDescriptor_register (VALUE module) |
static VALUE | rb_str_maybe_null (const char *s) |
static Descriptor * | ruby_to_Descriptor (VALUE val) |
static DescriptorPool * | ruby_to_DescriptorPool (VALUE val) |
static EnumDescriptor * | ruby_to_EnumDescriptor (VALUE val) |
static FieldDescriptor * | ruby_to_FieldDescriptor (VALUE val) |
upb_fieldtype_t | ruby_to_fieldtype (VALUE type) |
static FileDescriptor * | ruby_to_FileDescriptor (VALUE val) |
static OneofDescriptor * | ruby_to_OneofDescriptor (VALUE val) |
TypeInfo | TypeInfo_FromClass (int argc, VALUE *argv, int skip_arg, VALUE *type_class, VALUE *init_arg) |
VALUE | TypeInfo_InitArg (int argc, VALUE *argv, int skip_arg) |
Variables | |
VALUE | c_only_cookie = Qnil |
VALUE | cDescriptor = Qnil |
VALUE | cDescriptorPool = Qnil |
static VALUE | cEnumDescriptor = Qnil |
static VALUE | cFieldDescriptor = Qnil |
static VALUE | cFileDescriptor = Qnil |
static VALUE | cOneofDescriptor = Qnil |
static const rb_data_type_t | Descriptor_type |
static const rb_data_type_t | DescriptorPool_type |
static const rb_data_type_t | EnumDescriptor_type |
static const rb_data_type_t | FieldDescriptor_type |
static const rb_data_type_t | FileDescriptor_type |
VALUE | generated_pool = Qnil |
static const rb_data_type_t | OneofDescriptor_type |
#define CONVERT | ( | upb, | |
ruby | |||
) |
#define CONVERT | ( | upb, | |
ruby | |||
) | case UPB_DESCRIPTOR_TYPE_ ## upb : return ID2SYM(rb_intern( # ruby )); |
#define CONVERT | ( | upb, | |
ruby | |||
) | case UPB_LABEL_ ## upb : return ID2SYM(rb_intern( # ruby )); |
void Defs_register | ( | VALUE | module | ) |
Definition at line 1274 of file protobuf/ruby/ext/google/protobuf_c/defs.c.
|
static |
Definition at line 259 of file protobuf/ruby/ext/google/protobuf_c/defs.c.
VALUE Descriptor_DefToClass | ( | const upb_msgdef * | m | ) |
Definition at line 1213 of file protobuf/ruby/ext/google/protobuf_c/defs.c.
|
static |
Definition at line 318 of file protobuf/ruby/ext/google/protobuf_c/defs.c.
|
static |
Definition at line 356 of file protobuf/ruby/ext/google/protobuf_c/defs.c.
|
static |
Definition at line 295 of file protobuf/ruby/ext/google/protobuf_c/defs.c.
const upb_msgdef* Descriptor_GetMsgDef | ( | VALUE | desc_rb | ) |
Definition at line 1222 of file protobuf/ruby/ext/google/protobuf_c/defs.c.
|
static |
Definition at line 274 of file protobuf/ruby/ext/google/protobuf_c/defs.c.
|
static |
Definition at line 339 of file protobuf/ruby/ext/google/protobuf_c/defs.c.
|
static |
Definition at line 377 of file protobuf/ruby/ext/google/protobuf_c/defs.c.
|
static |
Definition at line 232 of file protobuf/ruby/ext/google/protobuf_c/defs.c.
|
static |
Definition at line 393 of file protobuf/ruby/ext/google/protobuf_c/defs.c.
|
static |
Definition at line 307 of file protobuf/ruby/ext/google/protobuf_c/defs.c.
|
static |
Definition at line 401 of file protobuf/ruby/ext/google/protobuf_c/defs.c.
VALUE DescriptorPool_add_serialized_file | ( | VALUE | _self, |
VALUE | serialized_file_proto | ||
) |
Definition at line 141 of file protobuf/ruby/ext/google/protobuf_c/defs.c.
|
static |
Definition at line 121 of file protobuf/ruby/ext/google/protobuf_c/defs.c.
|
static |
Definition at line 91 of file protobuf/ruby/ext/google/protobuf_c/defs.c.
|
static |
Definition at line 200 of file protobuf/ruby/ext/google/protobuf_c/defs.c.
const upb_symtab* DescriptorPool_GetSymtab | ( | VALUE | desc_pool_rb | ) |
Definition at line 110 of file protobuf/ruby/ext/google/protobuf_c/defs.c.
|
static |
Definition at line 172 of file protobuf/ruby/ext/google/protobuf_c/defs.c.
|
static |
Definition at line 86 of file protobuf/ruby/ext/google/protobuf_c/defs.c.
|
static |
Definition at line 204 of file protobuf/ruby/ext/google/protobuf_c/defs.c.
|
static |
Definition at line 621 of file protobuf/ruby/ext/google/protobuf_c/defs.c.
|
static |
Definition at line 1019 of file protobuf/ruby/ext/google/protobuf_c/defs.c.
|
static |
Definition at line 1121 of file protobuf/ruby/ext/google/protobuf_c/defs.c.
|
static |
Definition at line 1142 of file protobuf/ruby/ext/google/protobuf_c/defs.c.
|
static |
Definition at line 1061 of file protobuf/ruby/ext/google/protobuf_c/defs.c.
const upb_enumdef* EnumDescriptor_GetEnumDef | ( | VALUE | enum_desc_rb | ) |
Definition at line 1029 of file protobuf/ruby/ext/google/protobuf_c/defs.c.
|
static |
Definition at line 1040 of file protobuf/ruby/ext/google/protobuf_c/defs.c.
|
static |
Definition at line 1085 of file protobuf/ruby/ext/google/protobuf_c/defs.c.
|
static |
Definition at line 1103 of file protobuf/ruby/ext/google/protobuf_c/defs.c.
|
static |
Definition at line 1001 of file protobuf/ruby/ext/google/protobuf_c/defs.c.
|
static |
Definition at line 1073 of file protobuf/ruby/ext/google/protobuf_c/defs.c.
|
static |
Definition at line 1150 of file protobuf/ruby/ext/google/protobuf_c/defs.c.
|
static |
Definition at line 658 of file protobuf/ruby/ext/google/protobuf_c/defs.c.
|
static |
Definition at line 553 of file protobuf/ruby/ext/google/protobuf_c/defs.c.
|
static |
Definition at line 824 of file protobuf/ruby/ext/google/protobuf_c/defs.c.
|
static |
Definition at line 669 of file protobuf/ruby/ext/google/protobuf_c/defs.c.
|
static |
Definition at line 784 of file protobuf/ruby/ext/google/protobuf_c/defs.c.
|
static |
Definition at line 804 of file protobuf/ruby/ext/google/protobuf_c/defs.c.
|
static |
Definition at line 566 of file protobuf/ruby/ext/google/protobuf_c/defs.c.
|
static |
Definition at line 688 of file protobuf/ruby/ext/google/protobuf_c/defs.c.
|
static |
Definition at line 704 of file protobuf/ruby/ext/google/protobuf_c/defs.c.
|
static |
Definition at line 529 of file protobuf/ruby/ext/google/protobuf_c/defs.c.
|
static |
Definition at line 587 of file protobuf/ruby/ext/google/protobuf_c/defs.c.
|
static |
Definition at line 726 of file protobuf/ruby/ext/google/protobuf_c/defs.c.
|
static |
Definition at line 862 of file protobuf/ruby/ext/google/protobuf_c/defs.c.
|
static |
Definition at line 845 of file protobuf/ruby/ext/google/protobuf_c/defs.c.
|
static |
Definition at line 740 of file protobuf/ruby/ext/google/protobuf_c/defs.c.
|
static |
Definition at line 763 of file protobuf/ruby/ext/google/protobuf_c/defs.c.
|
static |
Definition at line 446 of file protobuf/ruby/ext/google/protobuf_c/defs.c.
|
static |
Definition at line 461 of file protobuf/ruby/ext/google/protobuf_c/defs.c.
|
static |
Definition at line 429 of file protobuf/ruby/ext/google/protobuf_c/defs.c.
|
static |
Definition at line 482 of file protobuf/ruby/ext/google/protobuf_c/defs.c.
|
static |
Definition at line 507 of file protobuf/ruby/ext/google/protobuf_c/defs.c.
|
static |
Definition at line 497 of file protobuf/ruby/ext/google/protobuf_c/defs.c.
|
static |
Definition at line 1166 of file protobuf/ruby/ext/google/protobuf_c/defs.c.
|
static |
Definition at line 1191 of file protobuf/ruby/ext/google/protobuf_c/defs.c.
|
static |
Definition at line 1195 of file protobuf/ruby/ext/google/protobuf_c/defs.c.
|
static |
Definition at line 1199 of file protobuf/ruby/ext/google/protobuf_c/defs.c.
|
static |
Definition at line 1187 of file protobuf/ruby/ext/google/protobuf_c/defs.c.
|
static |
Definition at line 1203 of file protobuf/ruby/ext/google/protobuf_c/defs.c.
|
static |
Definition at line 59 of file protobuf/ruby/ext/google/protobuf_c/defs.c.
|
static |
Definition at line 918 of file protobuf/ruby/ext/google/protobuf_c/defs.c.
|
static |
Definition at line 964 of file protobuf/ruby/ext/google/protobuf_c/defs.c.
|
static |
Definition at line 932 of file protobuf/ruby/ext/google/protobuf_c/defs.c.
|
static |
Definition at line 894 of file protobuf/ruby/ext/google/protobuf_c/defs.c.
|
static |
Definition at line 953 of file protobuf/ruby/ext/google/protobuf_c/defs.c.
|
static |
Definition at line 977 of file protobuf/ruby/ext/google/protobuf_c/defs.c.
|
static |
Definition at line 64 of file protobuf/ruby/ext/google/protobuf_c/defs.c.
|
static |
Definition at line 244 of file protobuf/ruby/ext/google/protobuf_c/defs.c.
|
static |
Definition at line 103 of file protobuf/ruby/ext/google/protobuf_c/defs.c.
|
static |
Definition at line 1013 of file protobuf/ruby/ext/google/protobuf_c/defs.c.
|
static |
Definition at line 540 of file protobuf/ruby/ext/google/protobuf_c/defs.c.
upb_fieldtype_t ruby_to_fieldtype | ( | VALUE | type | ) |
Definition at line 593 of file protobuf/ruby/ext/google/protobuf_c/defs.c.
|
static |
Definition at line 440 of file protobuf/ruby/ext/google/protobuf_c/defs.c.
|
static |
Definition at line 905 of file protobuf/ruby/ext/google/protobuf_c/defs.c.
TypeInfo TypeInfo_FromClass | ( | int | argc, |
VALUE * | argv, | ||
int | skip_arg, | ||
VALUE * | type_class, | ||
VALUE * | init_arg | ||
) |
Definition at line 1238 of file protobuf/ruby/ext/google/protobuf_c/defs.c.
Definition at line 1227 of file protobuf/ruby/ext/google/protobuf_c/defs.c.
VALUE c_only_cookie = Qnil |
Definition at line 53 of file protobuf/ruby/ext/google/protobuf_c/defs.c.
VALUE cDescriptor = Qnil |
Definition at line 230 of file protobuf/ruby/ext/google/protobuf_c/defs.c.
VALUE cDescriptorPool = Qnil |
Definition at line 80 of file protobuf/ruby/ext/google/protobuf_c/defs.c.
|
static |
Definition at line 999 of file protobuf/ruby/ext/google/protobuf_c/defs.c.
|
static |
Definition at line 527 of file protobuf/ruby/ext/google/protobuf_c/defs.c.
|
static |
Definition at line 427 of file protobuf/ruby/ext/google/protobuf_c/defs.c.
|
static |
Definition at line 892 of file protobuf/ruby/ext/google/protobuf_c/defs.c.
|
static |
Definition at line 238 of file protobuf/ruby/ext/google/protobuf_c/defs.c.
|
static |
Definition at line 97 of file protobuf/ruby/ext/google/protobuf_c/defs.c.
|
static |
Definition at line 1007 of file protobuf/ruby/ext/google/protobuf_c/defs.c.
|
static |
Definition at line 534 of file protobuf/ruby/ext/google/protobuf_c/defs.c.
|
static |
Definition at line 434 of file protobuf/ruby/ext/google/protobuf_c/defs.c.
VALUE generated_pool = Qnil |
Definition at line 84 of file protobuf/ruby/ext/google/protobuf_c/defs.c.
|
static |
Definition at line 899 of file protobuf/ruby/ext/google/protobuf_c/defs.c.