David Reiss | ea2cba8 | 2009-03-30 21:35:00 +0000 | [diff] [blame] | 1 | /* |
Kevin Clark | 916f353 | 2009-03-20 04:21:39 +0000 | [diff] [blame] | 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 | */ |
Bryan Duxbury | c016628 | 2009-02-02 00:48:17 +0000 | [diff] [blame] | 19 | |
| 20 | extern int TTYPE_STOP; |
| 21 | extern int TTYPE_BOOL; |
| 22 | extern int TTYPE_BYTE; |
| 23 | extern int TTYPE_I16; |
| 24 | extern int TTYPE_I32; |
| 25 | extern int TTYPE_I64; |
| 26 | extern int TTYPE_DOUBLE; |
| 27 | extern int TTYPE_STRING; |
| 28 | extern int TTYPE_MAP; |
| 29 | extern int TTYPE_SET; |
| 30 | extern int TTYPE_LIST; |
| 31 | extern int TTYPE_STRUCT; |
| 32 | |
| 33 | extern ID validate_method_id; |
| 34 | extern ID write_struct_begin_method_id; |
| 35 | extern ID write_struct_end_method_id; |
| 36 | extern ID write_field_begin_method_id; |
| 37 | extern ID write_field_end_method_id; |
| 38 | extern ID write_boolean_method_id; |
| 39 | extern ID write_byte_method_id; |
| 40 | extern ID write_i16_method_id; |
| 41 | extern ID write_i32_method_id; |
| 42 | extern ID write_i64_method_id; |
| 43 | extern ID write_double_method_id; |
| 44 | extern ID write_string_method_id; |
henrique | 8a2bab3 | 2014-07-16 20:10:57 +0200 | [diff] [blame] | 45 | extern ID write_binary_method_id; |
Bryan Duxbury | c016628 | 2009-02-02 00:48:17 +0000 | [diff] [blame] | 46 | extern ID write_map_begin_method_id; |
| 47 | extern ID write_map_end_method_id; |
| 48 | extern ID write_list_begin_method_id; |
| 49 | extern ID write_list_end_method_id; |
| 50 | extern ID write_set_begin_method_id; |
| 51 | extern ID write_set_end_method_id; |
Bryan Duxbury | c016628 | 2009-02-02 00:48:17 +0000 | [diff] [blame] | 52 | extern ID read_bool_method_id; |
| 53 | extern ID read_byte_method_id; |
| 54 | extern ID read_i16_method_id; |
| 55 | extern ID read_i32_method_id; |
| 56 | extern ID read_i64_method_id; |
| 57 | extern ID read_string_method_id; |
henrique | 8a2bab3 | 2014-07-16 20:10:57 +0200 | [diff] [blame] | 58 | extern ID read_binary_method_id; |
Bryan Duxbury | c016628 | 2009-02-02 00:48:17 +0000 | [diff] [blame] | 59 | extern ID read_double_method_id; |
| 60 | extern ID read_map_begin_method_id; |
| 61 | extern ID read_map_end_method_id; |
| 62 | extern ID read_list_begin_method_id; |
| 63 | extern ID read_list_end_method_id; |
| 64 | extern ID read_set_begin_method_id; |
| 65 | extern ID read_set_end_method_id; |
| 66 | extern ID read_struct_begin_method_id; |
| 67 | extern ID read_struct_end_method_id; |
| 68 | extern ID read_field_begin_method_id; |
| 69 | extern ID read_field_end_method_id; |
| 70 | extern ID keys_method_id; |
Roger Meier | 4f62326 | 2013-05-05 23:59:25 +0200 | [diff] [blame] | 71 | extern ID entries_method_id; |
Bryan Duxbury | c016628 | 2009-02-02 00:48:17 +0000 | [diff] [blame] | 72 | extern ID write_field_stop_method_id; |
| 73 | extern ID skip_method_id; |
| 74 | extern ID write_method_id; |
Bryan Duxbury | 5b8b484 | 2009-04-01 20:10:15 +0000 | [diff] [blame] | 75 | extern ID read_all_method_id; |
Bryan Duxbury | ad0ad82 | 2011-06-28 18:46:03 +0000 | [diff] [blame] | 76 | extern ID read_into_buffer_method_id; |
Jake Farrell | b5a18a1 | 2012-10-09 01:10:43 +0000 | [diff] [blame] | 77 | extern ID force_binary_encoding_id; |
| 78 | extern ID convert_to_utf8_byte_buffer_id; |
| 79 | extern ID convert_to_string_id; |
Bryan Duxbury | c016628 | 2009-02-02 00:48:17 +0000 | [diff] [blame] | 80 | |
| 81 | extern ID fields_const_id; |
| 82 | extern ID transport_ivar_id; |
Kevin Clark | ead3382 | 2009-02-04 22:43:59 +0000 | [diff] [blame] | 83 | extern ID strict_read_ivar_id; |
| 84 | extern ID strict_write_ivar_id; |
Bryan Duxbury | c016628 | 2009-02-02 00:48:17 +0000 | [diff] [blame] | 85 | |
| 86 | extern VALUE type_sym; |
| 87 | extern VALUE name_sym; |
| 88 | extern VALUE key_sym; |
| 89 | extern VALUE value_sym; |
| 90 | extern VALUE element_sym; |
| 91 | extern VALUE class_sym; |
henrique | 8a2bab3 | 2014-07-16 20:10:57 +0200 | [diff] [blame] | 92 | extern VALUE binary_sym; |
Bryan Duxbury | c016628 | 2009-02-02 00:48:17 +0000 | [diff] [blame] | 93 | |
| 94 | extern VALUE rb_cSet; |
| 95 | extern VALUE thrift_module; |
| 96 | extern VALUE thrift_types_module; |
Jake Farrell | b5a18a1 | 2012-10-09 01:10:43 +0000 | [diff] [blame] | 97 | extern VALUE thrift_bytes_module; |
Bryan Duxbury | c016628 | 2009-02-02 00:48:17 +0000 | [diff] [blame] | 98 | extern VALUE class_thrift_protocol; |
Bryan Duxbury | 1e80d44 | 2009-02-03 18:16:54 +0000 | [diff] [blame] | 99 | extern VALUE protocol_exception_class; |