rb_call.h
Go to the documentation of this file.
1 /*
2  *
3  * Copyright 2015 gRPC authors.
4  *
5  * Licensed under the Apache License, Version 2.0 (the "License");
6  * you may not use this file except in compliance with the License.
7  * You may obtain a copy of the License at
8  *
9  * http://www.apache.org/licenses/LICENSE-2.0
10  *
11  * Unless required by applicable law or agreed to in writing, software
12  * distributed under the License is distributed on an "AS IS" BASIS,
13  * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
14  * See the License for the specific language governing permissions and
15  * limitations under the License.
16  *
17  */
18 
19 #ifndef GRPC_RB_CALL_H_
20 #define GRPC_RB_CALL_H_
21 
22 #include <ruby/ruby.h>
23 
24 #include <grpc/grpc.h>
25 
26 extern const rb_data_type_t grpc_rb_md_ary_data_type;
27 
28 extern VALUE grpc_rb_cMdAry;
29 
30 /* Gets the wrapped call from a VALUE. */
32 
33 /* Gets the VALUE corresponding to given grpc_call. */
35 
36 /* Provides the details of an call error */
38 
39 /* Converts a metadata array to a hash. */
41 
42 /* grpc_rb_md_ary_convert converts a ruby metadata hash into
43  a grpc_metadata_array.
44 */
45 void grpc_rb_md_ary_convert(VALUE md_ary_hash, grpc_metadata_array* md_ary);
46 
48  grpc_metadata_array* md_ary);
49 
50 /* grpc_rb_eCallError is the ruby class of the exception thrown during call
51  operations. */
52 extern VALUE grpc_rb_eCallError;
53 
54 /* Initializes the Call class. */
55 void Init_grpc_call();
56 
57 #endif /* GRPC_RB_CALL_H_ */
grpc_call_error
grpc_call_error
Definition: grpc_types.h:464
grpc_metadata_array
Definition: grpc_types.h:579
error_ref_leak.err
err
Definition: error_ref_leak.py:35
grpc_rb_md_ary_convert
void grpc_rb_md_ary_convert(VALUE md_ary_hash, grpc_metadata_array *md_ary)
Definition: rb_call.c:494
grpc_rb_wrap_call
VALUE grpc_rb_wrap_call(grpc_call *c, grpc_completion_queue *q)
Definition: rb_call.c:1042
grpc_rb_metadata_array_destroy_including_entries
void grpc_rb_metadata_array_destroy_including_entries(grpc_metadata_array *md_ary)
Definition: rb_call.c:642
c
void c(T a)
Definition: miscompile_with_no_unique_address_test.cc:40
grpc_rb_eCallError
VALUE grpc_rb_eCallError
Definition: rb_call.c:39
setup.v
v
Definition: third_party/bloaty/third_party/capstone/bindings/python/setup.py:42
grpc_completion_queue
Definition: completion_queue.cc:347
grpc_rb_md_ary_data_type
const rb_data_type_t grpc_rb_md_ary_data_type
Definition: rb_call.c:106
grpc.h
grpc_call
struct grpc_call grpc_call
Definition: grpc_types.h:70
grpc_rb_md_ary_to_h
VALUE grpc_rb_md_ary_to_h(grpc_metadata_array *md_ary)
Definition: rb_call.c:515
Init_grpc_call
void Init_grpc_call()
Definition: rb_call.c:967
grpc_rb_cMdAry
VALUE grpc_rb_cMdAry
Definition: rb_call.c:51
grpc_call_error_detail_of
const char * grpc_call_error_detail_of(grpc_call_error err)
Definition: rb_call.c:141
grpc_rb_get_wrapped_call
grpc_call * grpc_rb_get_wrapped_call(VALUE v)
Definition: rb_call.c:1035


grpc
Author(s):
autogenerated on Thu Mar 13 2025 03:01:06