under the Apache 2.0 License:
compiler/cpp/Makefile.am
- compiler/cpp/src/generate/t_cocoa_generator.cc
- compiler/cpp/src/generate/t_cpp_generator.cc
- compiler/cpp/src/generate/t_csharp_generator.cc
- compiler/cpp/src/generate/t_erl_generator.cc
- compiler/cpp/src/generate/t_hs_generator.cc
- compiler/cpp/src/generate/t_java_generator.cc
- compiler/cpp/src/generate/t_ocaml_generator.cc
- compiler/cpp/src/generate/t_perl_generator.cc
- compiler/cpp/src/generate/t_php_generator.cc
- compiler/cpp/src/generate/t_py_generator.cc
- compiler/cpp/src/generate/t_rb_generator.cc
- compiler/cpp/src/generate/t_st_generator.cc
- compiler/cpp/src/generate/t_xsd_generator.cc
- compiler/cpp/src/main.cc
- compiler/cpp/src/parse/t_field.h
- compiler/cpp/src/parse/t_program.h
- compiler/cpp/src/platform.h
- compiler/cpp/src/thriftl.ll
- compiler/cpp/src/thrifty.yy
+ compiler/cpp/src/thrift/generate/t_cocoa_generator.cc
+ compiler/cpp/src/thrift/generate/t_cpp_generator.cc
+ compiler/cpp/src/thrift/generate/t_csharp_generator.cc
+ compiler/cpp/src/thrift/generate/t_erl_generator.cc
+ compiler/cpp/src/thrift/generate/t_hs_generator.cc
+ compiler/cpp/src/thrift/generate/t_java_generator.cc
+ compiler/cpp/src/thrift/generate/t_ocaml_generator.cc
+ compiler/cpp/src/thrift/generate/t_perl_generator.cc
+ compiler/cpp/src/thrift/generate/t_php_generator.cc
+ compiler/cpp/src/thrift/generate/t_py_generator.cc
+ compiler/cpp/src/thrift/generate/t_rb_generator.cc
+ compiler/cpp/src/thrift/generate/t_st_generator.cc
+ compiler/cpp/src/thrift/generate/t_xsd_generator.cc
+ compiler/cpp/src/thrift/main.cc
+ compiler/cpp/src/thrift/parse/t_field.h
+ compiler/cpp/src/thrift/parse/t_program.h
+ compiler/cpp/src/thrift/platform.h
+ compiler/cpp/src/thrift/thriftl.ll
+ compiler/cpp/src/thrift/thrifty.yy
lib/csharp/src/Protocol/TBinaryProtocol.cs
lib/csharp/src/Protocol/TField.cs
lib/csharp/src/Protocol/TList.cs
# the copyright notice and this notice are preserved.
--------------------------------------------------
-For the compiler/cpp/src/md5.[ch] components:
+For the compiler/cpp/src/thrift/md5.[ch] components:
/*
Copyright (C) 1999, 2000, 2002 Aladdin Enterprises. All rights reserved.
</ProjectConfiguration>
</ItemGroup>
<ItemGroup>
- <ClInclude Include="src\generate\t_generator.h" />
- <ClInclude Include="src\generate\t_generator_registry.h" />
- <ClInclude Include="src\generate\t_oop_generator.h" />
- <ClInclude Include="src\globals.h" />
- <ClInclude Include="src\main.h" />
- <ClInclude Include="src\md5.h" />
- <ClInclude Include="src\parse\t_base_type.h" />
- <ClInclude Include="src\parse\t_const.h" />
- <ClInclude Include="src\parse\t_const_value.h" />
- <ClInclude Include="src\parse\t_container.h" />
- <ClInclude Include="src\parse\t_doc.h" />
- <ClInclude Include="src\parse\t_enum.h" />
- <ClInclude Include="src\parse\t_enum_value.h" />
- <ClInclude Include="src\parse\t_field.h" />
- <ClInclude Include="src\parse\t_function.h" />
- <ClInclude Include="src\parse\t_list.h" />
- <ClInclude Include="src\parse\t_map.h" />
- <ClInclude Include="src\parse\t_program.h" />
- <ClInclude Include="src\parse\t_scope.h" />
- <ClInclude Include="src\parse\t_service.h" />
- <ClInclude Include="src\parse\t_set.h" />
- <ClInclude Include="src\parse\t_struct.h" />
- <ClInclude Include="src\parse\t_type.h" />
- <ClInclude Include="src\parse\t_typedef.h" />
- <ClInclude Include="src\platform.h" />
- <ClInclude Include="src\thrifty.h" />
- <ClInclude Include="src\windows\config.h" />
- <ClInclude Include="src\windows\version.h" />
+ <ClInclude Include="src\thrift\generate\t_generator.h" />
+ <ClInclude Include="src\thrift\generate\t_generator_registry.h" />
+ <ClInclude Include="src\thrift\generate\t_oop_generator.h" />
+ <ClInclude Include="src\thrift\globals.h" />
+ <ClInclude Include="src\thrift\main.h" />
+ <ClInclude Include="src\thrift\md5.h" />
+ <ClInclude Include="src\thrift\parse\t_base_type.h" />
+ <ClInclude Include="src\thrift\parse\t_const.h" />
+ <ClInclude Include="src\thrift\parse\t_const_value.h" />
+ <ClInclude Include="src\thrift\parse\t_container.h" />
+ <ClInclude Include="src\thrift\parse\t_doc.h" />
+ <ClInclude Include="src\thrift\parse\t_enum.h" />
+ <ClInclude Include="src\thrift\parse\t_enum_value.h" />
+ <ClInclude Include="src\thrift\parse\t_field.h" />
+ <ClInclude Include="src\thrift\parse\t_function.h" />
+ <ClInclude Include="src\thrift\parse\t_list.h" />
+ <ClInclude Include="src\thrift\parse\t_map.h" />
+ <ClInclude Include="src\thrift\parse\t_program.h" />
+ <ClInclude Include="src\thrift\parse\t_scope.h" />
+ <ClInclude Include="src\thrift\parse\t_service.h" />
+ <ClInclude Include="src\thrift\parse\t_set.h" />
+ <ClInclude Include="src\thrift\parse\t_struct.h" />
+ <ClInclude Include="src\thrift\parse\t_type.h" />
+ <ClInclude Include="src\thrift\parse\t_typedef.h" />
+ <ClInclude Include="src\thrift\platform.h" />
+ <ClInclude Include="src\thrift\thrifty.h" />
+ <ClInclude Include="src\thrift\windows\config.h" />
+ <ClInclude Include="src\thrift\windows\version.h" />
</ItemGroup>
<ItemGroup>
- <ClCompile Include="src\generate\t_as3_generator.cc" />
- <ClCompile Include="src\generate\t_cocoa_generator.cc" />
- <ClCompile Include="src\generate\t_cpp_generator.cc" />
- <ClCompile Include="src\generate\t_csharp_generator.cc" />
- <ClCompile Include="src\generate\t_c_glib_generator.cc" />
- <ClCompile Include="src\generate\t_erl_generator.cc" />
- <ClCompile Include="src\generate\t_generator.cc" />
- <ClCompile Include="src\generate\t_go_generator.cc" />
- <ClCompile Include="src\generate\t_hs_generator.cc" />
- <ClCompile Include="src\generate\t_html_generator.cc" />
- <ClCompile Include="src\generate\t_javame_generator.cc" />
- <ClCompile Include="src\generate\t_java_generator.cc" />
- <ClCompile Include="src\generate\t_js_generator.cc" />
- <ClCompile Include="src\generate\t_ocaml_generator.cc" />
- <ClCompile Include="src\generate\t_perl_generator.cc" />
- <ClCompile Include="src\generate\t_php_generator.cc" />
- <ClCompile Include="src\generate\t_py_generator.cc" />
- <ClCompile Include="src\generate\t_rb_generator.cc" />
- <ClCompile Include="src\generate\t_st_generator.cc" />
- <ClCompile Include="src\generate\t_xsd_generator.cc" />
- <ClCompile Include="src\main.cc" />
- <ClCompile Include="src\md5.c" />
- <ClCompile Include="src\parse\parse.cc" />
- <ClCompile Include="src\thriftl.cc" />
- <ClCompile Include="src\thrifty.cc" />
+ <ClCompile Include="src\thrift\generate\t_as3_generator.cc" />
+ <ClCompile Include="src\thrift\generate\t_cocoa_generator.cc" />
+ <ClCompile Include="src\thrift\generate\t_cpp_generator.cc" />
+ <ClCompile Include="src\thrift\generate\t_csharp_generator.cc" />
+ <ClCompile Include="src\thrift\generate\t_c_glib_generator.cc" />
+ <ClCompile Include="src\thrift\generate\t_erl_generator.cc" />
+ <ClCompile Include="src\thrift\generate\t_generator.cc" />
+ <ClCompile Include="src\thrift\generate\t_go_generator.cc" />
+ <ClCompile Include="src\thrift\generate\t_hs_generator.cc" />
+ <ClCompile Include="src\thrift\generate\t_html_generator.cc" />
+ <ClCompile Include="src\thrift\generate\t_javame_generator.cc" />
+ <ClCompile Include="src\thrift\generate\t_java_generator.cc" />
+ <ClCompile Include="src\thrift\generate\t_js_generator.cc" />
+ <ClCompile Include="src\thrift\generate\t_ocaml_generator.cc" />
+ <ClCompile Include="src\thrift\generate\t_perl_generator.cc" />
+ <ClCompile Include="src\thrift\generate\t_php_generator.cc" />
+ <ClCompile Include="src\thrift\generate\t_py_generator.cc" />
+ <ClCompile Include="src\thrift\generate\t_rb_generator.cc" />
+ <ClCompile Include="src\thrift\generate\t_st_generator.cc" />
+ <ClCompile Include="src\thrift\generate\t_xsd_generator.cc" />
+ <ClCompile Include="src\thrift\main.cc" />
+ <ClCompile Include="src\thrift\md5.c" />
+ <ClCompile Include="src\thrift\parse\parse.cc" />
+ <ClCompile Include="src\thrift\thriftl.cc" />
+ <ClCompile Include="src\thrift\thrifty.cc" />
</ItemGroup>
<ItemGroup>
<None Include="README_WINDOWS" />
- <None Include="src\thriftl.ll" />
- <None Include="src\thrifty.yy" />
+ <None Include="src\thrift\thriftl.ll" />
+ <None Include="src\thrift\thrifty.yy" />
</ItemGroup>
<PropertyGroup Label="Globals">
<ProjectGuid>{89975A1A-F799-4556-98B8-64E30AB39A90}</ProjectGuid>
<PropertyGroup Label="UserMacros" />
<PropertyGroup Condition="'$(Configuration)|$(Platform)'=='Debug|Win32'">
<LinkIncremental>true</LinkIncremental>
- <IncludePath>$(ProjectDir)\src\;$(ProjectDir)\src\windows\;$(IncludePath)</IncludePath>
+ <IncludePath>$(ProjectDir)\src\thrift\;$(ProjectDir)\src\windows\;$(IncludePath)</IncludePath>
<TargetName>thrift</TargetName>
<ExecutablePath>$(ExecutablePath);C:\Program Files (x86)\Git\bin</ExecutablePath>
</PropertyGroup>
<PropertyGroup Condition="'$(Configuration)|$(Platform)'=='Debug|x64'">
<LinkIncremental>true</LinkIncremental>
- <IncludePath>$(ProjectDir)\src\;$(ProjectDir)\src\windows\;$(IncludePath)</IncludePath>
+ <IncludePath>$(ProjectDir)\src\thrift\;$(ProjectDir)\src\windows\;$(IncludePath)</IncludePath>
<TargetName>thrift</TargetName>
<ExecutablePath>$(ExecutablePath);C:\Program Files (x86)\Git\bin</ExecutablePath>
</PropertyGroup>
<PropertyGroup Condition="'$(Configuration)|$(Platform)'=='Release|Win32'">
<LinkIncremental>false</LinkIncremental>
- <IncludePath>$(ProjectDir)\src\;$(ProjectDir)\src\windows\;$(IncludePath)</IncludePath>
+ <IncludePath>$(ProjectDir)\src\thrift\;$(ProjectDir)\src\windows\;$(IncludePath)</IncludePath>
<TargetName>thrift</TargetName>
<ExecutablePath>$(ExecutablePath);C:\Program Files (x86)\Git\bin</ExecutablePath>
</PropertyGroup>
<PropertyGroup Condition="'$(Configuration)|$(Platform)'=='Release|x64'">
<LinkIncremental>false</LinkIncremental>
- <IncludePath>$(ProjectDir)\src\;$(ProjectDir)\src\windows\;$(IncludePath)</IncludePath>
+ <IncludePath>$(ProjectDir)\src\thrift\;$(ProjectDir)\src\windows\;$(IncludePath)</IncludePath>
<TargetName>thrift</TargetName>
<ExecutablePath>$(ExecutablePath);C:\Program Files (x86)\Git\bin</ExecutablePath>
</PropertyGroup>
<GenerateDebugInformation>true</GenerateDebugInformation>
</Link>
<PreBuildEvent>
- <Command>flex -o "src/thriftl.cc" src/thriftl.ll
-bison -y -o "src/thrifty.cc" --defines="src/thrifty.h" src/thrifty.yy</Command>
+ <Command>flex -o "src\thrift\thriftl.cc" src/thriftl.ll
+bison -y -o "src\thrift\thrifty.cc" --defines="src/thrifty.h" src/thrifty.yy</Command>
</PreBuildEvent>
</ItemDefinitionGroup>
<ItemDefinitionGroup Condition="'$(Configuration)|$(Platform)'=='Debug|x64'">
<GenerateDebugInformation>true</GenerateDebugInformation>
</Link>
<PreBuildEvent>
- <Command>flex -o "src/thriftl.cc" src/thriftl.ll
-bison -y -o "src/thrifty.cc" --defines="src/thrifty.h" src/thrifty.yy</Command>
+ <Command>flex -o "src\thrift\thriftl.cc" src/thriftl.ll
+bison -y -o "src\thrift\thrifty.cc" --defines="src/thrifty.h" src/thrifty.yy</Command>
</PreBuildEvent>
</ItemDefinitionGroup>
<ItemDefinitionGroup Condition="'$(Configuration)|$(Platform)'=='Release|Win32'">
<OptimizeReferences>true</OptimizeReferences>
</Link>
<PreBuildEvent>
- <Command>flex -o "src/thriftl.cc" src/thriftl.ll
-bison -y -o "src/thrifty.cc" --defines="src/thrifty.h" src/thrifty.yy</Command>
+ <Command>flex -o "src\thrift\thriftl.cc" src/thriftl.ll
+bison -y -o "src\thrift\thrifty.cc" --defines="src/thrifty.h" src/thrifty.yy</Command>
</PreBuildEvent>
</ItemDefinitionGroup>
<ItemDefinitionGroup Condition="'$(Configuration)|$(Platform)'=='Release|x64'">
<OptimizeReferences>true</OptimizeReferences>
</Link>
<PreBuildEvent>
- <Command>flex -o "src/thriftl.cc" src/thriftl.ll
-bison -y -o "src/thrifty.cc" --defines="src/thrifty.h" src/thrifty.yy</Command>
+ <Command>flex -o "src\thrift\thriftl.cc" src/thriftl.ll
+bison -y -o "src\thrift\thrifty.cc" --defines="src/thrifty.h" src/thrifty.yy</Command>
</PreBuildEvent>
</ItemDefinitionGroup>
<Import Project="$(VCTargetsPath)\Microsoft.Cpp.targets" />
"/* base includes */" << endl <<
"#include <glib-object.h>" << endl <<
"#include <thrift_struct.h>" << endl <<
- "#include <protocol/thrift_protocol.h>" << endl;
+ "#include <thrift/protocol/thrift_protocol.h>" << endl;
/* include other thrift includes */
const vector<t_program *> &includes = program_->get_includes();
endl <<
"#include \"" << this->nspace_lc << program_name_u <<
"_types.h\"" << endl <<
- "#include <thrift.h>" << endl <<
+ "#include <thrift/thrift.h>" << endl <<
endl;
f_types_ <<
// include the headers
f_service_ <<
"#include <string.h>" << endl <<
- "#include <thrift.h>" << endl <<
+ "#include <thrift/thrift.h>" << endl <<
"#include <thrift_application_exception.h>" << endl <<
"#include \"" << filename << ".h\"" << endl <<
endl;
// Include base types
f_types_ <<
- "#include <Thrift.h>" << endl <<
- "#include <TApplicationException.h>" << endl <<
- "#include <protocol/TProtocol.h>" << endl <<
- "#include <transport/TTransport.h>" << endl <<
+ "#include <thrift/Thrift.h>" << endl <<
+ "#include <thrift/TApplicationException.h>" << endl <<
+ "#include <thrift/protocol/TProtocol.h>" << endl <<
+ "#include <thrift/transport/TTransport.h>" << endl <<
endl;
// Include other Thrift includes
// the definition of TypeSpec.
if (gen_dense_) {
f_types_impl_ <<
- "#include <TReflectionLocal.h>" << endl <<
+ "#include <thrift/TReflectionLocal.h>" << endl <<
endl;
}
endl;
if (gen_cob_style_) {
f_header_ <<
- "#include <transport/TBufferTransports.h>" << endl << // TMemoryBuffer
+ "#include <thrift/transport/TBufferTransports.h>" << endl << // TMemoryBuffer
"#include <tr1/functional>" << endl <<
"namespace apache { namespace thrift { namespace async {" << endl <<
"class TAsyncChannel;" << endl <<
"}}}" << endl;
}
f_header_ <<
- "#include <TDispatchProcessor.h>" << endl;
+ "#include <thrift/TDispatchProcessor.h>" << endl;
if (gen_cob_style_) {
f_header_ <<
- "#include <async/TAsyncDispatchProcessor.h>" << endl;
+ "#include <thrift/async/TAsyncDispatchProcessor.h>" << endl;
}
f_header_ <<
"#include \"" << get_include_prefix(*get_program()) << program_name_ <<
"#include \"" << get_include_prefix(*get_program()) << svcname << ".h\"" << endl;
if (gen_cob_style_) {
f_service_ <<
- "#include \"async/TAsyncChannel.h\"" << endl;
+ "#include \"thrift/async/TAsyncChannel.h\"" << endl;
}
if (gen_templates_) {
f_service_ <<
if (gen_cob_style_) {
f_service_tcc_ <<
- "#include \"async/TAsyncChannel.h\"" << endl;
+ "#include \"thrift/async/TAsyncChannel.h\"" << endl;
}
}
"// that would otherwise introduce unwanted latency." << endl <<
endl <<
"#include \"" << get_include_prefix(*get_program()) << svcname << ".h\"" << endl <<
- "#include <protocol/TBinaryProtocol.h>" << endl <<
- "#include <async/TEventServer.h>" << endl <<
+ "#include <thrift/protocol/TBinaryProtocol.h>" << endl <<
+ "#include <thrift/async/TEventServer.h>" << endl <<
endl <<
"using namespace ::apache::thrift;" << endl <<
"using namespace ::apache::thrift::protocol;" << endl <<
"// You should copy it to another filename to avoid overwriting it." << endl <<
endl <<
"#include \"" << get_include_prefix(*get_program()) << svcname << ".h\"" << endl <<
- "#include <protocol/TBinaryProtocol.h>" << endl <<
- "#include <server/TSimpleServer.h>" << endl <<
- "#include <transport/TServerSocket.h>" << endl <<
- "#include <transport/TBufferTransports.h>" << endl <<
+ "#include <thrift/protocol/TBinaryProtocol.h>" << endl <<
+ "#include <thrift/server/TSimpleServer.h>" << endl <<
+ "#include <thrift/transport/TServerSocket.h>" << endl <<
+ "#include <thrift/transport/TBufferTransports.h>" << endl <<
endl <<
"using namespace ::apache::thrift;" << endl <<
"using namespace ::apache::thrift::protocol;" << endl <<
#include <tr1/functional>
-#include "protocol/TBinaryProtocol.h"
-#include "async/TAsyncProtocolProcessor.h"
-#include "async/TEvhttpServer.h"
-#include "async/TEvhttpClientChannel.h"
+#include <thrift/protocol/TBinaryProtocol.h>
+#include <thrift/async/TAsyncProtocolProcessor.h>
+#include <thrift/async/TEvhttpServer.h>
+#include <thrift/async/TEvhttpClientChannel.h>
#include "Aggr.h"
using std::tr1::bind;
* under the License.
*/
-#include <server/TClientInfo.h>
+#include <thrift/server/TClientInfo.h>
namespace apache { namespace thrift { namespace server {
// for inet_ntop --
#include <arpa/inet.h>
-#include <server/TServer.h>
-#include <transport/TSocket.h>
-#include <concurrency/Mutex.h>
+#include <thrift/server/TServer.h>
+#include <thrift/transport/TSocket.h>
+#include <thrift/concurrency/Mutex.h>
namespace apache { namespace thrift { namespace server {
#include "FacebookService.h"
-#include "server/TServer.h"
-#include "concurrency/Mutex.h"
+#include <thrift/server/TServer.h>
+#include <thrift/concurrency/Mutex.h>
#include <time.h>
#include <string>
#include "FacebookBase.h"
#include "ServiceTracker.h"
-#include "concurrency/ThreadManager.h"
+#include <thrift/concurrency/ThreadManager.h>
using namespace std;
using namespace facebook::fb303;
#include <map>
#include <boost/shared_ptr.hpp>
-#include "concurrency/Mutex.h"
+#include <thrift/concurrency/Mutex.h>
namespace apache { namespace thrift { namespace concurrency {
#include <cstdlib>
#include <iostream>
-#include <transport/TBufferTransports.h>
-#include <transport/TFDTransport.h>
-#include <protocol/TBinaryProtocol.h>
-#include <protocol/TDebugProtocol.h>
-#include <protocol/TProtocolTap.h>
+#include <thrift/transport/TBufferTransports.h>
+#include <thrift/transport/TFDTransport.h>
+#include <thrift/protocol/TBinaryProtocol.h>
+#include <thrift/protocol/TDebugProtocol.h>
+#include <thrift/protocol/TProtocolTap.h>
using namespace std;
using boost::shared_ptr;
#define _THRIFT_TRANSPORT_TZMQCLIENT_H_ 1
#include <zmq.hpp>
-#include <transport/TBufferTransports.h>
+#include <thrift/transport/TBufferTransports.h>
namespace apache { namespace thrift { namespace transport {
*/
#include "TZmqServer.h"
-#include <transport/TBufferTransports.h>
+#include <thrift/transport/TBufferTransports.h>
#include <boost/scoped_ptr.hpp>
using boost::shared_ptr;
#define _THRIFT_SERVER_TZMQSERVER_H_ 1
#include <zmq.hpp>
-#include <server/TServer.h>
+#include <thrift/server/TServer.h>
namespace apache { namespace thrift { namespace server {
#include <iostream>
#include <cstdlib>
-#include <protocol/TBinaryProtocol.h>
+#include <thrift/protocol/TBinaryProtocol.h>
#include "zmq.hpp"
#include "TZmqClient.h"
#include <iostream>
#include <cstdlib>
-#include <protocol/TBinaryProtocol.h>
+#include <thrift/protocol/TBinaryProtocol.h>
#include "zmq.hpp"
#include "TZmqClient.h"
lib_LTLIBRARIES = libthrift_c_glib.la
pkgconfig_DATA = thrift_c_glib.pc
-common_cflags = -g -Wall -W -Werror -Isrc $(GLIB_CFLAGS)
+common_cflags = -g -Wall -W -Werror -Isrc -I src/thrift $(GLIB_CFLAGS)
common_ldflags = -g -Wall -W $(GLIB_LDFLAGS) @GCOV_LDFLAGS@
# this removes optimizations and adds coverage flags
# Define the source files for the module
-libthrift_c_glib_la_SOURCES = src/thrift.c \
- src/thrift_struct.c \
- src/thrift_application_exception.c \
- src/processor/thrift_processor.c \
- src/protocol/thrift_protocol.c \
- src/protocol/thrift_protocol_factory.c \
- src/protocol/thrift_binary_protocol.c \
- src/protocol/thrift_binary_protocol_factory.c \
- src/transport/thrift_transport.c \
- src/transport/thrift_transport_factory.c \
- src/transport/thrift_socket.c \
- src/transport/thrift_server_transport.c \
- src/transport/thrift_server_socket.c \
- src/transport/thrift_buffered_transport.c \
- src/transport/thrift_framed_transport.c \
- src/transport/thrift_memory_buffer.c \
- src/server/thrift_server.c \
- src/server/thrift_simple_server.c
+libthrift_c_glib_la_SOURCES = src/thrift/thrift.c \
+ src/thrift/thrift_struct.c \
+ src/thrift/thrift_application_exception.c \
+ src/thrift/processor/thrift_processor.c \
+ src/thrift/protocol/thrift_protocol.c \
+ src/thrift/protocol/thrift_protocol_factory.c \
+ src/thrift/protocol/thrift_binary_protocol.c \
+ src/thrift/protocol/thrift_binary_protocol_factory.c \
+ src/thrift/transport/thrift_transport.c \
+ src/thrift/transport/thrift_transport_factory.c \
+ src/thrift/transport/thrift_socket.c \
+ src/thrift/transport/thrift_server_transport.c \
+ src/thrift/transport/thrift_server_socket.c \
+ src/thrift/transport/thrift_buffered_transport.c \
+ src/thrift/transport/thrift_framed_transport.c \
+ src/thrift/transport/thrift_memory_buffer.c \
+ src/thrift/server/thrift_server.c \
+ src/thrift/server/thrift_simple_server.c
libthrift_c_glib_la_CFLAGS = $(common_cflags)
include_thriftdir = $(includedir)/thrift/c_glib
include_thrift_HEADERS = \
$(top_builddir)/config.h \
- src/thrift.h \
- src/thrift_application_exception.h \
- src/thrift_struct.h
+ src/thrift/thrift.h \
+ src/thrift/thrift_application_exception.h \
+ src/thrift/thrift_struct.h
include_protocoldir = $(include_thriftdir)/protocol
-include_protocol_HEADERS = src/protocol/thrift_protocol.h \
- src/protocol/thrift_protocol_factory.h \
- src/protocol/thrift_binary_protocol.h \
- src/protocol/thrift_binary_protocol_factory.h
+include_protocol_HEADERS = src/thrift/protocol/thrift_protocol.h \
+ src/thrift/protocol/thrift_protocol_factory.h \
+ src/thrift/protocol/thrift_binary_protocol.h \
+ src/thrift/protocol/thrift_binary_protocol_factory.h
include_transportdir = $(include_thriftdir)/transport
-include_transport_HEADERS = src/transport/thrift_buffered_transport.h \
- src/transport/thrift_framed_transport.h \
- src/transport/thrift_memory_buffer.h \
- src/transport/thrift_server_socket.h \
- src/transport/thrift_server_transport.h \
- src/transport/thrift_socket.h \
- src/transport/thrift_transport.h \
- src/transport/thrift_transport_factory.h
+include_transport_HEADERS = src/thrift/transport/thrift_buffered_transport.h \
+ src/thrift/transport/thrift_framed_transport.h \
+ src/thrift/transport/thrift_memory_buffer.h \
+ src/thrift/transport/thrift_server_socket.h \
+ src/thrift/transport/thrift_server_transport.h \
+ src/thrift/transport/thrift_socket.h \
+ src/thrift/transport/thrift_transport.h \
+ src/thrift/transport/thrift_transport_factory.h
include_serverdir = $(include_thriftdir)/server
-include_server_HEADERS = src/server/thrift_server.h \
- src/server/thrift_simple_server.h
+include_server_HEADERS = src/thrift/server/thrift_server.h \
+ src/thrift/server/thrift_simple_server.h
include_processordir = $(include_thriftdir)/processor
-include_processor_HEADERS = src/processor/thrift_processor.h
+include_processor_HEADERS = src/thrift/processor/thrift_processor.h
EXTRA_DIST = \
* under the License.
*/
-#include "thrift.h"
-#include "processor/thrift_processor.h"
+#include <thrift/thrift.h>
+#include <thrift/processor/thrift_processor.h>
G_DEFINE_ABSTRACT_TYPE(ThriftProcessor, thrift_processor, G_TYPE_OBJECT)
#include <glib-object.h>
-#include "protocol/thrift_protocol.h"
+#include <thrift/protocol/thrift_protocol.h>
G_BEGIN_DECLS
#include <string.h>
#include <stdio.h>
-#include "thrift.h"
-#include "protocol/thrift_protocol.h"
-#include "protocol/thrift_binary_protocol.h"
+#include <thrift/thrift.h>
+#include <thrift/protocol/thrift_protocol.h>
+#include <thrift/protocol/thrift_binary_protocol.h>
G_DEFINE_TYPE(ThriftBinaryProtocol, thrift_binary_protocol, THRIFT_TYPE_PROTOCOL)
#include <glib-object.h>
-#include "protocol/thrift_protocol.h"
-#include "transport/thrift_transport.h"
+#include <thrift/protocol/thrift_protocol.h>
+#include <thrift/transport/thrift_transport.h>
G_BEGIN_DECLS
* under the License.
*/
-#include "thrift.h"
-#include "protocol/thrift_binary_protocol.h"
-#include "protocol/thrift_binary_protocol_factory.h"
+#include <thrift/thrift.h>
+#include <thrift/protocol/thrift_binary_protocol.h>
+#include <thrift/protocol/thrift_binary_protocol_factory.h>
G_DEFINE_TYPE(ThriftBinaryProtocolFactory, thrift_binary_protocol_factory, THRIFT_TYPE_PROTOCOL_FACTORY)
#include <glib-object.h>
-#include "protocol/thrift_protocol_factory.h"
+#include <thrift/protocol/thrift_protocol_factory.h>
G_BEGIN_DECLS
* under the License.
*/
-#include "thrift.h"
-#include "protocol/thrift_protocol.h"
-#include "transport/thrift_transport.h"
+#include <thrift/thrift.h>
+#include <thrift/protocol/thrift_protocol.h>
+#include <thrift/transport/thrift_transport.h>
/* define the GError domain string */
#define THRIFT_PROTOCOL_ERROR_DOMAIN "thrift-protocol-error-quark"
#include <glib-object.h>
-#include "transport/thrift_transport.h"
+#include <thrift/transport/thrift_transport.h>
G_BEGIN_DECLS
* under the License.
*/
-#include "thrift.h"
-#include "protocol/thrift_protocol_factory.h"
+#include <thrift/thrift.h>
+#include <thrift/protocol/thrift_protocol_factory.h>
G_DEFINE_ABSTRACT_TYPE(ThriftProtocolFactory, thrift_protocol_factory, G_TYPE_OBJECT)
#include <glib-object.h>
-#include "transport/thrift_transport.h"
-#include "protocol/thrift_protocol.h"
+#include <thrift/transport/thrift_transport.h>
+#include <thrift/protocol/thrift_protocol.h>
G_BEGIN_DECLS
* under the License.
*/
-#include "thrift.h"
+#include <thrift/thrift.h>
#include "thrift_server.h"
/* object properties */
#include <glib-object.h>
-#include "processor/thrift_processor.h"
-#include "transport/thrift_server_transport.h"
-#include "transport/thrift_transport_factory.h"
-#include "protocol/thrift_protocol_factory.h"
+#include <thrift/processor/thrift_processor.h>
+#include <thrift/transport/thrift_server_transport.h>
+#include <thrift/transport/thrift_transport_factory.h>
+#include <thrift/protocol/thrift_protocol_factory.h>
G_BEGIN_DECLS
* under the License.
*/
-#include "server/thrift_simple_server.h"
-#include "transport/thrift_transport_factory.h"
-#include "protocol/thrift_protocol_factory.h"
-#include "protocol/thrift_binary_protocol_factory.h"
+#include <thrift/server/thrift_simple_server.h>
+#include <thrift/transport/thrift_transport_factory.h>
+#include <thrift/protocol/thrift_protocol_factory.h>
+#include <thrift/protocol/thrift_binary_protocol_factory.h>
G_DEFINE_TYPE(ThriftSimpleServer, thrift_simple_server, THRIFT_TYPE_SERVER)
#include <glib-object.h>
-#include "server/thrift_server.h"
+#include <thrift/server/thrift_server.h>
G_BEGIN_DECLS
* under the License.
*/
-#include "thrift.h"
+#include <thrift/thrift.h>
/**
* GHashTable callback to add keys to a GList.
*/
#include "thrift_application_exception.h"
-#include "protocol/thrift_protocol.h"
+#include <thrift/protocol/thrift_protocol.h>
G_DEFINE_TYPE(ThriftApplicationException, thrift_application_exception, THRIFT_TYPE_STRUCT)
* under the License.
*/
-#include "thrift.h"
+#include <thrift/thrift.h>
#include "thrift_struct.h"
G_DEFINE_ABSTRACT_TYPE(ThriftStruct, thrift_struct, G_TYPE_OBJECT)
#include <glib-object.h>
-#include "protocol/thrift_protocol.h"
+#include <thrift/protocol/thrift_protocol.h>
G_BEGIN_DECLS
#include <string.h>
#include <unistd.h>
-#include "thrift.h"
-#include "transport/thrift_transport.h"
-#include "transport/thrift_buffered_transport.h"
+#include <thrift/thrift.h>
+#include <thrift/transport/thrift_transport.h>
+#include <thrift/transport/thrift_buffered_transport.h>
/* object properties */
enum _ThriftBufferedTransportProperties
#include <glib.h>
#include <glib-object.h>
-#include "transport/thrift_transport.h"
+#include <thrift/transport/thrift_transport.h>
G_BEGIN_DECLS
#include <string.h>
#include <unistd.h>
-#include "thrift.h"
-#include "transport/thrift_transport.h"
-#include "transport/thrift_framed_transport.h"
+#include <thrift/thrift.h>
+#include <thrift/transport/thrift_transport.h>
+#include <thrift/transport/thrift_framed_transport.h>
/* object properties */
enum _ThriftFramedTransportProperties
#include <glib.h>
#include <glib-object.h>
-#include "transport/thrift_transport.h"
+#include <thrift/transport/thrift_transport.h>
G_BEGIN_DECLS
#include <string.h>
#include <unistd.h>
-#include "thrift.h"
-#include "transport/thrift_transport.h"
-#include "transport/thrift_memory_buffer.h"
+#include <thrift/thrift.h>
+#include <thrift/transport/thrift_transport.h>
+#include <thrift/transport/thrift_memory_buffer.h>
/* object properties */
enum _ThriftMemoryBufferProperties
#include <glib.h>
#include <glib-object.h>
-#include "transport/thrift_transport.h"
+#include <thrift/transport/thrift_transport.h>
G_BEGIN_DECLS
#include <stdlib.h>
#include <unistd.h>
-#include "thrift.h"
-#include "transport/thrift_socket.h"
-#include "transport/thrift_transport.h"
-#include "transport/thrift_server_transport.h"
-#include "transport/thrift_server_socket.h"
+#include <thrift/thrift.h>
+#include <thrift/transport/thrift_socket.h>
+#include <thrift/transport/thrift_transport.h>
+#include <thrift/transport/thrift_server_transport.h>
+#include <thrift/transport/thrift_server_socket.h>
/* object properties */
enum _ThriftServerSocketProperties
* under the License.
*/
-#include "thrift.h"
-#include "transport/thrift_transport.h"
-#include "transport/thrift_server_transport.h"
+#include <thrift/thrift.h>
+#include <thrift/transport/thrift_transport.h>
+#include <thrift/transport/thrift_server_transport.h>
G_DEFINE_ABSTRACT_TYPE(ThriftServerTransport, thrift_server_transport, G_TYPE_OBJECT)
#include <string.h>
#include <unistd.h>
-#include "thrift.h"
-#include "transport/thrift_transport.h"
-#include "transport/thrift_socket.h"
+#include <thrift/thrift.h>
+#include <thrift/transport/thrift_transport.h>
+#include <thrift/transport/thrift_socket.h>
/* object properties */
enum _ThriftSocketProperties
#include <glib-object.h>
-#include "transport/thrift_transport.h"
+#include <thrift/transport/thrift_transport.h>
G_BEGIN_DECLS
* under the License.
*/
-#include "thrift.h"
-#include "transport/thrift_transport.h"
+#include <thrift/thrift.h>
+#include <thrift/transport/thrift_transport.h>
/* define the GError domain string */
#define THRIFT_TRANSPORT_ERROR_DOMAIN "thrift-transport-error-quark"
* under the License.
*/
-#include "thrift.h"
-#include "transport/thrift_transport_factory.h"
+#include <thrift/thrift.h>
+#include <thrift/transport/thrift_transport_factory.h>
G_DEFINE_TYPE(ThriftTransportFactory, thrift_transport_factory, G_TYPE_OBJECT)
#include <netdb.h>
#include <string.h>
-#include "protocol/thrift_protocol.h"
-#include "transport/thrift_socket.h"
-#include "transport/thrift_server_socket.h"
+#include <thrift/protocol/thrift_protocol.h>
+#include <thrift/transport/thrift_socket.h>
+#include <thrift/transport/thrift_server_socket.h>
#define TEST_BOOL TRUE
#define TEST_BYTE 123
#include <assert.h>
#include <netdb.h>
-#include "transport/thrift_transport.h"
-#include "transport/thrift_socket.h"
-#include "transport/thrift_server_transport.h"
-#include "transport/thrift_server_socket.h"
+#include <thrift/transport/thrift_transport.h>
+#include <thrift/transport/thrift_socket.h>
+#include <thrift/transport/thrift_server_transport.h>
+#include <thrift/transport/thrift_server_socket.h>
#define TEST_DATA { 'a', 'b', 'c', 'd', 'e', 'f', 'g', 'h', 'i', 'j' }
#include <assert.h>
#include <netdb.h>
-#include "transport/thrift_transport.h"
-#include "transport/thrift_socket.h"
-#include "transport/thrift_server_transport.h"
-#include "transport/thrift_server_socket.h"
+#include <thrift/transport/thrift_transport.h>
+#include <thrift/transport/thrift_socket.h>
+#include <thrift/transport/thrift_server_transport.h>
+#include <thrift/transport/thrift_server_socket.h>
#define TEST_DATA { 'a', 'b', 'c', 'd', 'e', 'f', 'g', 'h', 'i', 'j' }
#include <assert.h>
#include <netdb.h>
-#include "transport/thrift_transport.h"
-#include "transport/thrift_socket.h"
-#include "transport/thrift_server_transport.h"
-#include "transport/thrift_server_socket.h"
+#include <thrift/transport/thrift_transport.h>
+#include <thrift/transport/thrift_socket.h>
+#include <thrift/transport/thrift_server_transport.h>
+#include <thrift/transport/thrift_server_socket.h>
#define TEST_DATA { 'a', 'b', 'c', 'd', 'e', 'f', 'g', 'h', 'i', 'j' }
#include <glib.h>
#include "thrift_struct.h"
-#include "protocol/thrift_protocol.h"
-#include "protocol/thrift_binary_protocol.h"
-#include "transport/thrift_memory_buffer.h"
+#include <thrift/protocol/thrift_protocol.h>
+#include <thrift/protocol/thrift_binary_protocol.h>
+#include <thrift/transport/thrift_memory_buffer.h>
#include "gen-c_glib/t_test_optional_required_test_types.h"
#include "gen-c_glib/t_test_optional_required_test_types.c"
#include <sys/types.h>
#include <sys/wait.h>
-#include "thrift.h"
-#include "processor/thrift_processor.h"
-#include "transport/thrift_server_socket.h"
+#include <thrift/thrift.h>
+#include <thrift/processor/thrift_processor.h>
+#include <thrift/transport/thrift_server_socket.h>
#define TEST_PORT 51199
-#include "server/thrift_simple_server.c"
+#include <thrift/server/thrift_simple_server.c>
/* create a rudimentary processor */
#define TEST_PROCESSOR_TYPE (test_processor_get_type ())
#include <assert.h>
#include <netdb.h>
-#include "transport/thrift_server_transport.h"
-#include "transport/thrift_server_socket.h"
+#include <thrift/transport/thrift_server_transport.h>
+#include <thrift/transport/thrift_server_socket.h>
static const char TEST_ADDRESS[] = "localhost";
static const int TEST_PORT = 64444;
#include <signal.h>
#include <sys/types.h>
#include <sys/wait.h>
-#include <protocol/TBinaryProtocol.h>
-#include <protocol/TDebugProtocol.h>
-#include <server/TSimpleServer.h>
-#include <transport/TServerSocket.h>
+#include <thrift/protocol/TBinaryProtocol.h>
+#include <thrift/protocol/TDebugProtocol.h>
+#include <thrift/server/TSimpleServer.h>
+#include <thrift/transport/TServerSocket.h>
#include "ThriftTest.h"
#include "ThriftTest_types.h"
#include "t_test_thrift_test.h"
#include "t_test_thrift_test_types.h"
-#include "transport/thrift_socket.h"
-#include "protocol/thrift_protocol.h"
-#include "protocol/thrift_binary_protocol.h"
+#include <thrift/transport/thrift_socket.h>
+#include <thrift/protocol/thrift_protocol.h>
+#include <thrift/protocol/thrift_binary_protocol.h>
static void
test_thrift_client (void)
#include <assert.h>
#include <netdb.h>
-#include "transport/thrift_transport.h"
-#include "transport/thrift_server_transport.h"
-#include "transport/thrift_server_socket.h"
+#include <thrift/transport/thrift_transport.h>
+#include <thrift/transport/thrift_server_transport.h>
+#include <thrift/transport/thrift_server_socket.h>
#define TEST_DATA { 'a', 'b', 'c', 'd', 'e', 'f', 'g', 'h', 'i', 'j' }
endif
AM_CXXFLAGS = -Wall
-AM_CPPFLAGS = $(BOOST_CPPFLAGS) -I$(srcdir)/src
+AM_CPPFLAGS = $(BOOST_CPPFLAGS) -I$(srcdir)/src -I$(srcdir)/src/thrift
AM_LDFLAGS = $(BOOST_LDFLAGS)
# Define the source files for the module
-libthrift_la_SOURCES = src/Thrift.cpp \
- src/TApplicationException.cpp \
- src/VirtualProfiling.cpp \
- src/concurrency/ThreadManager.cpp \
- src/concurrency/TimerManager.cpp \
- src/concurrency/Util.cpp \
- src/protocol/TDebugProtocol.cpp \
- src/protocol/TDenseProtocol.cpp \
- src/protocol/TJSONProtocol.cpp \
- src/protocol/TBase64Utils.cpp \
- src/transport/TTransportException.cpp \
- src/transport/TFDTransport.cpp \
- src/transport/TFileTransport.cpp \
- src/transport/TSimpleFileTransport.cpp \
- src/transport/THttpTransport.cpp \
- src/transport/THttpClient.cpp \
- src/transport/THttpServer.cpp \
- src/transport/TSocket.cpp \
- src/transport/TSSLSocket.cpp \
- src/transport/TSocketPool.cpp \
- src/transport/TServerSocket.cpp \
- src/transport/TSSLServerSocket.cpp \
- src/transport/TTransportUtils.cpp \
- src/transport/TBufferTransports.cpp \
- src/server/TServer.cpp \
- src/server/TSimpleServer.cpp \
- src/server/TThreadPoolServer.cpp \
- src/server/TThreadedServer.cpp \
- src/async/TAsyncChannel.cpp \
- src/processor/PeekProcessor.cpp
+libthrift_la_SOURCES = src/thrift/Thrift.cpp \
+ src/thrift/TApplicationException.cpp \
+ src/thrift/VirtualProfiling.cpp \
+ src/thrift/concurrency/ThreadManager.cpp \
+ src/thrift/concurrency/TimerManager.cpp \
+ src/thrift/concurrency/Util.cpp \
+ src/thrift/protocol/TDebugProtocol.cpp \
+ src/thrift/protocol/TDenseProtocol.cpp \
+ src/thrift/protocol/TJSONProtocol.cpp \
+ src/thrift/protocol/TBase64Utils.cpp \
+ src/thrift/transport/TTransportException.cpp \
+ src/thrift/transport/TFDTransport.cpp \
+ src/thrift/transport/TFileTransport.cpp \
+ src/thrift/transport/TSimpleFileTransport.cpp \
+ src/thrift/transport/THttpTransport.cpp \
+ src/thrift/transport/THttpClient.cpp \
+ src/thrift/transport/THttpServer.cpp \
+ src/thrift/transport/TSocket.cpp \
+ src/thrift/transport/TSSLSocket.cpp \
+ src/thrift/transport/TSocketPool.cpp \
+ src/thrift/transport/TServerSocket.cpp \
+ src/thrift/transport/TSSLServerSocket.cpp \
+ src/thrift/transport/TTransportUtils.cpp \
+ src/thrift/transport/TBufferTransports.cpp \
+ src/thrift/server/TServer.cpp \
+ src/thrift/server/TSimpleServer.cpp \
+ src/thrift/server/TThreadPoolServer.cpp \
+ src/thrift/server/TThreadedServer.cpp \
+ src/thrift/async/TAsyncChannel.cpp \
+ src/thrift/processor/PeekProcessor.cpp
if WITH_BOOSTTHREADS
-libthrift_la_SOURCES += src/concurrency/BoostThreadFactory.cpp \
- src/concurrency/BoostMonitor.cpp \
- src/concurrency/BoostMutex.cpp
+libthrift_la_SOURCES += src/thrift/concurrency/BoostThreadFactory.cpp \
+ src/thrift/concurrency/BoostMonitor.cpp \
+ src/thrift/concurrency/BoostMutex.cpp
else
-libthrift_la_SOURCES += src/concurrency/Mutex.cpp \
- src/concurrency/Monitor.cpp \
- src/concurrency/PosixThreadFactory.cpp
+libthrift_la_SOURCES += src/thrift/concurrency/Mutex.cpp \
+ src/thrift/concurrency/Monitor.cpp \
+ src/thrift/concurrency/PosixThreadFactory.cpp
endif
-libthriftnb_la_SOURCES = src/server/TNonblockingServer.cpp \
- src/async/TAsyncProtocolProcessor.cpp \
- src/async/TEvhttpServer.cpp \
- src/async/TEvhttpClientChannel.cpp
+libthriftnb_la_SOURCES = src/thrift/server/TNonblockingServer.cpp \
+ src/thrift/async/TAsyncProtocolProcessor.cpp \
+ src/thrift/async/TEvhttpServer.cpp \
+ src/thrift/async/TEvhttpClientChannel.cpp
-libthriftz_la_SOURCES = src/transport/TZlibTransport.cpp
+libthriftz_la_SOURCES = src/thrift/transport/TZlibTransport.cpp
libthriftqt_la_MOC = src/qt/moc_TQTcpServer.cpp
libthriftqt_la_SOURCES = $(libthriftqt_la_MOC) \
- src/qt/TQIODeviceTransport.cpp \
- src/qt/TQTcpServer.cpp
+ src/thrift/qt/TQIODeviceTransport.cpp \
+ src/thrift/qt/TQTcpServer.cpp
CLEANFILES = $(libthriftqt_la_MOC)
# Flags for the various libraries
include_thriftdir = $(includedir)/thrift
include_thrift_HEADERS = \
$(top_builddir)/config.h \
- src/TDispatchProcessor.h \
- src/Thrift.h \
- src/TReflectionLocal.h \
- src/TProcessor.h \
- src/TApplicationException.h \
- src/TLogging.h
+ src/thrift/TDispatchProcessor.h \
+ src/thrift/Thrift.h \
+ src/thrift/TReflectionLocal.h \
+ src/thrift/TProcessor.h \
+ src/thrift/TApplicationException.h \
+ src/thrift/TLogging.h
include_concurrencydir = $(include_thriftdir)/concurrency
include_concurrency_HEADERS = \
- src/concurrency/BoostThreadFactory.h \
- src/concurrency/Exception.h \
- src/concurrency/Mutex.h \
- src/concurrency/Monitor.h \
- src/concurrency/PlatformThreadFactory.h \
- src/concurrency/PosixThreadFactory.h \
- src/concurrency/Thread.h \
- src/concurrency/ThreadManager.h \
- src/concurrency/TimerManager.h \
- src/concurrency/FunctionRunner.h \
- src/concurrency/Util.h
+ src/thrift/concurrency/BoostThreadFactory.h \
+ src/thrift/concurrency/Exception.h \
+ src/thrift/concurrency/Mutex.h \
+ src/thrift/concurrency/Monitor.h \
+ src/thrift/concurrency/PlatformThreadFactory.h \
+ src/thrift/concurrency/PosixThreadFactory.h \
+ src/thrift/concurrency/Thread.h \
+ src/thrift/concurrency/ThreadManager.h \
+ src/thrift/concurrency/TimerManager.h \
+ src/thrift/concurrency/FunctionRunner.h \
+ src/thrift/concurrency/Util.h
include_protocoldir = $(include_thriftdir)/protocol
include_protocol_HEADERS = \
- src/protocol/TBinaryProtocol.h \
- src/protocol/TBinaryProtocol.tcc \
- src/protocol/TCompactProtocol.h \
- src/protocol/TCompactProtocol.tcc \
- src/protocol/TDenseProtocol.h \
- src/protocol/TDebugProtocol.h \
- src/protocol/TBase64Utils.h \
- src/protocol/TJSONProtocol.h \
- src/protocol/TProtocolTap.h \
- src/protocol/TProtocolException.h \
- src/protocol/TVirtualProtocol.h \
- src/protocol/TProtocol.h
+ src/thrift/protocol/TBinaryProtocol.h \
+ src/thrift/protocol/TBinaryProtocol.tcc \
+ src/thrift/protocol/TCompactProtocol.h \
+ src/thrift/protocol/TCompactProtocol.tcc \
+ src/thrift/protocol/TDenseProtocol.h \
+ src/thrift/protocol/TDebugProtocol.h \
+ src/thrift/protocol/TBase64Utils.h \
+ src/thrift/protocol/TJSONProtocol.h \
+ src/thrift/protocol/TProtocolTap.h \
+ src/thrift/protocol/TProtocolException.h \
+ src/thrift/protocol/TVirtualProtocol.h \
+ src/thrift/protocol/TProtocol.h
include_transportdir = $(include_thriftdir)/transport
include_transport_HEADERS = \
- src/transport/TFDTransport.h \
- src/transport/TFileTransport.h \
- src/transport/TSimpleFileTransport.h \
- src/transport/TServerSocket.h \
- src/transport/TSSLServerSocket.h \
- src/transport/TServerTransport.h \
- src/transport/THttpTransport.h \
- src/transport/THttpClient.h \
- src/transport/THttpServer.h \
- src/transport/TSocket.h \
- src/transport/TSSLSocket.h \
- src/transport/TSocketPool.h \
- src/transport/TVirtualTransport.h \
- src/transport/TTransport.h \
- src/transport/TTransportException.h \
- src/transport/TTransportUtils.h \
- src/transport/TBufferTransports.h \
- src/transport/TShortReadTransport.h \
- src/transport/TZlibTransport.h
+ src/thrift/transport/TFDTransport.h \
+ src/thrift/transport/TFileTransport.h \
+ src/thrift/transport/TSimpleFileTransport.h \
+ src/thrift/transport/TServerSocket.h \
+ src/thrift/transport/TSSLServerSocket.h \
+ src/thrift/transport/TServerTransport.h \
+ src/thrift/transport/THttpTransport.h \
+ src/thrift/transport/THttpClient.h \
+ src/thrift/transport/THttpServer.h \
+ src/thrift/transport/TSocket.h \
+ src/thrift/transport/TSSLSocket.h \
+ src/thrift/transport/TSocketPool.h \
+ src/thrift/transport/TVirtualTransport.h \
+ src/thrift/transport/TTransport.h \
+ src/thrift/transport/TTransportException.h \
+ src/thrift/transport/TTransportUtils.h \
+ src/thrift/transport/TBufferTransports.h \
+ src/thrift/transport/TShortReadTransport.h \
+ src/thrift/transport/TZlibTransport.h
include_serverdir = $(include_thriftdir)/server
include_server_HEADERS = \
- src/server/TServer.h \
- src/server/TSimpleServer.h \
- src/server/TThreadPoolServer.h \
- src/server/TThreadedServer.h \
- src/server/TNonblockingServer.h
+ src/thrift/server/TServer.h \
+ src/thrift/server/TSimpleServer.h \
+ src/thrift/server/TThreadPoolServer.h \
+ src/thrift/server/TThreadedServer.h \
+ src/thrift/server/TNonblockingServer.h
include_processordir = $(include_thriftdir)/processor
include_processor_HEADERS = \
- src/processor/PeekProcessor.h \
- src/processor/StatsProcessor.h
+ src/thrift/processor/PeekProcessor.h \
+ src/thrift/processor/StatsProcessor.h
include_asyncdir = $(include_thriftdir)/async
include_async_HEADERS = \
- src/async/TAsyncChannel.h \
- src/async/TAsyncDispatchProcessor.h \
- src/async/TAsyncProcessor.h \
- src/async/TAsyncBufferProcessor.h \
- src/async/TAsyncProtocolProcessor.h \
- src/async/TEvhttpClientChannel.h \
- src/async/TEvhttpServer.h
+ src/thrift/async/TAsyncChannel.h \
+ src/thrift/async/TAsyncDispatchProcessor.h \
+ src/thrift/async/TAsyncProcessor.h \
+ src/thrift/async/TAsyncBufferProcessor.h \
+ src/thrift/async/TAsyncProtocolProcessor.h \
+ src/thrift/async/TEvhttpClientChannel.h \
+ src/thrift/async/TEvhttpServer.h
include_qtdir = $(include_thriftdir)/qt
include_qt_HEADERS = \
- src/qt/TQIODeviceTransport.h \
- src/qt/TQTcpServer.h
+ src/thrift/qt/TQIODeviceTransport.h \
+ src/thrift/qt/TQTcpServer.h
noinst_PROGRAMS = concurrency_test
concurrency_test_SOURCES = \
- src/concurrency/test/Tests.cpp \
- src/concurrency/test/ThreadFactoryTests.h \
- src/concurrency/test/ThreadManagerTests.h \
- src/concurrency/test/TimerManagerTests.h
+ src/thrift/concurrency/test/Tests.cpp \
+ src/thrift/concurrency/test/ThreadFactoryTests.h \
+ src/thrift/concurrency/test/ThreadManagerTests.h \
+ src/thrift/concurrency/test/TimerManagerTests.h
concurrency_test_LDADD = libthrift.la
</ProjectConfiguration>
</ItemGroup>
<ItemGroup>
- <ClCompile Include="src\async\TAsyncChannel.cpp">
+ <ClCompile Include="src\thrift\thrift\async\TAsyncChannel.cpp">
<PreprocessorDefinitions Condition="'$(Configuration)|$(Platform)'=='Debug|Win32'">_CRT_SECURE_NO_WARNINGS;%(PreprocessorDefinitions)</PreprocessorDefinitions>
<PreprocessorDefinitions Condition="'$(Configuration)|$(Platform)'=='Debug|x64'">_CRT_SECURE_NO_WARNINGS;%(PreprocessorDefinitions)</PreprocessorDefinitions>
<PreprocessorDefinitions Condition="'$(Configuration)|$(Platform)'=='Release|Win32'">_CRT_SECURE_NO_WARNINGS;%(PreprocessorDefinitions)</PreprocessorDefinitions>
<PreprocessorDefinitions Condition="'$(Configuration)|$(Platform)'=='Release|x64'">_CRT_SECURE_NO_WARNINGS;%(PreprocessorDefinitions)</PreprocessorDefinitions>
</ClCompile>
- <ClCompile Include="src\concurrency\BoostMonitor.cpp" />
- <ClCompile Include="src\concurrency\BoostMutex.cpp" />
- <ClCompile Include="src\concurrency\BoostThreadFactory.cpp" />
- <ClCompile Include="src\concurrency\ThreadManager.cpp">
+ <ClCompile Include="src\thrift\thrift\concurrency\BoostMonitor.cpp" />
+ <ClCompile Include="src\thrift\thrift\concurrency\BoostMutex.cpp" />
+ <ClCompile Include="src\thrift\thrift\concurrency\BoostThreadFactory.cpp" />
+ <ClCompile Include="src\thrift\thrift\concurrency\ThreadManager.cpp">
<PreprocessorDefinitions Condition="'$(Configuration)|$(Platform)'=='Debug|Win32'">_CRT_SECURE_NO_WARNINGS;%(PreprocessorDefinitions)</PreprocessorDefinitions>
<PreprocessorDefinitions Condition="'$(Configuration)|$(Platform)'=='Debug|x64'">_CRT_SECURE_NO_WARNINGS;%(PreprocessorDefinitions)</PreprocessorDefinitions>
<PreprocessorDefinitions Condition="'$(Configuration)|$(Platform)'=='Release|Win32'">_CRT_SECURE_NO_WARNINGS;%(PreprocessorDefinitions)</PreprocessorDefinitions>
<PreprocessorDefinitions Condition="'$(Configuration)|$(Platform)'=='Release|x64'">_CRT_SECURE_NO_WARNINGS;%(PreprocessorDefinitions)</PreprocessorDefinitions>
</ClCompile>
- <ClCompile Include="src\concurrency\TimerManager.cpp">
+ <ClCompile Include="src\thrift\thrift\concurrency\TimerManager.cpp">
<PreprocessorDefinitions Condition="'$(Configuration)|$(Platform)'=='Debug|Win32'">_CRT_SECURE_NO_WARNINGS;%(PreprocessorDefinitions)</PreprocessorDefinitions>
<PreprocessorDefinitions Condition="'$(Configuration)|$(Platform)'=='Debug|x64'">_CRT_SECURE_NO_WARNINGS;%(PreprocessorDefinitions)</PreprocessorDefinitions>
<PreprocessorDefinitions Condition="'$(Configuration)|$(Platform)'=='Release|Win32'">_CRT_SECURE_NO_WARNINGS;%(PreprocessorDefinitions)</PreprocessorDefinitions>
<PreprocessorDefinitions Condition="'$(Configuration)|$(Platform)'=='Release|x64'">_CRT_SECURE_NO_WARNINGS;%(PreprocessorDefinitions)</PreprocessorDefinitions>
</ClCompile>
- <ClCompile Include="src\concurrency\Util.cpp">
+ <ClCompile Include="src\thrift\thrift\concurrency\Util.cpp">
<PreprocessorDefinitions Condition="'$(Configuration)|$(Platform)'=='Debug|Win32'">%(PreprocessorDefinitions)</PreprocessorDefinitions>
<PreprocessorDefinitions Condition="'$(Configuration)|$(Platform)'=='Debug|x64'">%(PreprocessorDefinitions)</PreprocessorDefinitions>
<PreprocessorDefinitions Condition="'$(Configuration)|$(Platform)'=='Release|Win32'">%(PreprocessorDefinitions)</PreprocessorDefinitions>
<PreprocessorDefinitions Condition="'$(Configuration)|$(Platform)'=='Release|x64'">%(PreprocessorDefinitions)</PreprocessorDefinitions>
</ClCompile>
- <ClCompile Include="src\processor\PeekProcessor.cpp">
+ <ClCompile Include="src\thrift\thrift\processor\PeekProcessor.cpp">
<PreprocessorDefinitions Condition="'$(Configuration)|$(Platform)'=='Debug|Win32'">_CRT_SECURE_NO_WARNINGS;%(PreprocessorDefinitions)</PreprocessorDefinitions>
<PreprocessorDefinitions Condition="'$(Configuration)|$(Platform)'=='Debug|x64'">_CRT_SECURE_NO_WARNINGS;%(PreprocessorDefinitions)</PreprocessorDefinitions>
<PreprocessorDefinitions Condition="'$(Configuration)|$(Platform)'=='Release|Win32'">_CRT_SECURE_NO_WARNINGS;%(PreprocessorDefinitions)</PreprocessorDefinitions>
<PreprocessorDefinitions Condition="'$(Configuration)|$(Platform)'=='Release|x64'">_CRT_SECURE_NO_WARNINGS;%(PreprocessorDefinitions)</PreprocessorDefinitions>
</ClCompile>
- <ClCompile Include="src\protocol\TBase64Utils.cpp" />
- <ClCompile Include="src\protocol\TDebugProtocol.cpp">
+ <ClCompile Include="src\thrift\thrift\protocol\TBase64Utils.cpp" />
+ <ClCompile Include="src\thrift\thrift\protocol\TDebugProtocol.cpp">
<PreprocessorDefinitions Condition="'$(Configuration)|$(Platform)'=='Debug|Win32'">_CRT_SECURE_NO_WARNINGS;%(PreprocessorDefinitions)</PreprocessorDefinitions>
<PreprocessorDefinitions Condition="'$(Configuration)|$(Platform)'=='Debug|x64'">_CRT_SECURE_NO_WARNINGS;%(PreprocessorDefinitions)</PreprocessorDefinitions>
<PreprocessorDefinitions Condition="'$(Configuration)|$(Platform)'=='Release|Win32'">_CRT_SECURE_NO_WARNINGS;%(PreprocessorDefinitions)</PreprocessorDefinitions>
<PreprocessorDefinitions Condition="'$(Configuration)|$(Platform)'=='Release|x64'">_CRT_SECURE_NO_WARNINGS;%(PreprocessorDefinitions)</PreprocessorDefinitions>
</ClCompile>
- <ClCompile Include="src\protocol\TDenseProtocol.cpp">
+ <ClCompile Include="src\thrift\thrift\protocol\TDenseProtocol.cpp">
<PreprocessorDefinitions Condition="'$(Configuration)|$(Platform)'=='Debug|Win32'">_CRT_SECURE_NO_WARNINGS;%(PreprocessorDefinitions)</PreprocessorDefinitions>
<PreprocessorDefinitions Condition="'$(Configuration)|$(Platform)'=='Debug|x64'">_CRT_SECURE_NO_WARNINGS;%(PreprocessorDefinitions)</PreprocessorDefinitions>
<PreprocessorDefinitions Condition="'$(Configuration)|$(Platform)'=='Release|Win32'">_CRT_SECURE_NO_WARNINGS;%(PreprocessorDefinitions)</PreprocessorDefinitions>
<PreprocessorDefinitions Condition="'$(Configuration)|$(Platform)'=='Release|x64'">_CRT_SECURE_NO_WARNINGS;%(PreprocessorDefinitions)</PreprocessorDefinitions>
</ClCompile>
- <ClCompile Include="src\protocol\TJSONProtocol.cpp">
+ <ClCompile Include="src\thrift\thrift\protocol\TJSONProtocol.cpp">
<PreprocessorDefinitions Condition="'$(Configuration)|$(Platform)'=='Debug|Win32'">_CRT_SECURE_NO_WARNINGS;%(PreprocessorDefinitions)</PreprocessorDefinitions>
<PreprocessorDefinitions Condition="'$(Configuration)|$(Platform)'=='Debug|x64'">_CRT_SECURE_NO_WARNINGS;%(PreprocessorDefinitions)</PreprocessorDefinitions>
<PreprocessorDefinitions Condition="'$(Configuration)|$(Platform)'=='Release|Win32'">_CRT_SECURE_NO_WARNINGS;%(PreprocessorDefinitions)</PreprocessorDefinitions>
<PreprocessorDefinitions Condition="'$(Configuration)|$(Platform)'=='Release|x64'">_CRT_SECURE_NO_WARNINGS;%(PreprocessorDefinitions)</PreprocessorDefinitions>
</ClCompile>
- <ClCompile Include="src\server\TSimpleServer.cpp">
+ <ClCompile Include="src\thrift\thrift\server\TSimpleServer.cpp">
<PreprocessorDefinitions Condition="'$(Configuration)|$(Platform)'=='Debug|Win32'">_CRT_SECURE_NO_WARNINGS;%(PreprocessorDefinitions)</PreprocessorDefinitions>
<PreprocessorDefinitions Condition="'$(Configuration)|$(Platform)'=='Debug|x64'">_CRT_SECURE_NO_WARNINGS;%(PreprocessorDefinitions)</PreprocessorDefinitions>
<PreprocessorDefinitions Condition="'$(Configuration)|$(Platform)'=='Release|Win32'">_CRT_SECURE_NO_WARNINGS;%(PreprocessorDefinitions)</PreprocessorDefinitions>
<PreprocessorDefinitions Condition="'$(Configuration)|$(Platform)'=='Release|x64'">_CRT_SECURE_NO_WARNINGS;%(PreprocessorDefinitions)</PreprocessorDefinitions>
</ClCompile>
- <ClCompile Include="src\server\TThreadPoolServer.cpp">
+ <ClCompile Include="src\thrift\thrift\server\TThreadPoolServer.cpp">
<PreprocessorDefinitions Condition="'$(Configuration)|$(Platform)'=='Debug|Win32'">_CRT_SECURE_NO_WARNINGS;%(PreprocessorDefinitions)</PreprocessorDefinitions>
<PreprocessorDefinitions Condition="'$(Configuration)|$(Platform)'=='Debug|x64'">_CRT_SECURE_NO_WARNINGS;%(PreprocessorDefinitions)</PreprocessorDefinitions>
<PreprocessorDefinitions Condition="'$(Configuration)|$(Platform)'=='Release|Win32'">_CRT_SECURE_NO_WARNINGS;%(PreprocessorDefinitions)</PreprocessorDefinitions>
<PreprocessorDefinitions Condition="'$(Configuration)|$(Platform)'=='Release|x64'">_CRT_SECURE_NO_WARNINGS;%(PreprocessorDefinitions)</PreprocessorDefinitions>
</ClCompile>
- <ClCompile Include="src\TApplicationException.cpp">
+ <ClCompile Include="src\thrift\thrift\TApplicationException.cpp">
<PreprocessorDefinitions Condition="'$(Configuration)|$(Platform)'=='Debug|Win32'">_CRT_SECURE_NO_WARNINGS;%(PreprocessorDefinitions)</PreprocessorDefinitions>
<PreprocessorDefinitions Condition="'$(Configuration)|$(Platform)'=='Debug|x64'">_CRT_SECURE_NO_WARNINGS;%(PreprocessorDefinitions)</PreprocessorDefinitions>
<PreprocessorDefinitions Condition="'$(Configuration)|$(Platform)'=='Release|Win32'">_CRT_SECURE_NO_WARNINGS;%(PreprocessorDefinitions)</PreprocessorDefinitions>
<PreprocessorDefinitions Condition="'$(Configuration)|$(Platform)'=='Release|x64'">_CRT_SECURE_NO_WARNINGS;%(PreprocessorDefinitions)</PreprocessorDefinitions>
</ClCompile>
- <ClCompile Include="src\Thrift.cpp">
+ <ClCompile Include="src\thrift\thrift\Thrift.cpp">
<PreprocessorDefinitions Condition="'$(Configuration)|$(Platform)'=='Debug|Win32'">_CRT_SECURE_NO_WARNINGS;%(PreprocessorDefinitions)</PreprocessorDefinitions>
<PreprocessorDefinitions Condition="'$(Configuration)|$(Platform)'=='Debug|x64'">_CRT_SECURE_NO_WARNINGS;%(PreprocessorDefinitions)</PreprocessorDefinitions>
<PreprocessorDefinitions Condition="'$(Configuration)|$(Platform)'=='Release|Win32'">_CRT_SECURE_NO_WARNINGS;%(PreprocessorDefinitions)</PreprocessorDefinitions>
<PreprocessorDefinitions Condition="'$(Configuration)|$(Platform)'=='Release|x64'">_CRT_SECURE_NO_WARNINGS;%(PreprocessorDefinitions)</PreprocessorDefinitions>
</ClCompile>
- <ClCompile Include="src\transport\TBufferTransports.cpp">
+ <ClCompile Include="src\thrift\thrift\transport\TBufferTransports.cpp">
<PreprocessorDefinitions Condition="'$(Configuration)|$(Platform)'=='Debug|Win32'">_CRT_SECURE_NO_WARNINGS;%(PreprocessorDefinitions)</PreprocessorDefinitions>
<PreprocessorDefinitions Condition="'$(Configuration)|$(Platform)'=='Debug|x64'">_CRT_SECURE_NO_WARNINGS;%(PreprocessorDefinitions)</PreprocessorDefinitions>
<PreprocessorDefinitions Condition="'$(Configuration)|$(Platform)'=='Release|Win32'">_CRT_SECURE_NO_WARNINGS;%(PreprocessorDefinitions)</PreprocessorDefinitions>
<PreprocessorDefinitions Condition="'$(Configuration)|$(Platform)'=='Release|x64'">_CRT_SECURE_NO_WARNINGS;%(PreprocessorDefinitions)</PreprocessorDefinitions>
</ClCompile>
- <ClCompile Include="src\transport\TFDTransport.cpp" />
- <ClCompile Include="src\transport\TFileTransport.cpp">
+ <ClCompile Include="src\thrift\thrift\transport\TFDTransport.cpp" />
+ <ClCompile Include="src\thrift\thrift\transport\TFileTransport.cpp">
<ExcludedFromBuild Condition="'$(Configuration)|$(Platform)'=='Release|Win32'">true</ExcludedFromBuild>
<ExcludedFromBuild Condition="'$(Configuration)|$(Platform)'=='Release|x64'">true</ExcludedFromBuild>
</ClCompile>
- <ClCompile Include="src\transport\THttpClient.cpp" />
- <ClCompile Include="src\transport\THttpServer.cpp" />
- <ClCompile Include="src\transport\THttpTransport.cpp">
+ <ClCompile Include="src\thrift\thrift\transport\THttpClient.cpp" />
+ <ClCompile Include="src\thrift\thrift\transport\THttpServer.cpp" />
+ <ClCompile Include="src\thrift\thrift\transport\THttpTransport.cpp">
<PreprocessorDefinitions Condition="'$(Configuration)|$(Platform)'=='Debug|Win32'">_CRT_SECURE_NO_WARNINGS;%(PreprocessorDefinitions)</PreprocessorDefinitions>
<PreprocessorDefinitions Condition="'$(Configuration)|$(Platform)'=='Debug|x64'">_CRT_SECURE_NO_WARNINGS;%(PreprocessorDefinitions)</PreprocessorDefinitions>
<PreprocessorDefinitions Condition="'$(Configuration)|$(Platform)'=='Release|Win32'">_CRT_SECURE_NO_WARNINGS;%(PreprocessorDefinitions)</PreprocessorDefinitions>
<PreprocessorDefinitions Condition="'$(Configuration)|$(Platform)'=='Release|x64'">_CRT_SECURE_NO_WARNINGS;%(PreprocessorDefinitions)</PreprocessorDefinitions>
</ClCompile>
- <ClCompile Include="src\transport\TPipe.cpp" />
- <ClCompile Include="src\transport\TPipeServer.cpp" />
- <ClCompile Include="src\transport\TServerSocket.cpp">
+ <ClCompile Include="src\thrift\thrift\transport\TPipe.cpp" />
+ <ClCompile Include="src\thrift\thrift\transport\TPipeServer.cpp" />
+ <ClCompile Include="src\thrift\thrift\transport\TServerSocket.cpp">
<PreprocessorDefinitions Condition="'$(Configuration)|$(Platform)'=='Debug|Win32'">_CRT_SECURE_NO_WARNINGS;%(PreprocessorDefinitions)</PreprocessorDefinitions>
<PreprocessorDefinitions Condition="'$(Configuration)|$(Platform)'=='Debug|x64'">_CRT_SECURE_NO_WARNINGS;%(PreprocessorDefinitions)</PreprocessorDefinitions>
<PreprocessorDefinitions Condition="'$(Configuration)|$(Platform)'=='Release|Win32'">_CRT_SECURE_NO_WARNINGS;%(PreprocessorDefinitions)</PreprocessorDefinitions>
<PreprocessorDefinitions Condition="'$(Configuration)|$(Platform)'=='Release|x64'">_CRT_SECURE_NO_WARNINGS;%(PreprocessorDefinitions)</PreprocessorDefinitions>
</ClCompile>
- <ClCompile Include="src\transport\TSimpleFileTransport.cpp" />
- <ClCompile Include="src\transport\TSocket.cpp">
+ <ClCompile Include="src\thrift\thrift\transport\TSimpleFileTransport.cpp" />
+ <ClCompile Include="src\thrift\thrift\transport\TSocket.cpp">
<PreprocessorDefinitions Condition="'$(Configuration)|$(Platform)'=='Debug|Win32'">_CRT_SECURE_NO_WARNINGS;%(PreprocessorDefinitions)</PreprocessorDefinitions>
<PreprocessorDefinitions Condition="'$(Configuration)|$(Platform)'=='Debug|x64'">_CRT_SECURE_NO_WARNINGS;%(PreprocessorDefinitions)</PreprocessorDefinitions>
<PreprocessorDefinitions Condition="'$(Configuration)|$(Platform)'=='Release|Win32'">_CRT_SECURE_NO_WARNINGS;%(PreprocessorDefinitions)</PreprocessorDefinitions>
<PreprocessorDefinitions Condition="'$(Configuration)|$(Platform)'=='Release|x64'">_CRT_SECURE_NO_WARNINGS;%(PreprocessorDefinitions)</PreprocessorDefinitions>
</ClCompile>
- <ClCompile Include="src\transport\TSSLSocket.cpp">
+ <ClCompile Include="src\thrift\thrift\transport\TSSLSocket.cpp">
<ExcludedFromBuild Condition="'$(Configuration)|$(Platform)'=='Debug|Win32'">true</ExcludedFromBuild>
<ExcludedFromBuild Condition="'$(Configuration)|$(Platform)'=='Debug|x64'">true</ExcludedFromBuild>
<ExcludedFromBuild Condition="'$(Configuration)|$(Platform)'=='Release|Win32'">true</ExcludedFromBuild>
<ExcludedFromBuild Condition="'$(Configuration)|$(Platform)'=='Release|x64'">true</ExcludedFromBuild>
</ClCompile>
- <ClCompile Include="src\transport\TTransportException.cpp">
+ <ClCompile Include="src\thrift\thrift\transport\TTransportException.cpp">
<PreprocessorDefinitions Condition="'$(Configuration)|$(Platform)'=='Debug|Win32'">_CRT_SECURE_NO_WARNINGS;%(PreprocessorDefinitions)</PreprocessorDefinitions>
<PreprocessorDefinitions Condition="'$(Configuration)|$(Platform)'=='Debug|x64'">_CRT_SECURE_NO_WARNINGS;%(PreprocessorDefinitions)</PreprocessorDefinitions>
<PreprocessorDefinitions Condition="'$(Configuration)|$(Platform)'=='Release|Win32'">_CRT_SECURE_NO_WARNINGS;%(PreprocessorDefinitions)</PreprocessorDefinitions>
<PreprocessorDefinitions Condition="'$(Configuration)|$(Platform)'=='Release|x64'">_CRT_SECURE_NO_WARNINGS;%(PreprocessorDefinitions)</PreprocessorDefinitions>
</ClCompile>
- <ClCompile Include="src\transport\TTransportUtils.cpp">
+ <ClCompile Include="src\thrift\thrift\transport\TTransportUtils.cpp">
<PreprocessorDefinitions Condition="'$(Configuration)|$(Platform)'=='Debug|Win32'">_CRT_SECURE_NO_WARNINGS;%(PreprocessorDefinitions)</PreprocessorDefinitions>
<PreprocessorDefinitions Condition="'$(Configuration)|$(Platform)'=='Debug|x64'">_CRT_SECURE_NO_WARNINGS;%(PreprocessorDefinitions)</PreprocessorDefinitions>
<PreprocessorDefinitions Condition="'$(Configuration)|$(Platform)'=='Release|Win32'">_CRT_SECURE_NO_WARNINGS;%(PreprocessorDefinitions)</PreprocessorDefinitions>
<PreprocessorDefinitions Condition="'$(Configuration)|$(Platform)'=='Release|x64'">_CRT_SECURE_NO_WARNINGS;%(PreprocessorDefinitions)</PreprocessorDefinitions>
</ClCompile>
- <ClCompile Include="src\windows\GetTimeOfDay.cpp" />
- <ClCompile Include="src\windows\SocketPair.cpp" />
- <ClCompile Include="src\windows\StdAfx.cpp">
+ <ClCompile Include="src\thrift\thrift\windows\GetTimeOfDay.cpp" />
+ <ClCompile Include="src\thrift\thrift\windows\SocketPair.cpp" />
+ <ClCompile Include="src\thrift\thrift\windows\StdAfx.cpp">
<PrecompiledHeader Condition="'$(Configuration)|$(Platform)'=='Debug|Win32'">NotUsing</PrecompiledHeader>
<PrecompiledHeader Condition="'$(Configuration)|$(Platform)'=='Debug|x64'">NotUsing</PrecompiledHeader>
<PrecompiledHeader Condition="'$(Configuration)|$(Platform)'=='Release|Win32'">NotUsing</PrecompiledHeader>
<PrecompiledHeader Condition="'$(Configuration)|$(Platform)'=='Release|x64'">NotUsing</PrecompiledHeader>
</ClCompile>
- <ClCompile Include="src\windows\TWinsockSingleton.cpp" />
- <ClCompile Include="src\windows\WinFcntl.cpp" />
+ <ClCompile Include="src\thrift\thrift\windows\TWinsockSingleton.cpp" />
+ <ClCompile Include="src\thrift\thrift\windows\WinFcntl.cpp" />
</ItemGroup>
<ItemGroup>
- <ClInclude Include="src\async\TAsyncChannel.h" />
- <ClInclude Include="src\concurrency\BoostThreadFactory.h" />
- <ClInclude Include="src\concurrency\Exception.h" />
- <ClInclude Include="src\concurrency\PlatformThreadFactory.h" />
- <ClInclude Include="src\processor\PeekProcessor.h" />
- <ClInclude Include="src\protocol\TBinaryProtocol.h" />
- <ClInclude Include="src\protocol\TDebugProtocol.h" />
- <ClInclude Include="src\protocol\TDenseProtocol.h" />
- <ClInclude Include="src\protocol\TJSONProtocol.h" />
- <ClInclude Include="src\protocol\TProtocol.h" />
- <ClInclude Include="src\protocol\TVirtualProtocol.h" />
- <ClInclude Include="src\server\TServer.h" />
- <ClInclude Include="src\server\TSimpleServer.h" />
- <ClInclude Include="src\server\TThreadPoolServer.h" />
- <ClInclude Include="src\TApplicationException.h" />
- <ClInclude Include="src\Thrift.h" />
- <ClInclude Include="src\TProcessor.h" />
- <ClInclude Include="src\transport\TBufferTransports.h" />
- <ClInclude Include="src\transport\TFDTransport.h" />
- <ClInclude Include="src\transport\TFileTransport.h" />
- <ClInclude Include="src\transport\THttpClient.h" />
- <ClInclude Include="src\transport\THttpServer.h" />
- <ClInclude Include="src\transport\TPipe.h" />
- <ClInclude Include="src\transport\TPipeServer.h" />
- <ClInclude Include="src\transport\TServerSocket.h" />
- <ClInclude Include="src\transport\TServerTransport.h" />
- <ClInclude Include="src\transport\TSimpleFileTransport.h" />
- <ClInclude Include="src\transport\TSocket.h" />
- <ClInclude Include="src\transport\TSSLSocket.h" />
- <ClInclude Include="src\transport\TTransport.h" />
- <ClInclude Include="src\transport\TTransportException.h" />
- <ClInclude Include="src\transport\TTransportUtils.h" />
- <ClInclude Include="src\transport\TVirtualTransport.h" />
- <ClInclude Include="src\windows\config.h" />
- <ClInclude Include="src\windows\force_inc.h" />
- <ClInclude Include="src\windows\GetTimeOfDay.h" />
- <ClInclude Include="src\windows\Operators.h" />
- <ClInclude Include="src\windows\SocketPair.h" />
- <ClInclude Include="src\windows\StdAfx.h" />
- <ClInclude Include="src\windows\TargetVersion.h" />
- <ClInclude Include="src\windows\TWinsockSingleton.h" />
- <ClInclude Include="src\windows\WinFcntl.h" />
+ <ClInclude Include="src\thrift\thrift\async\TAsyncChannel.h" />
+ <ClInclude Include="src\thrift\thrift\concurrency\BoostThreadFactory.h" />
+ <ClInclude Include="src\thrift\thrift\concurrency\Exception.h" />
+ <ClInclude Include="src\thrift\thrift\concurrency\PlatformThreadFactory.h" />
+ <ClInclude Include="src\thrift\thrift\processor\PeekProcessor.h" />
+ <ClInclude Include="src\thrift\thrift\protocol\TBinaryProtocol.h" />
+ <ClInclude Include="src\thrift\thrift\protocol\TDebugProtocol.h" />
+ <ClInclude Include="src\thrift\thrift\protocol\TDenseProtocol.h" />
+ <ClInclude Include="src\thrift\thrift\protocol\TJSONProtocol.h" />
+ <ClInclude Include="src\thrift\thrift\protocol\TProtocol.h" />
+ <ClInclude Include="src\thrift\thrift\protocol\TVirtualProtocol.h" />
+ <ClInclude Include="src\thrift\thrift\server\TServer.h" />
+ <ClInclude Include="src\thrift\thrift\server\TSimpleServer.h" />
+ <ClInclude Include="src\thrift\thrift\server\TThreadPoolServer.h" />
+ <ClInclude Include="src\thrift\thrift\TApplicationException.h" />
+ <ClInclude Include="src\thrift\thrift\Thrift.h" />
+ <ClInclude Include="src\thrift\thrift\TProcessor.h" />
+ <ClInclude Include="src\thrift\thrift\transport\TBufferTransports.h" />
+ <ClInclude Include="src\thrift\thrift\transport\TFDTransport.h" />
+ <ClInclude Include="src\thrift\thrift\transport\TFileTransport.h" />
+ <ClInclude Include="src\thrift\thrift\transport\THttpClient.h" />
+ <ClInclude Include="src\thrift\thrift\transport\THttpServer.h" />
+ <ClInclude Include="src\thrift\thrift\transport\TPipe.h" />
+ <ClInclude Include="src\thrift\thrift\transport\TPipeServer.h" />
+ <ClInclude Include="src\thrift\thrift\transport\TServerSocket.h" />
+ <ClInclude Include="src\thrift\thrift\transport\TServerTransport.h" />
+ <ClInclude Include="src\thrift\thrift\transport\TSimpleFileTransport.h" />
+ <ClInclude Include="src\thrift\thrift\transport\TSocket.h" />
+ <ClInclude Include="src\thrift\thrift\transport\TSSLSocket.h" />
+ <ClInclude Include="src\thrift\thrift\transport\TTransport.h" />
+ <ClInclude Include="src\thrift\thrift\transport\TTransportException.h" />
+ <ClInclude Include="src\thrift\thrift\transport\TTransportUtils.h" />
+ <ClInclude Include="src\thrift\thrift\transport\TVirtualTransport.h" />
+ <ClInclude Include="src\thrift\thrift\windows\config.h" />
+ <ClInclude Include="src\thrift\thrift\windows\force_inc.h" />
+ <ClInclude Include="src\thrift\thrift\windows\GetTimeOfDay.h" />
+ <ClInclude Include="src\thrift\thrift\windows\Operators.h" />
+ <ClInclude Include="src\thrift\thrift\windows\SocketPair.h" />
+ <ClInclude Include="src\thrift\thrift\windows\StdAfx.h" />
+ <ClInclude Include="src\thrift\thrift\windows\TargetVersion.h" />
+ <ClInclude Include="src\thrift\thrift\windows\TWinsockSingleton.h" />
+ <ClInclude Include="src\thrift\thrift\windows\WinFcntl.h" />
</ItemGroup>
<ItemGroup>
- <None Include="src\protocol\TBinaryProtocol.tcc" />
- <None Include="src\windows\tr1\functional" />
+ <None Include="src\thrift\thrift\protocol\TBinaryProtocol.tcc" />
+ <None Include="src\thrift\thrift\windows\tr1\functional" />
</ItemGroup>
<PropertyGroup Label="Globals">
<ProjectGuid>{DD26F57E-60F2-4F37-A616-D219A9BF338F}</ProjectGuid>
</ImportGroup>
<PropertyGroup Label="UserMacros" />
<PropertyGroup Condition="'$(Configuration)|$(Platform)'=='Debug|Win32'">
- <IncludePath>$(ProjectDir)\src\;$(ProjectDir)\src\windows\;$(ProjectDir)\src\transport\;$(THIRD_PARTY)\boost\boost_1_47_0\include;$(THIRD_PARTY)\boost\boost_1_47_0\;$(THIRD_PARTY)\openssl\OpenSSL-Win32\include\;..\..\..\..\boost;..\..\..\..\boost\boost;$(IncludePath)</IncludePath>
+ <IncludePath>$(ProjectDir)\src\thrift\;$(ProjectDir)\src\windows\;$(ProjectDir)\src\transport\;$(THIRD_PARTY)\boost\boost_1_47_0\include;$(THIRD_PARTY)\boost\boost_1_47_0\;$(THIRD_PARTY)\openssl\OpenSSL-Win32\include\;..\..\..\..\boost;..\..\..\..\boost\boost;$(IncludePath)</IncludePath>
</PropertyGroup>
<PropertyGroup Condition="'$(Configuration)|$(Platform)'=='Debug|x64'">
- <IncludePath>$(ProjectDir)\src\;$(ProjectDir)\src\windows\;$(ProjectDir)\src\transport\;$(THIRD_PARTY)\boost\boost_1_47_0\include;$(THIRD_PARTY)\boost\boost_1_47_0\;$(THIRD_PARTY)\openssl\OpenSSL-Win32\include\;$(IncludePath)</IncludePath>
+ <IncludePath>$(ProjectDir)\src\thrift\;$(ProjectDir)\src\windows\;$(ProjectDir)\src\transport\;$(THIRD_PARTY)\boost\boost_1_47_0\include;$(THIRD_PARTY)\boost\boost_1_47_0\;$(THIRD_PARTY)\openssl\OpenSSL-Win32\include\;$(IncludePath)</IncludePath>
</PropertyGroup>
<PropertyGroup Condition="'$(Configuration)|$(Platform)'=='Release|Win32'">
- <IncludePath>$(ProjectDir)\src\;$(ProjectDir)\src\windows\;$(ProjectDir)\src\transport\;$(THIRD_PARTY)\boost\boost_1_47_0\include;$(THIRD_PARTY)\boost\boost_1_47_0\;$(THIRD_PARTY)\openssl\OpenSSL-Win32\include\;..\..\..\..\boost;..\..\..\..\boost\boost;$(IncludePath)</IncludePath>
+ <IncludePath>$(ProjectDir)\src\thrift\;$(ProjectDir)\src\windows\;$(ProjectDir)\src\transport\;$(THIRD_PARTY)\boost\boost_1_47_0\include;$(THIRD_PARTY)\boost\boost_1_47_0\;$(THIRD_PARTY)\openssl\OpenSSL-Win32\include\;..\..\..\..\boost;..\..\..\..\boost\boost;$(IncludePath)</IncludePath>
</PropertyGroup>
<PropertyGroup Condition="'$(Configuration)|$(Platform)'=='Release|x64'">
- <IncludePath>$(ProjectDir)\src\;$(ProjectDir)\src\windows\;$(ProjectDir)\src\transport\;$(THIRD_PARTY)\boost\boost_1_47_0\include;$(THIRD_PARTY)\boost\boost_1_47_0\;$(THIRD_PARTY)\openssl\OpenSSL-Win32\include\;$(IncludePath)</IncludePath>
+ <IncludePath>$(ProjectDir)\src\thrift\;$(ProjectDir)\src\windows\;$(ProjectDir)\src\transport\;$(THIRD_PARTY)\boost\boost_1_47_0\include;$(THIRD_PARTY)\boost\boost_1_47_0\;$(THIRD_PARTY)\openssl\OpenSSL-Win32\include\;$(IncludePath)</IncludePath>
</PropertyGroup>
<ItemDefinitionGroup Condition="'$(Configuration)|$(Platform)'=='Debug|Win32'">
<ClCompile>
<Import Project="$(VCTargetsPath)\Microsoft.Cpp.targets" />
<ImportGroup Label="ExtensionTargets">
</ImportGroup>
-</Project>
\ No newline at end of file
+</Project>
\feff<?xml version="1.0" encoding="utf-8"?>
<Project ToolsVersion="4.0" xmlns="http://schemas.microsoft.com/developer/msbuild/2003">
<ItemGroup>
- <ClCompile Include="src\transport\TBufferTransports.cpp">
+ <ClCompile Include="src\thrift\transport\TBufferTransports.cpp">
<Filter>transport</Filter>
</ClCompile>
- <ClCompile Include="src\Thrift.cpp" />
- <ClCompile Include="src\TApplicationException.cpp" />
- <ClCompile Include="src\windows\StdAfx.cpp">
+ <ClCompile Include="src\thrift\Thrift.cpp" />
+ <ClCompile Include="src\thrift\TApplicationException.cpp" />
+ <ClCompile Include="src\thrift\windows\StdAfx.cpp">
<Filter>windows</Filter>
</ClCompile>
- <ClCompile Include="src\transport\TTransportException.cpp">
+ <ClCompile Include="src\thrift\transport\TTransportException.cpp">
<Filter>transport</Filter>
</ClCompile>
- <ClCompile Include="src\windows\GetTimeOfDay.cpp">
+ <ClCompile Include="src\thrift\windows\GetTimeOfDay.cpp">
<Filter>windows</Filter>
</ClCompile>
- <ClCompile Include="src\concurrency\ThreadManager.cpp">
+ <ClCompile Include="src\thrift\concurrency\ThreadManager.cpp">
<Filter>concurrency</Filter>
</ClCompile>
- <ClCompile Include="src\concurrency\TimerManager.cpp">
+ <ClCompile Include="src\thrift\concurrency\TimerManager.cpp">
<Filter>concurrency</Filter>
</ClCompile>
- <ClCompile Include="src\concurrency\Util.cpp">
+ <ClCompile Include="src\thrift\concurrency\Util.cpp">
<Filter>concurrency</Filter>
</ClCompile>
- <ClCompile Include="src\protocol\TDebugProtocol.cpp">
+ <ClCompile Include="src\thrift\protocol\TDebugProtocol.cpp">
<Filter>protocal</Filter>
</ClCompile>
- <ClCompile Include="src\protocol\TDenseProtocol.cpp">
+ <ClCompile Include="src\thrift\protocol\TDenseProtocol.cpp">
<Filter>protocal</Filter>
</ClCompile>
- <ClCompile Include="src\protocol\TBase64Utils.cpp">
+ <ClCompile Include="src\thrift\protocol\TBase64Utils.cpp">
<Filter>protocal</Filter>
</ClCompile>
- <ClCompile Include="src\protocol\TJSONProtocol.cpp">
+ <ClCompile Include="src\thrift\protocol\TJSONProtocol.cpp">
<Filter>protocal</Filter>
</ClCompile>
- <ClCompile Include="src\transport\TFDTransport.cpp">
+ <ClCompile Include="src\thrift\transport\TFDTransport.cpp">
<Filter>transport</Filter>
</ClCompile>
- <ClCompile Include="src\transport\TFileTransport.cpp">
+ <ClCompile Include="src\thrift\transport\TFileTransport.cpp">
<Filter>transport</Filter>
</ClCompile>
- <ClCompile Include="src\transport\TSimpleFileTransport.cpp">
+ <ClCompile Include="src\thrift\transport\TSimpleFileTransport.cpp">
<Filter>transport</Filter>
</ClCompile>
- <ClCompile Include="src\transport\THttpTransport.cpp">
+ <ClCompile Include="src\thrift\transport\THttpTransport.cpp">
<Filter>transport</Filter>
</ClCompile>
- <ClCompile Include="src\transport\THttpClient.cpp">
+ <ClCompile Include="src\thrift\transport\THttpClient.cpp">
<Filter>transport</Filter>
</ClCompile>
- <ClCompile Include="src\transport\THttpServer.cpp">
+ <ClCompile Include="src\thrift\transport\THttpServer.cpp">
<Filter>transport</Filter>
</ClCompile>
- <ClCompile Include="src\transport\TSSLSocket.cpp">
+ <ClCompile Include="src\thrift\transport\TSSLSocket.cpp">
<Filter>transport</Filter>
</ClCompile>
- <ClCompile Include="src\transport\TTransportUtils.cpp">
+ <ClCompile Include="src\thrift\transport\TTransportUtils.cpp">
<Filter>transport</Filter>
</ClCompile>
- <ClCompile Include="src\server\TSimpleServer.cpp">
+ <ClCompile Include="src\thrift\server\TSimpleServer.cpp">
<Filter>server</Filter>
</ClCompile>
- <ClCompile Include="src\server\TThreadPoolServer.cpp">
+ <ClCompile Include="src\thrift\server\TThreadPoolServer.cpp">
<Filter>server</Filter>
</ClCompile>
- <ClCompile Include="src\async\TAsyncChannel.cpp">
+ <ClCompile Include="src\thrift\async\TAsyncChannel.cpp">
<Filter>async</Filter>
</ClCompile>
- <ClCompile Include="src\processor\PeekProcessor.cpp">
+ <ClCompile Include="src\thrift\processor\PeekProcessor.cpp">
<Filter>processor</Filter>
</ClCompile>
- <ClCompile Include="src\transport\TServerSocket.cpp">
+ <ClCompile Include="src\thrift\transport\TServerSocket.cpp">
<Filter>transport</Filter>
</ClCompile>
- <ClCompile Include="src\transport\TSocket.cpp">
+ <ClCompile Include="src\thrift\transport\TSocket.cpp">
<Filter>transport</Filter>
</ClCompile>
- <ClCompile Include="src\windows\TWinsockSingleton.cpp">
+ <ClCompile Include="src\thrift\windows\TWinsockSingleton.cpp">
<Filter>windows</Filter>
</ClCompile>
- <ClCompile Include="src\windows\SocketPair.cpp">
+ <ClCompile Include="src\thrift\windows\SocketPair.cpp">
<Filter>windows</Filter>
</ClCompile>
- <ClCompile Include="src\concurrency\BoostMonitor.cpp">
+ <ClCompile Include="src\thrift\concurrency\BoostMonitor.cpp">
<Filter>concurrency</Filter>
</ClCompile>
- <ClCompile Include="src\concurrency\BoostMutex.cpp">
+ <ClCompile Include="src\thrift\concurrency\BoostMutex.cpp">
<Filter>concurrency</Filter>
</ClCompile>
- <ClCompile Include="src\concurrency\BoostThreadFactory.cpp">
+ <ClCompile Include="src\thrift\concurrency\BoostThreadFactory.cpp">
<Filter>concurrency</Filter>
</ClCompile>
- <ClCompile Include="src\windows\WinFcntl.cpp">
+ <ClCompile Include="src\thrift\windows\WinFcntl.cpp">
<Filter>windows</Filter>
</ClCompile>
<ClCompile Include="src\transport\TPipeServer.cpp">
</ClCompile>
</ItemGroup>
<ItemGroup>
- <ClInclude Include="src\transport\TBufferTransports.h">
+ <ClInclude Include="src\thrift\transport\TBufferTransports.h">
<Filter>transport</Filter>
</ClInclude>
- <ClInclude Include="src\transport\TSocket.h">
+ <ClInclude Include="src\thrift\transport\TSocket.h">
<Filter>transport</Filter>
</ClInclude>
- <ClInclude Include="src\protocol\TBinaryProtocol.h">
+ <ClInclude Include="src\thrift\protocol\TBinaryProtocol.h">
<Filter>protocal</Filter>
</ClInclude>
- <ClInclude Include="src\Thrift.h" />
- <ClInclude Include="src\TProcessor.h" />
- <ClInclude Include="src\TApplicationException.h" />
- <ClInclude Include="src\windows\StdAfx.h">
+ <ClInclude Include="src\thrift\Thrift.h" />
+ <ClInclude Include="src\thrift\TProcessor.h" />
+ <ClInclude Include="src\thrift\TApplicationException.h" />
+ <ClInclude Include="src\thrift\windows\StdAfx.h">
<Filter>windows</Filter>
</ClInclude>
- <ClInclude Include="src\windows\TargetVersion.h">
+ <ClInclude Include="src\thrift\windows\TargetVersion.h">
<Filter>windows</Filter>
</ClInclude>
- <ClInclude Include="src\concurrency\Exception.h">
+ <ClInclude Include="src\thrift\concurrency\Exception.h">
<Filter>concurrency</Filter>
</ClInclude>
- <ClInclude Include="src\transport\TVirtualTransport.h">
+ <ClInclude Include="src\thrift\transport\TVirtualTransport.h">
<Filter>transport</Filter>
</ClInclude>
- <ClInclude Include="src\transport\TTransport.h">
+ <ClInclude Include="src\thrift\transport\TTransport.h">
<Filter>transport</Filter>
</ClInclude>
- <ClInclude Include="src\transport\TTransportException.h">
+ <ClInclude Include="src\thrift\transport\TTransportException.h">
<Filter>transport</Filter>
</ClInclude>
- <ClInclude Include="src\windows\GetTimeOfDay.h">
+ <ClInclude Include="src\thrift\windows\GetTimeOfDay.h">
<Filter>windows</Filter>
</ClInclude>
- <ClInclude Include="src\transport\TServerTransport.h">
+ <ClInclude Include="src\thrift\transport\TServerTransport.h">
<Filter>transport</Filter>
</ClInclude>
- <ClInclude Include="src\windows\config.h">
+ <ClInclude Include="src\thrift\windows\config.h">
<Filter>windows</Filter>
</ClInclude>
- <ClInclude Include="src\protocol\TProtocol.h">
+ <ClInclude Include="src\thrift\protocol\TProtocol.h">
<Filter>protocal</Filter>
</ClInclude>
- <ClInclude Include="src\protocol\TVirtualProtocol.h">
+ <ClInclude Include="src\thrift\protocol\TVirtualProtocol.h">
<Filter>protocal</Filter>
</ClInclude>
- <ClInclude Include="src\server\TServer.h">
+ <ClInclude Include="src\thrift\server\TServer.h">
<Filter>server</Filter>
</ClInclude>
- <ClInclude Include="src\server\TSimpleServer.h">
+ <ClInclude Include="src\thrift\server\TSimpleServer.h">
<Filter>server</Filter>
</ClInclude>
- <ClInclude Include="src\server\TThreadPoolServer.h">
+ <ClInclude Include="src\thrift\server\TThreadPoolServer.h">
<Filter>server</Filter>
</ClInclude>
- <ClInclude Include="src\async\TAsyncChannel.h">
+ <ClInclude Include="src\thrift\async\TAsyncChannel.h">
<Filter>async</Filter>
</ClInclude>
- <ClInclude Include="src\processor\PeekProcessor.h">
+ <ClInclude Include="src\thrift\processor\PeekProcessor.h">
<Filter>processor</Filter>
</ClInclude>
- <ClInclude Include="src\transport\TFDTransport.h">
+ <ClInclude Include="src\thrift\transport\TFDTransport.h">
<Filter>transport</Filter>
</ClInclude>
- <ClInclude Include="src\transport\TFileTransport.h">
+ <ClInclude Include="src\thrift\transport\TFileTransport.h">
<Filter>transport</Filter>
</ClInclude>
- <ClInclude Include="src\transport\THttpClient.h">
+ <ClInclude Include="src\thrift\transport\THttpClient.h">
<Filter>transport</Filter>
</ClInclude>
- <ClInclude Include="src\transport\THttpServer.h">
+ <ClInclude Include="src\thrift\transport\THttpServer.h">
<Filter>transport</Filter>
</ClInclude>
- <ClInclude Include="src\transport\TSSLSocket.h">
+ <ClInclude Include="src\thrift\transport\TSSLSocket.h">
<Filter>transport</Filter>
</ClInclude>
- <ClInclude Include="src\transport\TTransportUtils.h">
+ <ClInclude Include="src\thrift\transport\TTransportUtils.h">
<Filter>transport</Filter>
</ClInclude>
- <ClInclude Include="src\transport\TSimpleFileTransport.h">
+ <ClInclude Include="src\thrift\transport\TSimpleFileTransport.h">
<Filter>transport</Filter>
</ClInclude>
- <ClInclude Include="src\protocol\TJSONProtocol.h">
+ <ClInclude Include="src\thrift\protocol\TJSONProtocol.h">
<Filter>protocal</Filter>
</ClInclude>
- <ClInclude Include="src\protocol\TDenseProtocol.h">
+ <ClInclude Include="src\thrift\protocol\TDenseProtocol.h">
<Filter>protocal</Filter>
</ClInclude>
- <ClInclude Include="src\protocol\TDebugProtocol.h">
+ <ClInclude Include="src\thrift\protocol\TDebugProtocol.h">
<Filter>protocal</Filter>
</ClInclude>
- <ClInclude Include="src\transport\TServerSocket.h">
+ <ClInclude Include="src\thrift\transport\TServerSocket.h">
<Filter>transport</Filter>
</ClInclude>
- <ClInclude Include="src\windows\Operators.h">
+ <ClInclude Include="src\thrift\windows\Operators.h">
<Filter>windows</Filter>
</ClInclude>
- <ClInclude Include="src\windows\TWinsockSingleton.h">
+ <ClInclude Include="src\thrift\windows\TWinsockSingleton.h">
<Filter>windows</Filter>
</ClInclude>
- <ClInclude Include="src\windows\SocketPair.h">
+ <ClInclude Include="src\thrift\windows\SocketPair.h">
<Filter>windows</Filter>
</ClInclude>
- <ClInclude Include="src\windows\force_inc.h">
+ <ClInclude Include="src\thrift\windows\force_inc.h">
<Filter>windows</Filter>
</ClInclude>
- <ClInclude Include="src\concurrency\BoostThreadFactory.h">
+ <ClInclude Include="src\thrift\concurrency\BoostThreadFactory.h">
<Filter>concurrency</Filter>
</ClInclude>
- <ClInclude Include="src\concurrency\PlatformThreadFactory.h">
+ <ClInclude Include="src\thrift\concurrency\PlatformThreadFactory.h">
<Filter>concurrency</Filter>
</ClInclude>
- <ClInclude Include="src\windows\WinFcntl.h">
+ <ClInclude Include="src\thrift\windows\WinFcntl.h">
<Filter>windows</Filter>
</ClInclude>
<ClInclude Include="src\transport\TPipe.h">
</Filter>
</ItemGroup>
<ItemGroup>
- <None Include="src\protocol\TBinaryProtocol.tcc">
+ <None Include="src\thrift\protocol\TBinaryProtocol.tcc">
<Filter>protocal</Filter>
</None>
- <None Include="src\windows\tr1\functional">
+ <None Include="src\thrift\windows\tr1\functional">
<Filter>windows\tr1</Filter>
</None>
</ItemGroup>
</ProjectConfiguration>
</ItemGroup>
<ItemGroup>
- <ClCompile Include="src\async\TAsyncProtocolProcessor.cpp">
+ <ClCompile Include="src\thrift\thrift\async\TAsyncProtocolProcessor.cpp">
<PreprocessorDefinitions Condition="'$(Configuration)|$(Platform)'=='Debug|Win32'">_CRT_SECURE_NO_WARNINGS;%(PreprocessorDefinitions)</PreprocessorDefinitions>
<PreprocessorDefinitions Condition="'$(Configuration)|$(Platform)'=='Debug|x64'">_CRT_SECURE_NO_WARNINGS;%(PreprocessorDefinitions)</PreprocessorDefinitions>
<PreprocessorDefinitions Condition="'$(Configuration)|$(Platform)'=='Release|Win32'">_CRT_SECURE_NO_WARNINGS;%(PreprocessorDefinitions)</PreprocessorDefinitions>
<PreprocessorDefinitions Condition="'$(Configuration)|$(Platform)'=='Release|x64'">_CRT_SECURE_NO_WARNINGS;%(PreprocessorDefinitions)</PreprocessorDefinitions>
</ClCompile>
- <ClCompile Include="src\async\TEvhttpClientChannel.cpp">
+ <ClCompile Include="src\thrift\thrift\async\TEvhttpClientChannel.cpp">
<PreprocessorDefinitions Condition="'$(Configuration)|$(Platform)'=='Debug|Win32'">_CRT_SECURE_NO_WARNINGS;%(PreprocessorDefinitions)</PreprocessorDefinitions>
<PreprocessorDefinitions Condition="'$(Configuration)|$(Platform)'=='Debug|x64'">_CRT_SECURE_NO_WARNINGS;%(PreprocessorDefinitions)</PreprocessorDefinitions>
<PreprocessorDefinitions Condition="'$(Configuration)|$(Platform)'=='Release|Win32'">_CRT_SECURE_NO_WARNINGS;%(PreprocessorDefinitions)</PreprocessorDefinitions>
<PreprocessorDefinitions Condition="'$(Configuration)|$(Platform)'=='Release|x64'">_CRT_SECURE_NO_WARNINGS;%(PreprocessorDefinitions)</PreprocessorDefinitions>
</ClCompile>
- <ClCompile Include="src\async\TEvhttpServer.cpp">
+ <ClCompile Include="src\thrift\thrift\async\TEvhttpServer.cpp">
<PreprocessorDefinitions Condition="'$(Configuration)|$(Platform)'=='Debug|Win32'">_CRT_SECURE_NO_WARNINGS;%(PreprocessorDefinitions)</PreprocessorDefinitions>
<PreprocessorDefinitions Condition="'$(Configuration)|$(Platform)'=='Debug|x64'">_CRT_SECURE_NO_WARNINGS;%(PreprocessorDefinitions)</PreprocessorDefinitions>
<PreprocessorDefinitions Condition="'$(Configuration)|$(Platform)'=='Release|Win32'">_CRT_SECURE_NO_WARNINGS;%(PreprocessorDefinitions)</PreprocessorDefinitions>
<PreprocessorDefinitions Condition="'$(Configuration)|$(Platform)'=='Release|x64'">_CRT_SECURE_NO_WARNINGS;%(PreprocessorDefinitions)</PreprocessorDefinitions>
</ClCompile>
- <ClCompile Include="src\server\TNonblockingServer.cpp">
+ <ClCompile Include="src\thrift\thrift\server\TNonblockingServer.cpp">
<PreprocessorDefinitions Condition="'$(Configuration)|$(Platform)'=='Debug|Win32'">_CRT_SECURE_NO_WARNINGS;%(PreprocessorDefinitions)</PreprocessorDefinitions>
<PreprocessorDefinitions Condition="'$(Configuration)|$(Platform)'=='Debug|x64'">_CRT_SECURE_NO_WARNINGS;%(PreprocessorDefinitions)</PreprocessorDefinitions>
<PreprocessorDefinitions Condition="'$(Configuration)|$(Platform)'=='Release|Win32'">_CRT_SECURE_NO_WARNINGS;%(PreprocessorDefinitions)</PreprocessorDefinitions>
<PreprocessorDefinitions Condition="'$(Configuration)|$(Platform)'=='Release|x64'">_CRT_SECURE_NO_WARNINGS;%(PreprocessorDefinitions)</PreprocessorDefinitions>
</ClCompile>
- <ClCompile Include="src\windows\StdAfx.cpp" />
+ <ClCompile Include="src\thrift\thrift\windows\StdAfx.cpp" />
</ItemGroup>
<ItemGroup>
- <ClInclude Include="src\async\TAsyncProtocolProcessor.h" />
- <ClInclude Include="src\async\TEvhttpClientChannel.h" />
- <ClInclude Include="src\async\TEvhttpServer.h" />
- <ClInclude Include="src\server\TNonblockingServer.h" />
- <ClInclude Include="src\windows\config.h" />
- <ClInclude Include="src\windows\force_inc.h" />
- <ClInclude Include="src\windows\StdAfx.h" />
- <ClInclude Include="src\windows\TargetVersion.h" />
+ <ClInclude Include="src\thrift\thrift\async\TAsyncProtocolProcessor.h" />
+ <ClInclude Include="src\thrift\thrift\async\TEvhttpClientChannel.h" />
+ <ClInclude Include="src\thrift\thrift\async\TEvhttpServer.h" />
+ <ClInclude Include="src\thrift\thrift\server\TNonblockingServer.h" />
+ <ClInclude Include="src\thrift\thrift\windows\config.h" />
+ <ClInclude Include="src\thrift\thrift\windows\force_inc.h" />
+ <ClInclude Include="src\thrift\thrift\windows\StdAfx.h" />
+ <ClInclude Include="src\thrift\thrift\windows\TargetVersion.h" />
</ItemGroup>
<PropertyGroup Label="Globals">
<ProjectGuid>{D8696CCE-7D46-4659-B432-91754A41DEB0}</ProjectGuid>
</ImportGroup>
<PropertyGroup Label="UserMacros" />
<PropertyGroup Condition="'$(Configuration)|$(Platform)'=='Debug|Win32'">
- <IncludePath>$(ProjectDir)\src\;$(ProjectDir)\src\windows\;$(THIRD_PARTY)\boost\boost_1_47_0\include;$(THIRD_PARTY)\boost\boost_1_47_0\;$(THIRD_PARTY)\libevent\libevent-2.0.13-stable\WIN32-Code\;$(THIRD_PARTY)\libevent\libevent-2.0.13-stable\include;$(THIRD_PARTY)\libevent\libevent-2.0.13-stable\;$(IncludePath)</IncludePath>
+ <IncludePath>$(ProjectDir)\src\thrift\;$(ProjectDir)\src\windows\;$(THIRD_PARTY)\boost\boost_1_47_0\include;$(THIRD_PARTY)\boost\boost_1_47_0\;$(THIRD_PARTY)\libevent\libevent-2.0.13-stable\WIN32-Code\;$(THIRD_PARTY)\libevent\libevent-2.0.13-stable\include;$(THIRD_PARTY)\libevent\libevent-2.0.13-stable\;$(IncludePath)</IncludePath>
</PropertyGroup>
<PropertyGroup Condition="'$(Configuration)|$(Platform)'=='Debug|x64'">
- <IncludePath>$(ProjectDir)\src\;$(ProjectDir)\src\windows\;$(THIRD_PARTY)\boost\boost_1_47_0\include;$(THIRD_PARTY)\boost\boost_1_47_0\;$(THIRD_PARTY)\libevent\libevent-2.0.13-stable\WIN32-Code\;$(THIRD_PARTY)\libevent\libevent-2.0.13-stable\include;$(THIRD_PARTY)\libevent\libevent-2.0.13-stable\;$(IncludePath)</IncludePath>
+ <IncludePath>$(ProjectDir)\src\thrift\;$(ProjectDir)\src\windows\;$(THIRD_PARTY)\boost\boost_1_47_0\include;$(THIRD_PARTY)\boost\boost_1_47_0\;$(THIRD_PARTY)\libevent\libevent-2.0.13-stable\WIN32-Code\;$(THIRD_PARTY)\libevent\libevent-2.0.13-stable\include;$(THIRD_PARTY)\libevent\libevent-2.0.13-stable\;$(IncludePath)</IncludePath>
</PropertyGroup>
<PropertyGroup Condition="'$(Configuration)|$(Platform)'=='Release|Win32'">
- <IncludePath>$(ProjectDir)\src\;$(ProjectDir)\src\windows\;$(THIRD_PARTY)\boost\boost_1_47_0\include;$(THIRD_PARTY)\boost\boost_1_47_0\;$(THIRD_PARTY)\libevent\libevent-2.0.13-stable\WIN32-Code\;$(THIRD_PARTY)\libevent\libevent-2.0.13-stable\include;$(THIRD_PARTY)\libevent\libevent-2.0.13-stable\;$(IncludePath)</IncludePath>
+ <IncludePath>$(ProjectDir)\src\thrift\;$(ProjectDir)\src\windows\;$(THIRD_PARTY)\boost\boost_1_47_0\include;$(THIRD_PARTY)\boost\boost_1_47_0\;$(THIRD_PARTY)\libevent\libevent-2.0.13-stable\WIN32-Code\;$(THIRD_PARTY)\libevent\libevent-2.0.13-stable\include;$(THIRD_PARTY)\libevent\libevent-2.0.13-stable\;$(IncludePath)</IncludePath>
</PropertyGroup>
<PropertyGroup Condition="'$(Configuration)|$(Platform)'=='Release|x64'">
- <IncludePath>$(ProjectDir)\src\;$(ProjectDir)\src\windows\;$(THIRD_PARTY)\boost\boost_1_47_0\include;$(THIRD_PARTY)\boost\boost_1_47_0\;$(THIRD_PARTY)\libevent\libevent-2.0.13-stable\WIN32-Code\;$(THIRD_PARTY)\libevent\libevent-2.0.13-stable\include;$(THIRD_PARTY)\libevent\libevent-2.0.13-stable\;$(IncludePath)</IncludePath>
+ <IncludePath>$(ProjectDir)\src\thrift\;$(ProjectDir)\src\windows\;$(THIRD_PARTY)\boost\boost_1_47_0\include;$(THIRD_PARTY)\boost\boost_1_47_0\;$(THIRD_PARTY)\libevent\libevent-2.0.13-stable\WIN32-Code\;$(THIRD_PARTY)\libevent\libevent-2.0.13-stable\include;$(THIRD_PARTY)\libevent\libevent-2.0.13-stable\;$(IncludePath)</IncludePath>
</PropertyGroup>
<ItemDefinitionGroup Condition="'$(Configuration)|$(Platform)'=='Debug|Win32'">
<ClCompile>
</Filter>
</ItemGroup>
<ItemGroup>
- <ClCompile Include="src\server\TNonblockingServer.cpp">
+ <ClCompile Include="src\thrift\server\TNonblockingServer.cpp">
<Filter>server</Filter>
</ClCompile>
- <ClCompile Include="src\async\TEvhttpClientChannel.cpp">
+ <ClCompile Include="src\thrift\async\TEvhttpClientChannel.cpp">
<Filter>async</Filter>
</ClCompile>
- <ClCompile Include="src\async\TEvhttpServer.cpp">
+ <ClCompile Include="src\thrift\async\TEvhttpServer.cpp">
<Filter>async</Filter>
</ClCompile>
- <ClCompile Include="src\async\TAsyncProtocolProcessor.cpp">
+ <ClCompile Include="src\thrift\async\TAsyncProtocolProcessor.cpp">
<Filter>async</Filter>
</ClCompile>
- <ClCompile Include="src\windows\StdAfx.cpp">
+ <ClCompile Include="src\thrift\windows\StdAfx.cpp">
<Filter>windows</Filter>
</ClCompile>
</ItemGroup>
<ItemGroup>
- <ClInclude Include="src\server\TNonblockingServer.h">
+ <ClInclude Include="src\thrift\server\TNonblockingServer.h">
<Filter>server</Filter>
</ClInclude>
- <ClInclude Include="src\async\TEvhttpClientChannel.h">
+ <ClInclude Include="src\thrift\async\TEvhttpClientChannel.h">
<Filter>async</Filter>
</ClInclude>
- <ClInclude Include="src\async\TEvhttpServer.h">
+ <ClInclude Include="src\thrift\async\TEvhttpServer.h">
<Filter>async</Filter>
</ClInclude>
- <ClInclude Include="src\async\TAsyncProtocolProcessor.h">
+ <ClInclude Include="src\thrift\async\TAsyncProtocolProcessor.h">
<Filter>async</Filter>
</ClInclude>
- <ClInclude Include="src\windows\config.h">
+ <ClInclude Include="src\thrift\windows\config.h">
<Filter>windows</Filter>
</ClInclude>
- <ClInclude Include="src\windows\StdAfx.h">
+ <ClInclude Include="src\thrift\windows\StdAfx.h">
<Filter>windows</Filter>
</ClInclude>
- <ClInclude Include="src\windows\TargetVersion.h">
+ <ClInclude Include="src\thrift\windows\TargetVersion.h">
<Filter>windows</Filter>
</ClInclude>
- <ClInclude Include="src\windows\force_inc.h">
+ <ClInclude Include="src\thrift\windows\force_inc.h">
<Filter>windows</Filter>
</ClInclude>
</ItemGroup>
* under the License.
*/
-#include <TApplicationException.h>
-#include <protocol/TProtocol.h>
+#include <thrift/TApplicationException.h>
+#include <thrift/protocol/TProtocol.h>
namespace apache { namespace thrift {
#ifndef _THRIFT_TAPPLICATIONEXCEPTION_H_
#define _THRIFT_TAPPLICATIONEXCEPTION_H_ 1
-#include <Thrift.h>
+#include <thrift/Thrift.h>
namespace apache { namespace thrift {
#define _THRIFT_TPROCESSOR_H_ 1
#include <string>
-#include <protocol/TProtocol.h>
+#include <thrift/protocol/TProtocol.h>
#include <boost/shared_ptr.hpp>
namespace apache { namespace thrift {
#include <stdint.h>
#include <cstring>
-#include <protocol/TProtocol.h>
+#include <thrift/protocol/TProtocol.h>
/**
* Local Reflection is a blanket term referring to the the structure
* under the License.
*/
-#include <Thrift.h>
+#include <thrift/Thrift.h>
#include <cstring>
#include <cstdlib>
#include <boost/lexical_cast.hpp>
#define _THRIFT_THRIFT_H_ 1
#ifdef _WIN32
-#include "windows/config.h"
+#include <thrift/windows/config.h>
#endif
#ifdef HAVE_CONFIG_H
* under the License.
*/
-#include <Thrift.h>
+#include <thrift/Thrift.h>
// Do nothing if virtual call profiling is not enabled
#if T_GLOBAL_DEBUG_VIRTUAL > 1
#endif // !__GLIBC__
-#include <concurrency/Mutex.h>
+#include <thrift/concurrency/Mutex.h>
#include <ext/hash_map>
#include <execinfo.h>
#include <tr1/functional>
#include <boost/shared_ptr.hpp>
-#include "transport/TBufferTransports.h"
+#include <thrift/transport/TBufferTransports.h>
namespace apache { namespace thrift { namespace async {
* under the License.
*/
-#include <async/TAsyncChannel.h>
+#include <thrift/async/TAsyncChannel.h>
#include <tr1/functional>
namespace apache { namespace thrift { namespace async {
#define _THRIFT_ASYNC_TASYNCCHANNEL_H_ 1
#include <tr1/functional>
-#include <Thrift.h>
+#include <thrift/Thrift.h>
namespace apache { namespace thrift { namespace transport {
class TMemoryBuffer;
#include <tr1/functional>
#include <boost/shared_ptr.hpp>
-#include <protocol/TProtocol.h>
+#include <thrift/protocol/TProtocol.h>
#include <TProcessor.h>
namespace apache { namespace thrift { namespace async {
#include "TAsyncProcessor.h"
#include "TAsyncBufferProcessor.h"
-#include "protocol/TProtocol.h"
+#include <thrift/protocol/TProtocol.h>
namespace apache { namespace thrift { namespace async {
#include "TEvhttpClientChannel.h"
#include <evhttp.h>
-#include "transport/TBufferTransports.h"
-#include <protocol/TProtocolException.h>
+#include <thrift/transport/TBufferTransports.h>
+#include <thrift/protocol/TProtocolException.h>
#include <iostream>
#include <sstream>
#include "TEvhttpServer.h"
#include "TAsyncBufferProcessor.h"
-#include "transport/TBufferTransports.h"
+#include <thrift/transport/TBufferTransports.h>
#include <evhttp.h>
#include <iostream>
#define _THRIFT_CONCURRENCY_EXCEPTION_H_ 1
#include <exception>
-#include <Thrift.h>
+#include <thrift/Thrift.h>
namespace apache { namespace thrift { namespace concurrency {
#define _THRIFT_CONCURRENCY_PLATFORMTHREADFACTORY_H_ 1
#ifndef USE_BOOST_THREAD
-# include <concurrency/PosixThreadFactory.h>
+# include <thrift/concurrency/PosixThreadFactory.h>
#else
-# include <concurrency/BoostThreadFactory.h>
+# include <thrift/concurrency/BoostThreadFactory.h>
#endif
namespace apache { namespace thrift { namespace concurrency {
*/
#include <config.h>
-#include <concurrency/Thread.h>
-#include <concurrency/PlatformThreadFactory.h>
-#include <concurrency/Monitor.h>
-#include <concurrency/Util.h>
+#include <thrift/concurrency/Thread.h>
+#include <thrift/concurrency/PlatformThreadFactory.h>
+#include <thrift/concurrency/Monitor.h>
+#include <thrift/concurrency/Util.h>
#include <assert.h>
#include <unistd.h>
*/
#include <config.h>
-#include <concurrency/ThreadManager.h>
-#include <concurrency/PlatformThreadFactory.h>
-#include <concurrency/Monitor.h>
-#include <concurrency/Util.h>
+#include <thrift/concurrency/ThreadManager.h>
+#include <thrift/concurrency/PlatformThreadFactory.h>
+#include <thrift/concurrency/Monitor.h>
+#include <thrift/concurrency/Util.h>
#include <assert.h>
#include <set>
* under the License.
*/
-#include <concurrency/TimerManager.h>
-#include <concurrency/PlatformThreadFactory.h>
-#include <concurrency/Monitor.h>
-#include <concurrency/Util.h>
+#include <thrift/concurrency/TimerManager.h>
+#include <thrift/concurrency/PlatformThreadFactory.h>
+#include <thrift/concurrency/Monitor.h>
+#include <thrift/concurrency/Util.h>
#include <assert.h>
#include <iostream>
#include <string>
#include <TProcessor.h>
-#include <transport/TTransport.h>
-#include <transport/TTransportUtils.h>
-#include <transport/TBufferTransports.h>
+#include <thrift/transport/TTransport.h>
+#include <thrift/transport/TTransportUtils.h>
+#include <thrift/transport/TBufferTransports.h>
#include <boost/shared_ptr.hpp>
namespace apache { namespace thrift { namespace processor {
#define STATSPROCESSOR_H
#include <boost/shared_ptr.hpp>
-#include <transport/TTransport.h>
-#include <protocol/TProtocol.h>
+#include <thrift/transport/TTransport.h>
+#include <thrift/protocol/TProtocol.h>
#include <TProcessor.h>
namespace apache { namespace thrift { namespace processor {
// TODO(dreiss): Move (part of) ThriftDebugString into a .cpp file and remove this.
-#include <transport/TBufferTransports.h>
+#include <thrift/transport/TBufferTransports.h>
namespace apache { namespace thrift {
#include <math.h>
#include <boost/lexical_cast.hpp>
#include "TBase64Utils.h"
-#include <transport/TTransportException.h>
+#include <thrift/transport/TTransportException.h>
using namespace apache::thrift::transport;
// TODO(dreiss): Move part of ThriftJSONString into a .cpp file and remove this.
-#include <transport/TBufferTransports.h>
+#include <thrift/transport/TBufferTransports.h>
namespace apache { namespace thrift {
#ifndef _THRIFT_PROTOCOL_TPROTOCOL_H_
#define _THRIFT_PROTOCOL_TPROTOCOL_H_ 1
-#include <transport/TTransport.h>
-#include <protocol/TProtocolException.h>
+#include <thrift/transport/TTransport.h>
+#include <thrift/protocol/TProtocolException.h>
#include <boost/shared_ptr.hpp>
#include <boost/static_assert.hpp>
#ifndef _THRIFT_PROTOCOL_TPROTOCOLTAP_H_
#define _THRIFT_PROTOCOL_TPROTOCOLTAP_H_ 1
-#include <protocol/TVirtualProtocol.h>
+#include <thrift/protocol/TVirtualProtocol.h>
namespace apache { namespace thrift { namespace protocol {
#ifndef _THRIFT_PROTOCOL_TVIRTUALPROTOCOL_H_
#define _THRIFT_PROTOCOL_TVIRTUALPROTOCOL_H_ 1
-#include <protocol/TProtocol.h>
+#include <thrift/protocol/TProtocol.h>
namespace apache { namespace thrift { namespace protocol {
#include "TQIODeviceTransport.h"
-#include <QAbstractSocket>
+#include <thrift/QAbstractSocket>
#include <QIODevice>
-#include <transport/TBufferTransports.h>
+#include <thrift/transport/TBufferTransports.h>
using boost::shared_ptr;
#include <boost/shared_ptr.hpp>
-#include <transport/TVirtualTransport.h>
+#include <thrift/transport/TVirtualTransport.h>
class QIODevice;
#include <tr1/functional>
-#include <protocol/TProtocol.h>
-#include <async/TAsyncProcessor.h>
+#include <thrift/protocol/TProtocol.h>
+#include <thrift/async/TAsyncProcessor.h>
using boost::shared_ptr;
using apache::thrift::protocol::TProtocol;
#endif
#include "TNonblockingServer.h"
-#include <concurrency/Exception.h>
-#include <transport/TSocket.h>
-#include <concurrency/PlatformThreadFactory.h>
+#include <thrift/concurrency/Exception.h>
+#include <thrift/transport/TSocket.h>
+#include <thrift/concurrency/PlatformThreadFactory.h>
#include <iostream>
#ifndef _THRIFT_SERVER_TNONBLOCKINGSERVER_H_
#define _THRIFT_SERVER_TNONBLOCKINGSERVER_H_ 1
-#include <Thrift.h>
-#include <server/TServer.h>
-#include <transport/TBufferTransports.h>
-#include <transport/TSocket.h>
-#include <concurrency/ThreadManager.h>
+#include <thrift/Thrift.h>
+#include <thrift/server/TServer.h>
+#include <thrift/transport/TBufferTransports.h>
+#include <thrift/transport/TSocket.h>
+#include <thrift/concurrency/ThreadManager.h>
#include <climits>
-#include <concurrency/Thread.h>
-#include <concurrency/PlatformThreadFactory.h>
-#include <concurrency/Mutex.h>
+#include <thrift/concurrency/Thread.h>
+#include <thrift/concurrency/PlatformThreadFactory.h>
+#include <thrift/concurrency/Mutex.h>
#include <stack>
#include <vector>
#include <string>
#ifndef _THRIFT_SERVER_TSERVER_H_
#define _THRIFT_SERVER_TSERVER_H_ 1
-#include <TProcessor.h>
-#include <transport/TServerTransport.h>
-#include <protocol/TBinaryProtocol.h>
-#include <concurrency/Thread.h>
+#include <thrift/TProcessor.h>
+#include <thrift/transport/TServerTransport.h>
+#include <thrift/protocol/TBinaryProtocol.h>
+#include <thrift/concurrency/Thread.h>
#include <boost/shared_ptr.hpp>
* under the License.
*/
-#include "server/TSimpleServer.h"
-#include "transport/TTransportException.h"
+#include <thrift/server/TSimpleServer.h>
+#include <thrift/transport/TTransportException.h>
#include <string>
#include <iostream>
#ifndef _THRIFT_SERVER_TSIMPLESERVER_H_
#define _THRIFT_SERVER_TSIMPLESERVER_H_ 1
-#include "server/TServer.h"
-#include "transport/TServerTransport.h"
+#include <thrift/server/TServer.h>
+#include <thrift/transport/TServerTransport.h>
namespace apache { namespace thrift { namespace server {
#include <config.h>
#endif
-#include "server/TThreadPoolServer.h"
-#include "transport/TTransportException.h"
-#include "concurrency/Thread.h"
-#include "concurrency/ThreadManager.h"
+#include <thrift/server/TThreadPoolServer.h>
+#include <thrift/transport/TTransportException.h>
+#include <thrift/concurrency/Thread.h>
+#include <thrift/concurrency/ThreadManager.h>
#include <string>
#include <iostream>
#ifndef _THRIFT_SERVER_TTHREADPOOLSERVER_H_
#define _THRIFT_SERVER_TTHREADPOOLSERVER_H_ 1
-#include <concurrency/ThreadManager.h>
-#include <server/TServer.h>
-#include <transport/TServerTransport.h>
+#include <thrift/concurrency/ThreadManager.h>
+#include <thrift/server/TServer.h>
+#include <thrift/transport/TServerTransport.h>
#include <boost/shared_ptr.hpp>
* under the License.
*/
-#include "server/TThreadedServer.h"
-#include "transport/TTransportException.h"
-#include <concurrency/PlatformThreadFactory.h>
+#include <thrift/server/TThreadedServer.h>
+#include <thrift/transport/TTransportException.h>
+#include <thrift/concurrency/PlatformThreadFactory.h>
#include <string>
#include <iostream>
#ifndef _THRIFT_SERVER_TTHREADEDSERVER_H_
#define _THRIFT_SERVER_TTHREADEDSERVER_H_ 1
-#include <server/TServer.h>
-#include <transport/TServerTransport.h>
-#include <concurrency/Monitor.h>
-#include <concurrency/Thread.h>
+#include <thrift/server/TServer.h>
+#include <thrift/transport/TServerTransport.h>
+#include <thrift/concurrency/Monitor.h>
+#include <thrift/concurrency/Thread.h>
#include <boost/shared_ptr.hpp>
#include <cassert>
#include <algorithm>
-#include <transport/TBufferTransports.h>
+#include <thrift/transport/TBufferTransports.h>
using std::string;
#include <cstring>
#include "boost/scoped_array.hpp"
-#include <transport/TTransport.h>
-#include <transport/TVirtualTransport.h>
+#include <thrift/transport/TTransport.h>
+#include <thrift/transport/TVirtualTransport.h>
#ifdef __GNUC__
#define TDB_LIKELY(val) (__builtin_expect((val), 1))
#include <cerrno>
#include <exception>
-#include <transport/TFDTransport.h>
+#include <thrift/transport/TFDTransport.h>
#ifdef HAVE_UNISTD_H
#include <unistd.h>
#ifndef _THRIFT_TRANSPORT_TFILETRANSPORT_H_
#define _THRIFT_TRANSPORT_TFILETRANSPORT_H_ 1
-#include "TTransport.h"
-#include "Thrift.h"
-#include "TProcessor.h"
+#include <thrift/transport/TTransport.h>
+#include <thrift/Thrift.h>
+#include <thrift/TProcessor.h>
#include <string>
#include <stdio.h>
#include <boost/scoped_ptr.hpp>
#include <boost/shared_ptr.hpp>
-#include "concurrency/Mutex.h"
-#include "concurrency/Monitor.h"
+#include <thrift/concurrency/Mutex.h>
+#include <thrift/concurrency/Monitor.h>
namespace apache { namespace thrift { namespace transport {
#include <sstream>
#include <boost/algorithm/string.hpp>
-#include <transport/THttpClient.h>
-#include <transport/TSocket.h>
+#include <thrift/transport/THttpClient.h>
+#include <thrift/transport/TSocket.h>
namespace apache { namespace thrift { namespace transport {
#ifndef _THRIFT_TRANSPORT_THTTPCLIENT_H_
#define _THRIFT_TRANSPORT_THTTPCLIENT_H_ 1
-#include <transport/THttpTransport.h>
+#include <thrift/transport/THttpTransport.h>
namespace apache { namespace thrift { namespace transport {
#include <sstream>
#include <iostream>
-#include <transport/THttpServer.h>
-#include <transport/TSocket.h>
+#include <thrift/transport/THttpServer.h>
+#include <thrift/transport/TSocket.h>
namespace apache { namespace thrift { namespace transport {
#ifndef _THRIFT_TRANSPORT_THTTPSERVER_H_
#define _THRIFT_TRANSPORT_THTTPSERVER_H_ 1
-#include <transport/THttpTransport.h>
+#include <thrift/transport/THttpTransport.h>
namespace apache { namespace thrift { namespace transport {
* under the License.
*/
-#include <transport/THttpTransport.h>
+#include <thrift/transport/THttpTransport.h>
namespace apache { namespace thrift { namespace transport {
#ifndef _THRIFT_TRANSPORT_THTTPTRANSPORT_H_
#define _THRIFT_TRANSPORT_THTTPTRANSPORT_H_ 1
-#include <transport/TBufferTransports.h>
+#include <thrift/transport/TBufferTransports.h>
#include "TVirtualTransport.h"
namespace apache { namespace thrift { namespace transport {
#include <openssl/rand.h>
#include <openssl/ssl.h>
#include <openssl/x509v3.h>
-#include "concurrency/Mutex.h"
+#include <thrift/concurrency/Mutex.h>
#include "TSSLSocket.h"
#define OPENSSL_VERSION_NO_THREAD_ID 0x10000000L
#include <string>
#include <boost/shared_ptr.hpp>
#include <openssl/ssl.h>
-#include "concurrency/Mutex.h"
+#include <thrift/concurrency/Mutex.h>
#include "TSocket.h"
namespace apache { namespace thrift { namespace transport {
#ifndef _THRIFT_TRANSPORT_TSHORTREADTRANSPORT_H_
#define _THRIFT_TRANSPORT_TSHORTREADTRANSPORT_H_ 1
-#include <cstdlib>
+#include <thrift/cstdlib>
-#include <transport/TTransport.h>
-#include <transport/TVirtualTransport.h>
+#include <thrift/transport/TTransport.h>
+#include <thrift/transport/TVirtualTransport.h>
namespace apache { namespace thrift { namespace transport { namespace test {
#include <errno.h>
#include <fcntl.h>
-#include "concurrency/Monitor.h"
+#include <thrift/concurrency/Monitor.h>
#include "TSocket.h"
#include "TTransportException.h"
#ifndef _THRIFT_TRANSPORT_TTRANSPORT_H_
#define _THRIFT_TRANSPORT_TTRANSPORT_H_ 1
-#include <Thrift.h>
+#include <thrift/Thrift.h>
#include <boost/shared_ptr.hpp>
-#include <transport/TTransportException.h>
+#include <thrift/transport/TTransportException.h>
#include <string>
namespace apache { namespace thrift { namespace transport {
* under the License.
*/
-#include <transport/TTransportException.h>
+#include <thrift/transport/TTransportException.h>
#include <boost/lexical_cast.hpp>
#include <cstring>
#include <config.h>
#define _THRIFT_TRANSPORT_TTRANSPORTEXCEPTION_H_ 1
#include <string>
-#include <Thrift.h>
+#include <thrift/Thrift.h>
namespace apache { namespace thrift { namespace transport {
* under the License.
*/
-#include <transport/TTransportUtils.h>
+#include <thrift/transport/TTransportUtils.h>
using std::string;
#include <cstring>
#include <string>
#include <algorithm>
-#include <transport/TTransport.h>
+#include <thrift/transport/TTransport.h>
// Include the buffered transports that used to be defined here.
-#include <transport/TBufferTransports.h>
-#include <transport/TFileTransport.h>
+#include <thrift/transport/TBufferTransports.h>
+#include <thrift/transport/TFileTransport.h>
namespace apache { namespace thrift { namespace transport {
#ifndef _THRIFT_TRANSPORT_TVIRTUALTRANSPORT_H_
#define _THRIFT_TRANSPORT_TVIRTUALTRANSPORT_H_ 1
-#include <transport/TTransport.h>
+#include <thrift/transport/TTransport.h>
namespace apache { namespace thrift { namespace transport {
#include <cassert>
#include <cstring>
#include <algorithm>
-#include <transport/TZlibTransport.h>
+#include <thrift/transport/TZlibTransport.h>
#include <zlib.h>
using std::string;
#define _THRIFT_TRANSPORT_TZLIBTRANSPORT_H_ 1
#include <boost/lexical_cast.hpp>
-#include <transport/TTransport.h>
-#include <transport/TVirtualTransport.h>
+#include <thrift/transport/TTransport.h>
+#include <thrift/transport/TVirtualTransport.h>
struct z_stream_s;
# define _WIN32_WINNT 0x0601
#endif
-#include "windows/config.h"
+#include <thrift/windows/config.h>
#undef gai_strerror
#define gai_strerror gai_strerrorA
+++ /dev/null
-/*
-* 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.
-*/
-
-#ifdef _WIN32
-
-#include "TTransportException.h"
-#include "TPipe.h"
-
-namespace apache { namespace thrift { namespace transport {
-
-using namespace std;
-
-/**
-* TPipe implementation.
-*/
-
-//---- Constructors ----
-TPipe::TPipe(HANDLE hpipe) :
- pipename_(""),
- hPipe_(hpipe),
- TimeoutSeconds_(3),
- isAnonymous(false)
-{}
-
-TPipe::TPipe(string pipename) :
- pipename_(pipename),
- hPipe_(INVALID_HANDLE_VALUE),
- TimeoutSeconds_(3),
- isAnonymous(false)
-{}
-
-TPipe::TPipe(HANDLE hPipeRd, HANDLE hPipeWrt) :
- pipename_(""),
- hPipe_(hPipeRd),
- hPipeWrt_(hPipeWrt),
- TimeoutSeconds_(3),
- isAnonymous(true)
-{}
-
- TPipe::TPipe() :
- pipename_(""),
- hPipe_(INVALID_HANDLE_VALUE),
- TimeoutSeconds_(3)
-{}
-
-//---- Destructor ----
-TPipe::~TPipe() {
- close();
-}
-
-
-bool TPipe::isOpen() {
- return (hPipe_ != INVALID_HANDLE_VALUE);
-}
-
-//---------------------------------------------------------
-// Transport callbacks
-//---------------------------------------------------------
-
-bool TPipe::peek() {
- if (!isOpen()) {
- return false;
- }
- DWORD bytesavail = 0;
- int PeekRet = 0;
- PeekRet = PeekNamedPipe(hPipe_, NULL, 0, NULL, &bytesavail, NULL);
- return (PeekRet != 0 && bytesavail > 0);
-}
-
-void TPipe::open() {
- if (isOpen()) {
- return;
- }
-
- int SleepInterval = 500; //ms
- int retries = TimeoutSeconds_ * 1000 / SleepInterval;
- for(int i=0; i<retries; i++)
- {
- hPipe_ = CreateFile(
- pipename_.c_str(),
- GENERIC_READ | GENERIC_WRITE,
- 0, // no sharing
- NULL, // default security attributes
- OPEN_EXISTING, // opens existing pipe
- 0, // default attributes
- NULL); // no template file
-
- if (hPipe_ == INVALID_HANDLE_VALUE)
- sleep(SleepInterval);
- else
- break;
- }
- if (hPipe_ == INVALID_HANDLE_VALUE)
- throw TTransportException(TTransportException::NOT_OPEN, "Unable to open pipe");
-
- // The pipe connected; change to message-read mode.
- DWORD dwMode = PIPE_READMODE_MESSAGE;
- int fSuccess = SetNamedPipeHandleState(
- hPipe_, // pipe handle
- &dwMode, // new pipe mode
- NULL, // don't set maximum bytes
- NULL); // don't set maximum time
- if (fSuccess == 0)
- {
- throw TTransportException(TTransportException::NOT_OPEN, "SetNamedPipeHandleState failed");
- close();
- }
-}
-
-
-void TPipe::close() {
- if (isOpen())
- {
- CloseHandle(hPipe_);
- hPipe_ = INVALID_HANDLE_VALUE;
- }
-}
-
-uint32_t TPipe::read(uint8_t* buf, uint32_t len) {
- if (!isOpen())
- throw TTransportException(TTransportException::NOT_OPEN, "Called read on non-open pipe");
-
- DWORD cbRead;
- int fSuccess = ReadFile(
- hPipe_, // pipe handle
- buf, // buffer to receive reply
- len, // size of buffer
- &cbRead, // number of bytes read
- NULL); // not overlapped
-
- if ( !fSuccess && GetLastError() != ERROR_MORE_DATA )
- return 0; // No more data, possibly because client disconnected.
-
- return cbRead;
-}
-
-void TPipe::write(const uint8_t* buf, uint32_t len) {
- if (!isOpen())
- throw TTransportException(TTransportException::NOT_OPEN, "Called write on non-open pipe");
-
- HANDLE WritePipe = isAnonymous? hPipeWrt_: hPipe_;
- DWORD cbWritten;
- int fSuccess = WriteFile(
- WritePipe, // pipe handle
- buf, // message
- len, // message length
- &cbWritten, // bytes written
- NULL); // not overlapped
-
- if ( !fSuccess)
- throw TTransportException(TTransportException::NOT_OPEN, "Write to pipe failed");
-}
-
-
-//---------------------------------------------------------
-// Accessors
-//---------------------------------------------------------
-
-string TPipe::getPipename() {
- return pipename_;
-}
-
-void TPipe::setPipename(std::string pipename) {
- pipename_ = pipename;
-}
-
-HANDLE TPipe::getPipeHandle() {
- return hPipe_;
-}
-
-void TPipe::setPipeHandle(HANDLE pipehandle) {
- hPipe_ = pipehandle;
-}
-
-HANDLE TPipe::getWrtPipeHandle() {
- return hPipeWrt_;
-}
-
-void TPipe::setWrtPipeHandle(HANDLE pipehandle) {
- hPipeWrt_ = pipehandle;
-}
-
-long TPipe::getConnectTimeout() {
- return TimeoutSeconds_;
-}
-
-void TPipe::setConnectTimeout(long seconds) {
- TimeoutSeconds_ = seconds;
-}
-
-}}} // apache::thrift::transport
-
-#endif //_WIN32
+++ /dev/null
-/*
- * 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.
- */
-
-#ifndef _THRIFT_TRANSPORT_TPIPE_H_
-#define _THRIFT_TRANSPORT_TPIPE_H_ 1
-#ifdef _WIN32
-
-#include "TTransport.h"
-#include "TVirtualTransport.h"
-
-namespace apache { namespace thrift { namespace transport {
-
-/**
- * Windows Pipes implementation of the TTransport interface.
- *
- */
-class TPipe : public TVirtualTransport<TPipe> {
- public:
-
- // Constructs a new pipe object.
- TPipe();
- // Named pipe constructors -
- TPipe(HANDLE hPipe);
- TPipe(std::string path);
- // Anonymous pipe -
- TPipe(HANDLE hPipeRd, HANDLE hPipeWrt);
-
- // Destroys the pipe object, closing it if necessary.
- virtual ~TPipe();
-
- // Returns whether the pipe is open & valid.
- virtual bool isOpen();
-
- // Checks whether more data is available in the pipe.
- virtual bool peek();
-
- // Creates and opens the named/anonymous pipe.
- virtual void open();
-
- // Shuts down communications on the pipe.
- virtual void close();
-
- // Reads from the pipe.
- virtual uint32_t read(uint8_t* buf, uint32_t len);
-
- // Writes to the pipe.
- virtual void write(const uint8_t* buf, uint32_t len);
-
-
- //Accessors
- std::string getPipename();
- void setPipename(std::string pipename);
- HANDLE getPipeHandle(); //doubles as the read handle for anon pipe
- void setPipeHandle(HANDLE pipehandle);
- HANDLE getWrtPipeHandle();
- void setWrtPipeHandle(HANDLE pipehandle);
- long getConnectTimeout();
- void setConnectTimeout(long seconds);
-
- private:
- std::string pipename_;
- //Named pipe handles are R/W, while anonymous pipes are one or the other (half duplex).
- HANDLE hPipe_, hPipeWrt_;
- long TimeoutSeconds_;
- bool isAnonymous;
-
-};
-
-}}} // apache::thrift::transport
-
-#endif //_WIN32
-#endif // #ifndef _THRIFT_TRANSPORT_TPIPE_H_
-
+++ /dev/null
-/*
- * 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.
- */
-
-#ifdef _WIN32
-
-#ifdef HAVE_CONFIG_H
-#include <config.h>
-#endif
-#include <cstring>
-
-#include "TPipe.h"
-#include "TPipeServer.h"
-#include <boost/shared_ptr.hpp>
-#include <AccCtrl.h>
-#include <Aclapi.h>
-
-namespace apache { namespace thrift { namespace transport {
-
-using namespace std;
-using boost::shared_ptr;
-
-//---- Constructors ----
-TPipeServer::TPipeServer(string pipename, uint32_t bufsize) :
- pipename_(pipename),
- bufsize_(bufsize),
- hPipe_(INVALID_HANDLE_VALUE),
- isAnonymous(false),
- maxconns_(TPIPE_SERVER_MAX_CONNS_DEFAULT)
- {}
-
-TPipeServer::TPipeServer(string pipename, uint32_t bufsize, uint32_t maxconnections) :
- pipename_(pipename),
- bufsize_(bufsize),
- hPipe_(INVALID_HANDLE_VALUE),
- isAnonymous(false)
- { //Restrict maxconns_ to 1-255
- if(maxconnections == 0)
- maxconns_ = 1;
- else if (maxconnections > 255)
- maxconns_ = 255;
- else
- maxconns_ = maxconnections;
- }
-
-TPipeServer::TPipeServer(string pipename) :
- pipename_(pipename),
- bufsize_(1024),
- hPipe_(INVALID_HANDLE_VALUE),
- isAnonymous(false),
- maxconns_(TPIPE_SERVER_MAX_CONNS_DEFAULT)
- {}
-
-TPipeServer::TPipeServer(int bufsize) :
- pipename_(""),
- bufsize_(bufsize),
- hPipe_(INVALID_HANDLE_VALUE),
- isAnonymous(true),
- maxconns_(1)
- {
- //The anonymous pipe needs to be created first so that the server can
- //pass the handles on to the client before the serve (acceptImpl)
- //blocking call.
- if (!TCreateAnonPipe()) {
- GlobalOutput.perror("TPipeServer Create(Anon)Pipe failed, GLE=", GetLastError());
- throw TTransportException(TTransportException::NOT_OPEN, " TPipeServer Create(Anon)Pipe failed");
- }
-}
-
-TPipeServer::TPipeServer() :
- pipename_(""),
- bufsize_(1024),
- hPipe_(INVALID_HANDLE_VALUE),
- isAnonymous(true),
- maxconns_(1)
-{
- if (!TCreateAnonPipe()) {
- GlobalOutput.perror("TPipeServer Create(Anon)Pipe failed, GLE=", GetLastError());
- throw TTransportException(TTransportException::NOT_OPEN, " TPipeServer Create(Anon)Pipe failed");
- }
-}
-
-//---- Destructor ----
-TPipeServer::~TPipeServer() {
- close();
-}
-
-//---------------------------------------------------------
-// Transport callbacks
-//---------------------------------------------------------
-
-shared_ptr<TTransport> TPipeServer::acceptImpl() {
- shared_ptr<TPipe> client;
-
- if(isAnonymous)
- { //Anonymous Pipe
- //This 0-byte read serves merely as a blocking call.
- byte buf;
- DWORD br;
- int fSuccess = ReadFile(
- hPipe_, // pipe handle
- &buf, // buffer to receive reply
- 0, // size of buffer
- &br, // number of bytes read
- NULL); // not overlapped
-
- if ( !fSuccess && GetLastError() != ERROR_MORE_DATA ) {
- GlobalOutput.perror("TPipeServer unable to initiate pipe comms, GLE=", GetLastError());
- throw TTransportException(TTransportException::NOT_OPEN, " TPipeServer unable to initiate pipe comms");
- }
- client.reset(new TPipe(hPipe_, hPipeW_));
- }
- else
- { //Named Pipe
- int ConnectRet;
- while (true)
- {
- if (!TCreateNamedPipe()) {
- GlobalOutput.perror("TPipeServer CreateNamedPipe failed, GLE=", GetLastError());
- throw TTransportException(TTransportException::NOT_OPEN, " TPipeServer CreateNamedPipe failed");
- }
-
- // Wait for the client to connect; if it succeeds, the
- // function returns a nonzero value. If the function returns
- // zero, GetLastError should return ERROR_PIPE_CONNECTED.
- ConnectRet = ConnectNamedPipe(hPipe_, NULL) ?
- TRUE : (GetLastError() == ERROR_PIPE_CONNECTED);
-
- if (ConnectRet == TRUE)
- {
- GlobalOutput.printf("Client connected.");
- break;
- }
- else
- {
- close();
- GlobalOutput.perror("TPipeServer ConnectNamedPipe GLE=", GetLastError());
- throw TTransportException(TTransportException::NOT_OPEN, "TPipeServer: client connection failed");
- }
- }
- client.reset(new TPipe(hPipe_));
- }
-
- return client;
-}
-
-void TPipeServer::interrupt() {
- if(hPipe_ != INVALID_HANDLE_VALUE) {
- CancelIo(hPipe_);
- }
-}
-
-void TPipeServer::close() {
- if(!isAnonymous)
- {
- if(hPipe_ != INVALID_HANDLE_VALUE) {
- DisconnectNamedPipe(hPipe_);
- CloseHandle(hPipe_);
- hPipe_ = INVALID_HANDLE_VALUE;
- }
- }
- else
- {
- try {
- CloseHandle(hPipe_);
- CloseHandle(hPipeW_);
- CloseHandle(ClientAnonRead);
- CloseHandle(ClientAnonWrite);
- }
- catch(...) {
- GlobalOutput.perror("TPipeServer anon close GLE=", GetLastError());
- }
- }
-}
-
-
-bool TPipeServer::TCreateNamedPipe() {
-
- //Windows - set security to allow non-elevated apps
- //to access pipes created by elevated apps.
- SID_IDENTIFIER_AUTHORITY SIDAuthWorld = SECURITY_WORLD_SID_AUTHORITY;
- PSID everyone_sid = NULL;
- AllocateAndInitializeSid(&SIDAuthWorld, 1, SECURITY_WORLD_RID, 0, 0, 0, 0, 0, 0, 0, &everyone_sid);
-
- EXPLICIT_ACCESS ea;
- ZeroMemory(&ea, sizeof(EXPLICIT_ACCESS));
- ea.grfAccessPermissions = SPECIFIC_RIGHTS_ALL | STANDARD_RIGHTS_ALL;
- ea.grfAccessMode = SET_ACCESS;
- ea.grfInheritance = NO_INHERITANCE;
- ea.Trustee.TrusteeForm = TRUSTEE_IS_SID;
- ea.Trustee.TrusteeType = TRUSTEE_IS_WELL_KNOWN_GROUP;
- ea.Trustee.ptstrName = (LPSTR)everyone_sid;
-
- PACL acl = NULL;
- SetEntriesInAcl(1, &ea, NULL, &acl);
-
- PSECURITY_DESCRIPTOR sd = (PSECURITY_DESCRIPTOR)LocalAlloc(LPTR,SECURITY_DESCRIPTOR_MIN_LENGTH);
- InitializeSecurityDescriptor(sd, SECURITY_DESCRIPTOR_REVISION);
- SetSecurityDescriptorDacl(sd, TRUE, acl, FALSE);
-
- SECURITY_ATTRIBUTES sa;
- sa.nLength = sizeof(SECURITY_ATTRIBUTES);
- sa.lpSecurityDescriptor = sd;
- sa.bInheritHandle = FALSE;
-
- // Create an instance of the named pipe
- hPipe_ = CreateNamedPipe(
- pipename_.c_str(), // pipe name
- PIPE_ACCESS_DUPLEX, // read/write access
- PIPE_TYPE_MESSAGE | // message type pipe
- PIPE_READMODE_MESSAGE, // message-read mode
- maxconns_, // max. instances
- bufsize_, // output buffer size
- bufsize_, // input buffer size
- 0, // client time-out
- &sa); // default security attribute
-
- return (hPipe_ != INVALID_HANDLE_VALUE);
-}
-
-bool TPipeServer::TCreateAnonPipe() {
- SECURITY_ATTRIBUTES sa;
- SECURITY_DESCRIPTOR sd; //security information for pipes
-
- InitializeSecurityDescriptor(&sd,SECURITY_DESCRIPTOR_REVISION);
- SetSecurityDescriptorDacl(&sd, true, NULL, false);
- sa.lpSecurityDescriptor = &sd;
- sa.lpSecurityDescriptor = NULL;
- sa.nLength = sizeof(SECURITY_ATTRIBUTES);
- sa.bInheritHandle = true; //allow passing handle to child
-
- if (!CreatePipe(&ClientAnonRead,&hPipeW_,&sa,0)) //create stdin pipe
- {
- GlobalOutput.perror("TPipeServer CreatePipe (anon) failed, GLE=", GetLastError());
- return false;
- }
- if (!CreatePipe(&hPipe_,&ClientAnonWrite,&sa,0)) //create stdout pipe
- {
- GlobalOutput.perror("TPipeServer CreatePipe (anon) failed, GLE=", GetLastError());
- CloseHandle(ClientAnonRead);
- CloseHandle(hPipeW_);
- return false;
- }
-
- return true;
-}
-
-
-//---------------------------------------------------------
-// Accessors
-//---------------------------------------------------------
-
-string TPipeServer::getPipename() {
- return pipename_;
-}
-
-void TPipeServer::setPipename(std::string pipename) {
- pipename_ = pipename;
-}
-
-int TPipeServer::getBufferSize() {
- return bufsize_;
-}
-
-void TPipeServer::setBufferSize(int bufsize) {
- bufsize_ = bufsize;
-}
-
-HANDLE TPipeServer::getPipeHandle() {
- return hPipe_;
-}
-
-HANDLE TPipeServer::getWrtPipeHandle()
-{
- return hPipeW_;
-}
-
-HANDLE TPipeServer::getClientRdPipeHandle()
-{
- return ClientAnonRead;
-}
-
-HANDLE TPipeServer::getClientWrtPipeHandle()
-{
- return ClientAnonWrite;
-}
-
-bool TPipeServer::getAnonymous() {
- return isAnonymous;
-}
-
-void TPipeServer::setAnonymous(bool anon) {
- isAnonymous = anon;
-}
-
-}}} // apache::thrift::transport
-
-#endif //_WIN32
+++ /dev/null
-/*
- * 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.
- */
-
-#ifndef _THRIFT_TRANSPORT_TSERVERWINPIPES_H_
-#define _THRIFT_TRANSPORT_TSERVERWINPIPES_H_ 1
-#ifdef _WIN32
-
-#include "TServerTransport.h"
-#include <boost/shared_ptr.hpp>
-
-#define TPIPE_SERVER_MAX_CONNS_DEFAULT 10
-
-namespace apache { namespace thrift { namespace transport {
-
-/**
- * Windows Pipes implementation of TServerTransport.
- */
-class TPipeServer : public TServerTransport {
- public:
- //Constructors
- // Named Pipe -
- TPipeServer(std::string pipename, uint32_t bufsize);
- TPipeServer(std::string pipename, uint32_t bufsize, uint32_t maxconnections);
- TPipeServer(std::string pipename);
- // Anonymous pipe -
- TPipeServer(int bufsize);
- TPipeServer();
-
- //Destructor
- ~TPipeServer();
-
- //Standard transport callbacks
- //void listen(); //Unnecessary for Windows pipes
- void interrupt();
- void close();
- protected:
- boost::shared_ptr<TTransport> acceptImpl();
-
- bool TCreateNamedPipe();
- bool TCreateAnonPipe();
-
- public:
- //Accessors
- std::string getPipename();
- void setPipename(std::string pipename);
- int getBufferSize();
- void setBufferSize(int bufsize);
- HANDLE getPipeHandle(); //Named Pipe R/W -or- Anonymous pipe Read handle
- HANDLE getWrtPipeHandle();
- HANDLE getClientRdPipeHandle();
- HANDLE getClientWrtPipeHandle();
- bool getAnonymous();
- void setAnonymous(bool anon);
-
- private:
- std::string pipename_;
- uint32_t bufsize_;
- uint32_t maxconns_;
- HANDLE hPipe_; //Named Pipe (R/W) or Anonymous Pipe (R)
- HANDLE hPipeW_; //Anonymous Pipe (W)
- HANDLE ClientAnonRead, ClientAnonWrite; //Client side anonymous pipe handles
- //? Do we need duplicates to send to client?
- bool isAnonymous;
-};
-
-}}} // apache::thrift::transport
-
-#endif //_WIN32
-#endif // #ifndef _THRIFT_TRANSPORT_TSERVERWINPIPES_H_
#include <stdio.h>
-#include <protocol/TBinaryProtocol.h>
-#include <protocol/TCompactProtocol.h>
-#include <transport/TBufferTransports.h>
+#include <thrift/protocol/TBinaryProtocol.h>
+#include <thrift/protocol/TCompactProtocol.h>
+#include <thrift/transport/TBufferTransports.h>
#include "AllProtocolTests.tcc"
using namespace apache::thrift;
#ifndef _THRIFT_TEST_GENERICPROTOCOLTEST_TCC_
#define _THRIFT_TEST_GENERICPROTOCOLTEST_TCC_ 1
-#include <limits>
+#include <thrift/limits>
-#include <protocol/TBinaryProtocol.h>
-#include <transport/TBufferTransports.h>
-#include <Thrift.h>
+#include <thrift/protocol/TBinaryProtocol.h>
+#include <thrift/transport/TBufferTransports.h>
+#include <thrift/Thrift.h>
#include "GenericHelpers.h"
#endif
#include <iostream>
#include <cmath>
-#include "transport/TBufferTransports.h"
-#include "protocol/TBinaryProtocol.h"
+#include "thrift/transport/TBufferTransports.h"
+#include "thrift/protocol/TBinaryProtocol.h"
#include "gen-cpp/DebugProtoTest_types.h"
#include <time.h>
#ifdef HAVE_SYS_TIME_H
#include <iostream>
#include <cmath>
#include "gen-cpp/DebugProtoTest_types.h"
-#include <protocol/TDebugProtocol.h>
+#include <thrift/protocol/TDebugProtocol.h>
int main() {
using std::cout;
#include <string>
#include "gen-cpp/DebugProtoTest_types.h"
#include "gen-cpp/OptionalRequiredTest_types.h"
-#include <protocol/TDenseProtocol.h>
-#include <transport/TBufferTransports.h>
+#include <thrift/protocol/TDenseProtocol.h>
+#include <thrift/transport/TBufferTransports.h>
// Can't use memcmp here. GCC is too smart.
#ifndef _THRIFT_TEST_GENERICHELPERS_H_
#define _THRIFT_TEST_GENERICHELPERS_H_ 1
-#include <protocol/TBinaryProtocol.h>
-#include <transport/TBufferTransports.h>
-#include <Thrift.h>
+#include <thrift/protocol/TBinaryProtocol.h>
+#include <thrift/transport/TBufferTransports.h>
+#include <thrift/Thrift.h>
using boost::shared_ptr;
using namespace apache::thrift::protocol;
#include <iostream>
#include <cmath>
-#include <transport/TBufferTransports.h>
-#include <protocol/TJSONProtocol.h>
+#include <thrift/transport/TBufferTransports.h>
+#include <thrift/protocol/TJSONProtocol.h>
#include "gen-cpp/DebugProtoTest_types.h"
int main() {
#include <cassert>
#include <map>
#include <iostream>
-#include <protocol/TDebugProtocol.h>
-#include <protocol/TBinaryProtocol.h>
-#include <transport/TBufferTransports.h>
+#include <thrift/protocol/TDebugProtocol.h>
+#include <thrift/protocol/TBinaryProtocol.h>
+#include <thrift/transport/TBufferTransports.h>
#include "gen-cpp/OptionalRequiredTest_types.h"
using std::cout;
#include <boost/shared_ptr.hpp>
#include <boost/test/unit_test.hpp>
-#include "concurrency/Mutex.h"
-#include "concurrency/PosixThreadFactory.h"
+#include "thrift/concurrency/Mutex.h"
+#include "thrift/concurrency/PosixThreadFactory.h"
using boost::shared_ptr;
using boost::unit_test::test_suite;
#include <iostream>
#include <cmath>
-#include <transport/TTransportUtils.h>
-#include <protocol/TBinaryProtocol.h>
+#include <thrift/transport/TTransportUtils.h>
+#include <thrift/protocol/TBinaryProtocol.h>
#include <gen-cpp/DebugProtoTest_types.h>
using std::cout;
#include <algorithm>
#include <boost/test/auto_unit_test.hpp>
-#include <transport/TBufferTransports.h>
-#include <transport/TShortReadTransport.h>
+#include <thrift/transport/TBufferTransports.h>
+#include <thrift/transport/TShortReadTransport.h>
using std::string;
using boost::shared_ptr;
#include <cstdlib>
#include <stdexcept>
-#include <Thrift.h>
-#include <transport/TFDTransport.h>
+#include <thrift/Thrift.h>
+#include <thrift/transport/TFDTransport.h>
using apache::thrift::transport::TTransportException;
using apache::thrift::transport::TFDTransport;
#include <getopt.h>
#include <boost/test/unit_test.hpp>
-#include <transport/TFileTransport.h>
+#include <thrift/transport/TFileTransport.h>
using namespace apache::thrift::transport;
#include <iostream>
#include <climits>
#include <cassert>
-#include <transport/TBufferTransports.h>
-#include <protocol/TBinaryProtocol.h>
+#include <thrift/transport/TBufferTransports.h>
+#include <thrift/protocol/TBinaryProtocol.h>
#include "gen-cpp/ThriftTest_types.h"
BOOST_AUTO_TEST_SUITE( TMemoryBufferTest )
#include <cstdlib>
#include <stdexcept>
-#include <Thrift.h>
-#include <transport/TTransportUtils.h>
-#include <transport/TBufferTransports.h>
+#include <thrift/Thrift.h>
+#include <thrift/transport/TTransportUtils.h>
+#include <thrift/transport/TBufferTransports.h>
using namespace std;
using apache::thrift::transport::TTransportException;
using apache::thrift::transport::TPipedTransport;
// Extra functions required for ThriftTest_types to work
-#include <protocol/TDebugProtocol.h>
+#include <thrift/protocol/TDebugProtocol.h>
#include "gen-cpp/ThriftTest_types.h"
#include <boost/type_traits.hpp>
#include <boost/test/unit_test.hpp>
-#include <transport/TBufferTransports.h>
-#include <transport/TFDTransport.h>
-#include <transport/TFileTransport.h>
-#include <transport/TZlibTransport.h>
-#include <transport/TSocket.h>
+#include <thrift/transport/TBufferTransports.h>
+#include <thrift/transport/TFDTransport.h>
+#include <thrift/transport/TFileTransport.h>
+#include <thrift/transport/TZlibTransport.h>
+#include <thrift/transport/TSocket.h>
using namespace apache::thrift::transport;
#include <boost/shared_array.hpp>
#include <boost/test/unit_test.hpp>
-#include <transport/TBufferTransports.h>
-#include <transport/TZlibTransport.h>
+#include <thrift/transport/TBufferTransports.h>
+#include <thrift/transport/TZlibTransport.h>
using namespace std;
using namespace boost;
* under the License.
*/
-#include <concurrency/ThreadManager.h>
-#include <concurrency/PlatformThreadFactory.h>
-#include <concurrency/Monitor.h>
-#include <concurrency/Util.h>
-#include <concurrency/Mutex.h>
-#include <protocol/TBinaryProtocol.h>
-#include <server/TSimpleServer.h>
-#include <server/TThreadPoolServer.h>
-#include <server/TThreadedServer.h>
-#include <transport/TServerSocket.h>
-#include <transport/TSocket.h>
-#include <transport/TTransportUtils.h>
-#include <transport/TFileTransport.h>
+#include <thrift/concurrency/ThreadManager.h>
+#include <thrift/concurrency/PlatformThreadFactory.h>
+#include <thrift/concurrency/Monitor.h>
+#include <thrift/concurrency/Util.h>
+#include <thrift/concurrency/Mutex.h>
+#include <thrift/protocol/TBinaryProtocol.h>
+#include <thrift/server/TSimpleServer.h>
+#include <thrift/server/TThreadPoolServer.h>
+#include <thrift/server/TThreadedServer.h>
+#include <thrift/transport/TServerSocket.h>
+#include <thrift/transport/TSocket.h>
+#include <thrift/transport/TTransportUtils.h>
+#include <thrift/transport/TFileTransport.h>
#include <TLogging.h>
#include "Service.h"
* under the License.
*/
-#include <concurrency/ThreadManager.h>
-#include <concurrency/PlatformThreadFactory.h>
-#include <concurrency/Monitor.h>
-#include <concurrency/Util.h>
-#include <concurrency/Mutex.h>
-#include <protocol/TBinaryProtocol.h>
-#include <server/TSimpleServer.h>
-#include <server/TThreadPoolServer.h>
-#include <server/TThreadedServer.h>
-#include <server/TNonblockingServer.h>
-#include <transport/TServerSocket.h>
-#include <transport/TSocket.h>
-#include <transport/TTransportUtils.h>
-#include <transport/TFileTransport.h>
+#include <thrift/concurrency/ThreadManager.h>
+#include <thrift/concurrency/PlatformThreadFactory.h>
+#include <thrift/concurrency/Monitor.h>
+#include <thrift/concurrency/Util.h>
+#include <thrift/concurrency/Mutex.h>
+#include <thrift/protocol/TBinaryProtocol.h>
+#include <thrift/server/TSimpleServer.h>
+#include <thrift/server/TThreadPoolServer.h>
+#include <thrift/server/TThreadedServer.h>
+#include <thrift/server/TNonblockingServer.h>
+#include <thrift/transport/TServerSocket.h>
+#include <thrift/transport/TSocket.h>
+#include <thrift/transport/TTransportUtils.h>
+#include <thrift/transport/TFileTransport.h>
#include <TLogging.h>
#include "Service.h"
#include <iostream>
#include <unistd.h>
#include <sys/time.h>
-#include <protocol/TBinaryProtocol.h>
-#include <protocol/TJSONProtocol.h>
-#include <transport/THttpClient.h>
-#include <transport/TTransportUtils.h>
-#include <transport/TSocket.h>
-#include <transport/TSSLSocket.h>
-#include <async/TEvhttpClientChannel.h>
-#include <server/TNonblockingServer.h> // <event.h>
+#include <thrift/protocol/TBinaryProtocol.h>
+#include <thrift/protocol/TJSONProtocol.h>
+#include <thrift/transport/THttpClient.h>
+#include <thrift/transport/TTransportUtils.h>
+#include <thrift/transport/TSocket.h>
+#include <thrift/transport/TSSLSocket.h>
+#include <thrift/async/TEvhttpClientChannel.h>
+#include <thrift/server/TNonblockingServer.h> // <event.h>
#include <boost/shared_ptr.hpp>
#include <boost/program_options.hpp>
#define __STDC_FORMAT_MACROS
#include <inttypes.h>
-#include <concurrency/ThreadManager.h>
-#include <concurrency/PlatformThreadFactory.h>
-#include <protocol/TBinaryProtocol.h>
-#include <protocol/TJSONProtocol.h>
-#include <server/TSimpleServer.h>
-#include <server/TThreadedServer.h>
-#include <server/TThreadPoolServer.h>
-#include <async/TEvhttpServer.h>
-#include <async/TAsyncBufferProcessor.h>
-#include <async/TAsyncProtocolProcessor.h>
-#include <server/TNonblockingServer.h>
-#include <transport/TServerSocket.h>
-#include <transport/TSSLServerSocket.h>
-#include <transport/TSSLSocket.h>
-#include <transport/THttpServer.h>
-#include <transport/THttpTransport.h>
-#include <transport/TTransportUtils.h>
+#include <thrift/concurrency/ThreadManager.h>
+#include <thrift/concurrency/PlatformThreadFactory.h>
+#include <thrift/protocol/TBinaryProtocol.h>
+#include <thrift/protocol/TJSONProtocol.h>
+#include <thrift/server/TSimpleServer.h>
+#include <thrift/server/TThreadedServer.h>
+#include <thrift/server/TThreadPoolServer.h>
+#include <thrift/async/TEvhttpServer.h>
+#include <thrift/async/TAsyncBufferProcessor.h>
+#include <thrift/async/TAsyncProtocolProcessor.h>
+#include <thrift/server/TNonblockingServer.h>
+#include <thrift/transport/TServerSocket.h>
+#include <thrift/transport/TSSLServerSocket.h>
+#include <thrift/transport/TSSLSocket.h>
+#include <thrift/transport/THttpServer.h>
+#include <thrift/transport/THttpTransport.h>
+#include <thrift/transport/TTransportUtils.h>
#include "ThriftTest.h"
#include <iostream>
// You should copy it to another filename to avoid overwriting it.
#include "ThreadsTest.h"
-#include <protocol/TBinaryProtocol.h>
-#include <server/TThreadPoolServer.h>
-#include <transport/TSocket.h>
-#include <transport/TTransportUtils.h>
-#include <concurrency/Monitor.h>
-#include <concurrency/ThreadManager.h>
-#include <concurrency/PlatformThreadFactory.h>
+#include <thrift/protocol/TBinaryProtocol.h>
+#include <thrift/server/TThreadPoolServer.h>
+#include <thrift/transport/TSocket.h>
+#include <thrift/transport/TTransportUtils.h>
+#include <thrift/concurrency/Monitor.h>
+#include <thrift/concurrency/ThreadManager.h>
+#include <thrift/concurrency/PlatformThreadFactory.h>
using boost::shared_ptr;
using namespace apache::thrift;
// You should copy it to another filename to avoid overwriting it.
#include "ThreadsTest.h"
-#include <protocol/TBinaryProtocol.h>
-#include <server/TThreadPoolServer.h>
-#include <server/TThreadedServer.h>
-#include <transport/TServerSocket.h>
-#include <transport/TTransportUtils.h>
-#include <concurrency/Monitor.h>
-#include <concurrency/ThreadManager.h>
-#include <concurrency/PlatformThreadFactory.h>
+#include <thrift/protocol/TBinaryProtocol.h>
+#include <thrift/server/TThreadPoolServer.h>
+#include <thrift/server/TThreadedServer.h>
+#include <thrift/transport/TServerSocket.h>
+#include <thrift/transport/TTransportUtils.h>
+#include <thrift/concurrency/Monitor.h>
+#include <thrift/concurrency/ThreadManager.h>
+#include <thrift/concurrency/PlatformThreadFactory.h>
using boost::shared_ptr;
using namespace apache::thrift;
#include <unistd.h>
#include <sys/time.h>
-#include <protocol/TBinaryProtocol.h>
-#include <transport/TSocket.h>
-#include <transport/TTransportUtils.h>
+#include <thrift/protocol/TBinaryProtocol.h>
+#include <thrift/transport/TSocket.h>
+#include <thrift/transport/TTransportUtils.h>
#include "../gen-cpp/Calculator.h"
* under the License.
*/
-#include <concurrency/ThreadManager.h>
-#include <concurrency/PosixThreadFactory.h>
-#include <protocol/TBinaryProtocol.h>
-#include <server/TSimpleServer.h>
-#include <server/TThreadPoolServer.h>
-#include <server/TThreadedServer.h>
-#include <transport/TServerSocket.h>
-#include <transport/TTransportUtils.h>
+#include <thrift/concurrency/ThreadManager.h>
+#include <thrift/concurrency/PosixThreadFactory.h>
+#include <thrift/protocol/TBinaryProtocol.h>
+#include <thrift/server/TSimpleServer.h>
+#include <thrift/server/TThreadPoolServer.h>
+#include <thrift/server/TThreadedServer.h>
+#include <thrift/transport/TServerSocket.h>
+#include <thrift/transport/TTransportUtils.h>
#include <iostream>
#include <stdexcept>