diff options
author | Adam Greene <adam.greene@gmail.com> | 2015-05-03 10:55:10 -0700 |
---|---|---|
committer | Adam Greene <adam.greene@gmail.com> | 2015-05-13 10:03:56 -0700 |
commit | d1b52a00e002fd7a4adbcdeafa0634de6088a88f (patch) | |
tree | fe21dea8131562f7ff974edaf3c92edb4a5b465f /ruby/ext/google/protobuf_c/protobuf.h | |
parent | 23bb79d4a32a77e8349d6c49052be1e56a8b8153 (diff) | |
download | protobuf-d1b52a00e002fd7a4adbcdeafa0634de6088a88f.tar.gz protobuf-d1b52a00e002fd7a4adbcdeafa0634de6088a88f.tar.bz2 protobuf-d1b52a00e002fd7a4adbcdeafa0634de6088a88f.zip |
adding and simplifying encoders/decoders
* make consistent between mri and jruby
* create a #to_h and have it use symbols for keys
* add #to_json and #to_proto helpers on the Google::Protobuf message classes
Diffstat (limited to 'ruby/ext/google/protobuf_c/protobuf.h')
-rw-r--r-- | ruby/ext/google/protobuf_c/protobuf.h | 6 |
1 files changed, 1 insertions, 5 deletions
diff --git a/ruby/ext/google/protobuf_c/protobuf.h b/ruby/ext/google/protobuf_c/protobuf.h index d8a327aa..ef00b5fa 100644 --- a/ruby/ext/google/protobuf_c/protobuf.h +++ b/ruby/ext/google/protobuf_c/protobuf.h @@ -374,6 +374,7 @@ VALUE RepeatedField_clear(VALUE _self); VALUE RepeatedField_length(VALUE _self); VALUE RepeatedField_dup(VALUE _self); VALUE RepeatedField_deep_copy(VALUE _self); +VALUE RepeatedField_to_ary(VALUE _self); VALUE RepeatedField_eq(VALUE _self, VALUE _other); VALUE RepeatedField_hash(VALUE _self); VALUE RepeatedField_inspect(VALUE _self); @@ -497,11 +498,6 @@ VALUE Message_encode(VALUE klass, VALUE msg_rb); VALUE Message_decode_json(VALUE klass, VALUE data); VALUE Message_encode_json(VALUE klass, VALUE msg_rb); -VALUE Google_Protobuf_encode(VALUE self, VALUE msg_rb); -VALUE Google_Protobuf_decode(VALUE self, VALUE klass, VALUE msg_rb); -VALUE Google_Protobuf_encode_json(VALUE self, VALUE msg_rb); -VALUE Google_Protobuf_decode_json(VALUE self, VALUE klass, VALUE msg_rb); - VALUE Google_Protobuf_deep_copy(VALUE self, VALUE obj); VALUE build_module_from_enumdesc(EnumDescriptor* enumdef); |