aboutsummaryrefslogtreecommitdiffhomepage
path: root/src/ruby/ext
diff options
context:
space:
mode:
authorGravatar Yuki Yugui Sonoda <yugui@yugui.jp>2015-04-11 12:01:58 +0900
committerGravatar Yuki Yugui Sonoda <yugui@yugui.jp>2015-04-11 12:01:58 +0900
commit2e50a7ab75cb89dcf66862bb0159a833d6930d29 (patch)
treeaca9df5eaf66cd2acbbd04e20f8b94b64391670b /src/ruby/ext
parenta7d369ea678e441f315dca8b034ec40304ffe411 (diff)
Also fix rb_CallOps too.
Diffstat (limited to 'src/ruby/ext')
-rw-r--r--src/ruby/ext/grpc/rb_call.c20
1 files changed, 11 insertions, 9 deletions
diff --git a/src/ruby/ext/grpc/rb_call.c b/src/ruby/ext/grpc/rb_call.c
index 466ef57d20..1b1958fd26 100644
--- a/src/ruby/ext/grpc/rb_call.c
+++ b/src/ruby/ext/grpc/rb_call.c
@@ -647,21 +647,23 @@ void Init_grpc_error_codes() {
void Init_grpc_op_codes() {
/* Constants representing operation type codes in grpc.h */
- VALUE rb_CallOps = rb_define_module_under(grpc_rb_mGrpcCore, "CallOps");
- rb_define_const(rb_CallOps, "SEND_INITIAL_METADATA",
+ VALUE grpc_rb_mCallOps =
+ rb_define_module_under(grpc_rb_mGrpcCore, "CallOps");
+ rb_define_const(grpc_rb_mCallOps, "SEND_INITIAL_METADATA",
UINT2NUM(GRPC_OP_SEND_INITIAL_METADATA));
- rb_define_const(rb_CallOps, "SEND_MESSAGE", UINT2NUM(GRPC_OP_SEND_MESSAGE));
- rb_define_const(rb_CallOps, "SEND_CLOSE_FROM_CLIENT",
+ rb_define_const(grpc_rb_mCallOps, "SEND_MESSAGE",
+ UINT2NUM(GRPC_OP_SEND_MESSAGE));
+ rb_define_const(grpc_rb_mCallOps, "SEND_CLOSE_FROM_CLIENT",
UINT2NUM(GRPC_OP_SEND_CLOSE_FROM_CLIENT));
- rb_define_const(rb_CallOps, "SEND_STATUS_FROM_SERVER",
+ rb_define_const(grpc_rb_mCallOps, "SEND_STATUS_FROM_SERVER",
UINT2NUM(GRPC_OP_SEND_STATUS_FROM_SERVER));
- rb_define_const(rb_CallOps, "RECV_INITIAL_METADATA",
+ rb_define_const(grpc_rb_mCallOps, "RECV_INITIAL_METADATA",
UINT2NUM(GRPC_OP_RECV_INITIAL_METADATA));
- rb_define_const(rb_CallOps, "RECV_MESSAGE",
+ rb_define_const(grpc_rb_mCallOps, "RECV_MESSAGE",
UINT2NUM(GRPC_OP_RECV_MESSAGE));
- rb_define_const(rb_CallOps, "RECV_STATUS_ON_CLIENT",
+ rb_define_const(grpc_rb_mCallOps, "RECV_STATUS_ON_CLIENT",
UINT2NUM(GRPC_OP_RECV_STATUS_ON_CLIENT));
- rb_define_const(rb_CallOps, "RECV_CLOSE_ON_SERVER",
+ rb_define_const(grpc_rb_mCallOps, "RECV_CLOSE_ON_SERVER",
UINT2NUM(GRPC_OP_RECV_CLOSE_ON_SERVER));
}