blob: 57df544b504c818b1797fe781774136c720e3574 [file] [log] [blame]
Gavin McDonald0b75e1a2010-10-28 02:12:01 +00001/*
2 * Licensed to the Apache Software Foundation (ASF) under one
3 * or more contributor license agreements. See the NOTICE file
4 * distributed with this work for additional information
5 * regarding copyright ownership. The ASF licenses this file
6 * to you under the Apache License, Version 2.0 (the
7 * "License"); you may not use this file except in compliance
8 * with the License. You may obtain a copy of the License at
9 *
10 * http://www.apache.org/licenses/LICENSE-2.0
11 *
12 * Unless required by applicable law or agreed to in writing,
13 * software distributed under the License is distributed on an
14 * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
15 * KIND, either express or implied. See the License for the
16 * specific language governing permissions and limitations
17 * under the License.
18 */
19
20extern int TTYPE_STOP;
21extern int TTYPE_BOOL;
22extern int TTYPE_BYTE;
23extern int TTYPE_I16;
24extern int TTYPE_I32;
25extern int TTYPE_I64;
26extern int TTYPE_DOUBLE;
27extern int TTYPE_STRING;
28extern int TTYPE_MAP;
29extern int TTYPE_SET;
30extern int TTYPE_LIST;
31extern int TTYPE_STRUCT;
32
33extern ID validate_method_id;
34extern ID write_struct_begin_method_id;
35extern ID write_struct_end_method_id;
36extern ID write_field_begin_method_id;
37extern ID write_field_end_method_id;
38extern ID write_boolean_method_id;
39extern ID write_byte_method_id;
40extern ID write_i16_method_id;
41extern ID write_i32_method_id;
42extern ID write_i64_method_id;
43extern ID write_double_method_id;
44extern ID write_string_method_id;
45extern ID write_map_begin_method_id;
46extern ID write_map_end_method_id;
47extern ID write_list_begin_method_id;
48extern ID write_list_end_method_id;
49extern ID write_set_begin_method_id;
50extern ID write_set_end_method_id;
51extern ID size_method_id;
52extern ID read_bool_method_id;
53extern ID read_byte_method_id;
54extern ID read_i16_method_id;
55extern ID read_i32_method_id;
56extern ID read_i64_method_id;
57extern ID read_string_method_id;
58extern ID read_double_method_id;
59extern ID read_map_begin_method_id;
60extern ID read_map_end_method_id;
61extern ID read_list_begin_method_id;
62extern ID read_list_end_method_id;
63extern ID read_set_begin_method_id;
64extern ID read_set_end_method_id;
65extern ID read_struct_begin_method_id;
66extern ID read_struct_end_method_id;
67extern ID read_field_begin_method_id;
68extern ID read_field_end_method_id;
69extern ID keys_method_id;
70extern ID entries_method_id;
71extern ID name_method_id;
72extern ID sort_method_id;
73extern ID write_field_stop_method_id;
74extern ID skip_method_id;
75extern ID write_method_id;
76extern ID read_all_method_id;
77extern ID native_qmark_method_id;
78
79extern ID fields_const_id;
80extern ID transport_ivar_id;
81extern ID strict_read_ivar_id;
82extern ID strict_write_ivar_id;
83
84extern VALUE type_sym;
85extern VALUE name_sym;
86extern VALUE key_sym;
87extern VALUE value_sym;
88extern VALUE element_sym;
89extern VALUE class_sym;
90
91extern VALUE rb_cSet;
92extern VALUE thrift_module;
93extern VALUE thrift_types_module;
94extern VALUE class_thrift_protocol;
95extern VALUE protocol_exception_class;