]> git.proxmox.com Git - ceph.git/blob - ceph/src/jaegertracing/thrift/lib/erl/include/thrift_constants.hrl
buildsys: switch source download to quincy
[ceph.git] / ceph / src / jaegertracing / thrift / lib / erl / include / thrift_constants.hrl
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 %%
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_I8, 3).
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).
40 -define(tMessageType_ONEWAY, 4).
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).
55 -define(TApplicationException_INTERNAL_ERROR, 6).
56 -define(TApplicationException_PROTOCOL_ERROR, 7).
57 -define(TApplicationException_INVALID_TRANSFORM, 8).
58 -define(TApplicationException_INVALID_PROTOCOL, 9).
59 -define(TApplicationException_UNSUPPORTED_CLIENT_TYPE, 10).
60
61 -define (MULTIPLEXED_SERVICE_SEPARATOR, ":").
62 -define (MULTIPLEXED_ERROR_HANDLER_KEY, "error_handler").