2009-03-30 21:35:00 +00:00
|
|
|
/*
|
|
|
|
* Licensed to the Apache Software Foundation (ASF) under one
|
|
|
|
* or more contributor license agreements. See the NOTICE file
|
|
|
|
* distributed with this work for additional information
|
|
|
|
* regarding copyright ownership. The ASF licenses this file
|
|
|
|
* to you under the Apache License, Version 2.0 (the
|
|
|
|
* "License"); you may not use this file except in compliance
|
|
|
|
* with the License. You may obtain a copy of the License at
|
|
|
|
*
|
|
|
|
* http://www.apache.org/licenses/LICENSE-2.0
|
|
|
|
*
|
|
|
|
* Unless required by applicable law or agreed to in writing,
|
|
|
|
* software distributed under the License is distributed on an
|
|
|
|
* "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
|
|
|
|
* KIND, either express or implied. See the License for the
|
|
|
|
* specific language governing permissions and limitations
|
|
|
|
* under the License.
|
|
|
|
*/
|
|
|
|
|
2007-03-07 05:45:10 +00:00
|
|
|
/**
|
|
|
|
* This Thrift file can be included by other Thrift files that want to share
|
|
|
|
* these definitions.
|
|
|
|
*/
|
|
|
|
|
2017-09-19 07:16:43 +00:00
|
|
|
namespace cl shared
|
2008-02-27 01:55:17 +00:00
|
|
|
namespace cpp shared
|
2012-03-22 21:49:10 +00:00
|
|
|
namespace d share // "shared" would collide with the eponymous D keyword.
|
2015-08-29 15:46:51 +00:00
|
|
|
namespace dart shared
|
2008-02-27 01:55:25 +00:00
|
|
|
namespace java shared
|
2008-03-27 21:42:39 +00:00
|
|
|
namespace perl shared
|
2011-11-16 12:12:37 +00:00
|
|
|
namespace php shared
|
2014-07-27 23:25:30 +00:00
|
|
|
namespace haxe shared
|
2019-01-28 22:27:45 +00:00
|
|
|
namespace netstd shared
|
|
|
|
|
2007-03-07 05:45:10 +00:00
|
|
|
|
|
|
|
struct SharedStruct {
|
|
|
|
1: i32 key
|
|
|
|
2: string value
|
|
|
|
}
|
|
|
|
|
|
|
|
service SharedService {
|
|
|
|
SharedStruct getStruct(1: i32 key)
|
|
|
|
}
|