blob: 6948846363094404b8fc04f8546243ee66d2a9a2 [file] [log] [blame]
Nobuaki Sukegawa11da87e2016-09-10 14:02:19 +09001/*
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#ifndef T_COMMON_H
21#define T_COMMON_H
22
dtmuller052abc32016-07-26 11:58:28 +020023#include "thrift/parse/t_type.h"
Nobuaki Sukegawa11da87e2016-09-10 14:02:19 +090024
25/**
26 * Global types for the parser to be able to reference
27 */
28
29extern t_type* g_type_void;
30extern t_type* g_type_string;
31extern t_type* g_type_binary;
32extern t_type* g_type_slist;
33extern t_type* g_type_bool;
34extern t_type* g_type_i8;
35extern t_type* g_type_i16;
36extern t_type* g_type_i32;
37extern t_type* g_type_i64;
38extern t_type* g_type_double;
39
40void initGlobals();
41void clearGlobals();
42
43#endif