| David Reiss | ea2cba8 | 2009-03-30 21:35:00 +0000 | [diff] [blame] | 1 | %% | 
 | 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 | %% | 
| David Reiss | ac54955 | 2008-06-10 22:56:59 +0000 | [diff] [blame] | 19 |  | 
 | 20 | %% TType | 
 | 21 | -define(tType_STOP, 0). | 
 | 22 | -define(tType_VOID, 1). | 
 | 23 | -define(tType_BOOL, 2). | 
 | 24 | -define(tType_BYTE, 3). | 
 | 25 | -define(tType_DOUBLE, 4). | 
 | 26 | -define(tType_I16, 6). | 
 | 27 | -define(tType_I32, 8). | 
 | 28 | -define(tType_I64, 10). | 
 | 29 | -define(tType_STRING, 11). | 
 | 30 | -define(tType_STRUCT, 12). | 
 | 31 | -define(tType_MAP, 13). | 
 | 32 | -define(tType_SET, 14). | 
 | 33 | -define(tType_LIST, 15). | 
 | 34 |  | 
 | 35 | % TMessageType | 
 | 36 | -define(tMessageType_CALL, 1). | 
 | 37 | -define(tMessageType_REPLY, 2). | 
 | 38 | -define(tMessageType_EXCEPTION, 3). | 
| David Reiss | deda141 | 2009-04-02 19:22:31 +0000 | [diff] [blame] | 39 | -define(tMessageType_ONEWAY, 4). | 
| David Reiss | 920959a | 2008-06-11 00:56:35 +0000 | [diff] [blame] | 40 |  | 
 | 41 | % TApplicationException | 
 | 42 | -define(TApplicationException_Structure, | 
 | 43 |         {struct, [{1, string}, | 
 | 44 |                   {2, i32}]}). | 
 | 45 |  | 
 | 46 | -record('TApplicationException', {message, type}). | 
 | 47 |  | 
 | 48 | -define(TApplicationException_UNKNOWN, 0). | 
 | 49 | -define(TApplicationException_UNKNOWN_METHOD, 1). | 
 | 50 | -define(TApplicationException_INVALID_MESSAGE_TYPE, 2). | 
 | 51 | -define(TApplicationException_WRONG_METHOD_NAME, 3). | 
 | 52 | -define(TApplicationException_BAD_SEQUENCE_ID, 4). | 
 | 53 | -define(TApplicationException_MISSING_RESULT, 5). | 
 | 54 |  |