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). |
Jens Geyer | 40c28d3 | 2015-10-20 23:13:02 +0200 | [diff] [blame^] | 25 | -define(tType_I8, 3). |
David Reiss | ac54955 | 2008-06-10 22:56:59 +0000 | [diff] [blame] | 26 | -define(tType_DOUBLE, 4). |
| 27 | -define(tType_I16, 6). |
| 28 | -define(tType_I32, 8). |
| 29 | -define(tType_I64, 10). |
| 30 | -define(tType_STRING, 11). |
| 31 | -define(tType_STRUCT, 12). |
| 32 | -define(tType_MAP, 13). |
| 33 | -define(tType_SET, 14). |
| 34 | -define(tType_LIST, 15). |
| 35 | |
| 36 | % TMessageType |
| 37 | -define(tMessageType_CALL, 1). |
| 38 | -define(tMessageType_REPLY, 2). |
| 39 | -define(tMessageType_EXCEPTION, 3). |
David Reiss | deda141 | 2009-04-02 19:22:31 +0000 | [diff] [blame] | 40 | -define(tMessageType_ONEWAY, 4). |
David Reiss | 920959a | 2008-06-11 00:56:35 +0000 | [diff] [blame] | 41 | |
| 42 | % TApplicationException |
| 43 | -define(TApplicationException_Structure, |
| 44 | {struct, [{1, string}, |
| 45 | {2, i32}]}). |
| 46 | |
| 47 | -record('TApplicationException', {message, type}). |
| 48 | |
| 49 | -define(TApplicationException_UNKNOWN, 0). |
| 50 | -define(TApplicationException_UNKNOWN_METHOD, 1). |
| 51 | -define(TApplicationException_INVALID_MESSAGE_TYPE, 2). |
| 52 | -define(TApplicationException_WRONG_METHOD_NAME, 3). |
| 53 | -define(TApplicationException_BAD_SEQUENCE_ID, 4). |
| 54 | -define(TApplicationException_MISSING_RESULT, 5). |
Roger Meier | 345ecc7 | 2011-08-03 09:49:27 +0000 | [diff] [blame] | 55 | -define(TApplicationException_INTERNAL_ERROR, 6). |
| 56 | -define(TApplicationException_PROTOCOL_ERROR, 7). |
Roger Meier | 0193149 | 2012-12-22 21:31:03 +0100 | [diff] [blame] | 57 | -define(TApplicationException_INVALID_TRANSFORM, 8). |
| 58 | -define(TApplicationException_INVALID_PROTOCOL, 9). |
| 59 | -define(TApplicationException_UNSUPPORTED_CLIENT_TYPE, 10). |