THRIFT-1826 update c_glib source header paths
authorRoger Meier <roger@apache.org>
Fri, 11 Jan 2013 10:41:53 +0000 (11:41 +0100)
committerRoger Meier <roger@apache.org>
Fri, 11 Jan 2013 10:41:53 +0000 (11:41 +0100)
Patch: Simon South

49 files changed:
compiler/cpp/src/generate/t_c_glib_generator.cc
lib/c_glib/Makefile.am
lib/c_glib/src/thrift/c_glib/processor/thrift_processor.c [moved from lib/c_glib/src/thrift/processor/thrift_processor.c with 94% similarity]
lib/c_glib/src/thrift/c_glib/processor/thrift_processor.h [moved from lib/c_glib/src/thrift/processor/thrift_processor.h with 97% similarity]
lib/c_glib/src/thrift/c_glib/protocol/thrift_binary_protocol.c [moved from lib/c_glib/src/thrift/protocol/thrift_binary_protocol.c with 99% similarity]
lib/c_glib/src/thrift/c_glib/protocol/thrift_binary_protocol.h [moved from lib/c_glib/src/thrift/protocol/thrift_binary_protocol.h with 95% similarity]
lib/c_glib/src/thrift/c_glib/protocol/thrift_binary_protocol_factory.c [moved from lib/c_glib/src/thrift/protocol/thrift_binary_protocol_factory.c with 91% similarity]
lib/c_glib/src/thrift/c_glib/protocol/thrift_binary_protocol_factory.h [moved from lib/c_glib/src/thrift/protocol/thrift_binary_protocol_factory.h with 97% similarity]
lib/c_glib/src/thrift/c_glib/protocol/thrift_protocol.c [moved from lib/c_glib/src/thrift/protocol/thrift_protocol.c with 99% similarity]
lib/c_glib/src/thrift/c_glib/protocol/thrift_protocol.h [moved from lib/c_glib/src/thrift/protocol/thrift_protocol.h with 99% similarity]
lib/c_glib/src/thrift/c_glib/protocol/thrift_protocol_factory.c [moved from lib/c_glib/src/thrift/protocol/thrift_protocol_factory.c with 93% similarity]
lib/c_glib/src/thrift/c_glib/protocol/thrift_protocol_factory.h [moved from lib/c_glib/src/thrift/protocol/thrift_protocol_factory.h with 95% similarity]
lib/c_glib/src/thrift/c_glib/server/thrift_server.c [moved from lib/c_glib/src/thrift/server/thrift_server.c with 99% similarity]
lib/c_glib/src/thrift/c_glib/server/thrift_server.h [moved from lib/c_glib/src/thrift/server/thrift_server.h with 91% similarity]
lib/c_glib/src/thrift/c_glib/server/thrift_simple_server.c [moved from lib/c_glib/src/thrift/server/thrift_simple_server.c with 94% similarity]
lib/c_glib/src/thrift/c_glib/server/thrift_simple_server.h [moved from lib/c_glib/src/thrift/server/thrift_simple_server.h with 97% similarity]
lib/c_glib/src/thrift/c_glib/thrift.c [moved from lib/c_glib/src/thrift/thrift.c with 96% similarity]
lib/c_glib/src/thrift/c_glib/thrift.h [moved from lib/c_glib/src/thrift/thrift.h with 100% similarity]
lib/c_glib/src/thrift/c_glib/thrift_application_exception.c [moved from lib/c_glib/src/thrift/thrift_application_exception.c with 99% similarity]
lib/c_glib/src/thrift/c_glib/thrift_application_exception.h [moved from lib/c_glib/src/thrift/thrift_application_exception.h with 100% similarity]
lib/c_glib/src/thrift/c_glib/thrift_struct.c [moved from lib/c_glib/src/thrift/thrift_struct.c with 97% similarity]
lib/c_glib/src/thrift/c_glib/thrift_struct.h [moved from lib/c_glib/src/thrift/thrift_struct.h with 97% similarity]
lib/c_glib/src/thrift/c_glib/transport/thrift_buffered_transport.c [moved from lib/c_glib/src/thrift/transport/thrift_buffered_transport.c with 98% similarity]
lib/c_glib/src/thrift/c_glib/transport/thrift_buffered_transport.h [moved from lib/c_glib/src/thrift/transport/thrift_buffered_transport.h with 97% similarity]
lib/c_glib/src/thrift/c_glib/transport/thrift_framed_transport.c [moved from lib/c_glib/src/thrift/transport/thrift_framed_transport.c with 98% similarity]
lib/c_glib/src/thrift/c_glib/transport/thrift_framed_transport.h [moved from lib/c_glib/src/thrift/transport/thrift_framed_transport.h with 97% similarity]
lib/c_glib/src/thrift/c_glib/transport/thrift_memory_buffer.c [moved from lib/c_glib/src/thrift/transport/thrift_memory_buffer.c with 97% similarity]
lib/c_glib/src/thrift/c_glib/transport/thrift_memory_buffer.h [moved from lib/c_glib/src/thrift/transport/thrift_memory_buffer.h with 97% similarity]
lib/c_glib/src/thrift/c_glib/transport/thrift_server_socket.c [moved from lib/c_glib/src/thrift/transport/thrift_server_socket.c with 96% similarity]
lib/c_glib/src/thrift/c_glib/transport/thrift_server_socket.h [moved from lib/c_glib/src/thrift/transport/thrift_server_socket.h with 100% similarity]
lib/c_glib/src/thrift/c_glib/transport/thrift_server_transport.c [moved from lib/c_glib/src/thrift/transport/thrift_server_transport.c with 93% similarity]
lib/c_glib/src/thrift/c_glib/transport/thrift_server_transport.h [moved from lib/c_glib/src/thrift/transport/thrift_server_transport.h with 100% similarity]
lib/c_glib/src/thrift/c_glib/transport/thrift_socket.c [moved from lib/c_glib/src/thrift/transport/thrift_socket.c with 98% similarity]
lib/c_glib/src/thrift/c_glib/transport/thrift_socket.h [moved from lib/c_glib/src/thrift/transport/thrift_socket.h with 97% similarity]
lib/c_glib/src/thrift/c_glib/transport/thrift_transport.c [moved from lib/c_glib/src/thrift/transport/thrift_transport.c with 97% similarity]
lib/c_glib/src/thrift/c_glib/transport/thrift_transport.h [moved from lib/c_glib/src/thrift/transport/thrift_transport.h with 100% similarity]
lib/c_glib/src/thrift/c_glib/transport/thrift_transport_factory.c [moved from lib/c_glib/src/thrift/transport/thrift_transport_factory.c with 93% similarity]
lib/c_glib/src/thrift/c_glib/transport/thrift_transport_factory.h [moved from lib/c_glib/src/thrift/transport/thrift_transport_factory.h with 100% similarity]
lib/c_glib/test/testbinaryprotocol.c [changed mode: 0644->0755]
lib/c_glib/test/testbufferedtransport.c [changed mode: 0644->0755]
lib/c_glib/test/testframedtransport.c [changed mode: 0644->0755]
lib/c_glib/test/testmemorybuffer.c [changed mode: 0644->0755]
lib/c_glib/test/testoptionalrequired.c [changed mode: 0644->0755]
lib/c_glib/test/testsimpleserver.c [changed mode: 0644->0755]
lib/c_glib/test/teststruct.c [changed mode: 0644->0755]
lib/c_glib/test/testthrifttest.c [changed mode: 0644->0755]
lib/c_glib/test/testthrifttestclient.cpp [changed mode: 0644->0755]
lib/c_glib/test/testtransportsocket.c [changed mode: 0644->0755]
lib/c_glib/thrift_c_glib.pc.in

index 8012770..f16a7fc 100644 (file)
@@ -197,8 +197,8 @@ void t_c_glib_generator::init_generator() {
   f_types_ <<
     "/* base includes */" << endl <<
     "#include <glib-object.h>" << endl <<
-    "#include <thrift/thrift_struct.h>" << endl <<
-    "#include <thrift/protocol/thrift_protocol.h>" << endl;
+    "#include <thrift/c_glib/thrift_struct.h>" << endl <<
+    "#include <thrift/c_glib/protocol/thrift_protocol.h>" << endl;
 
   /* include other thrift includes */
   const vector<t_program *> &includes = program_->get_includes();
@@ -229,7 +229,7 @@ void t_c_glib_generator::init_generator() {
     endl <<
     "#include \"" << this->nspace_lc << program_name_u << 
         "_types.h\"" << endl <<
-    "#include <thrift/thrift.h>" << endl <<
+    "#include <thrift/c_glib/thrift.h>" << endl <<
     endl;
 
   f_types_ <<
@@ -422,8 +422,8 @@ void t_c_glib_generator::generate_service (t_service *tservice) {
   // include the headers
   f_service_ <<
     "#include <string.h>" << endl <<
-    "#include <thrift/thrift.h>" << endl <<
-    "#include <thrift/thrift_application_exception.h>" << endl <<
+    "#include <thrift/c_glib/thrift.h>" << endl <<
+    "#include <thrift/c_glib/thrift_application_exception.h>" << endl <<
     "#include \"" << filename << ".h\"" << endl <<
     endl;
 
index d89b22c..f72ff96 100644 (file)
@@ -24,7 +24,7 @@ pkgconfigdir = $(libdir)/pkgconfig
 lib_LTLIBRARIES = libthrift_c_glib.la
 pkgconfig_DATA = thrift_c_glib.pc
 
-common_cflags = -g -Wall -W -Werror -Isrc -I src/thrift $(GLIB_CFLAGS)
+common_cflags = -g -Wall -W -Werror -Isrc -I src/thrift/c_glib $(GLIB_CFLAGS)
 common_ldflags = -g -Wall -W $(GLIB_LDFLAGS) @GCOV_LDFLAGS@
 
 # this removes optimizations and adds coverage flags
@@ -32,56 +32,56 @@ CFLAGS = @GCOV_CFLAGS@
 
 # Define the source files for the module
 
-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_SOURCES = src/thrift/c_glib/thrift.c \
+                              src/thrift/c_glib/thrift_struct.c \
+                              src/thrift/c_glib/thrift_application_exception.c \
+                              src/thrift/c_glib/processor/thrift_processor.c \
+                              src/thrift/c_glib/protocol/thrift_protocol.c \
+                              src/thrift/c_glib/protocol/thrift_protocol_factory.c \
+                              src/thrift/c_glib/protocol/thrift_binary_protocol.c \
+                              src/thrift/c_glib/protocol/thrift_binary_protocol_factory.c \
+                              src/thrift/c_glib/transport/thrift_transport.c \
+                              src/thrift/c_glib/transport/thrift_transport_factory.c \
+                              src/thrift/c_glib/transport/thrift_socket.c \
+                              src/thrift/c_glib/transport/thrift_server_transport.c \
+                              src/thrift/c_glib/transport/thrift_server_socket.c \
+                              src/thrift/c_glib/transport/thrift_buffered_transport.c \
+                              src/thrift/c_glib/transport/thrift_framed_transport.c \
+                              src/thrift/c_glib/transport/thrift_memory_buffer.c \
+                              src/thrift/c_glib/server/thrift_server.c \
+                              src/thrift/c_glib/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/thrift.h \
-                         src/thrift/thrift_application_exception.h \
-                         src/thrift/thrift_struct.h
+                         src/thrift/c_glib/thrift.h \
+                         src/thrift/c_glib/thrift_application_exception.h \
+                         src/thrift/c_glib/thrift_struct.h
 
 include_protocoldir = $(include_thriftdir)/protocol
-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_protocol_HEADERS = src/thrift/c_glib/protocol/thrift_protocol.h \
+                           src/thrift/c_glib/protocol/thrift_protocol_factory.h \
+                           src/thrift/c_glib/protocol/thrift_binary_protocol.h \
+                           src/thrift/c_glib/protocol/thrift_binary_protocol_factory.h
 
 include_transportdir = $(include_thriftdir)/transport
-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_transport_HEADERS = src/thrift/c_glib/transport/thrift_buffered_transport.h \
+                            src/thrift/c_glib/transport/thrift_framed_transport.h \
+                            src/thrift/c_glib/transport/thrift_memory_buffer.h \
+                            src/thrift/c_glib/transport/thrift_server_socket.h \
+                            src/thrift/c_glib/transport/thrift_server_transport.h \
+                            src/thrift/c_glib/transport/thrift_socket.h \
+                            src/thrift/c_glib/transport/thrift_transport.h \
+                            src/thrift/c_glib/transport/thrift_transport_factory.h
 
 include_serverdir = $(include_thriftdir)/server
-include_server_HEADERS = src/thrift/server/thrift_server.h \
-                         src/thrift/server/thrift_simple_server.h
+include_server_HEADERS = src/thrift/c_glib/server/thrift_server.h \
+                         src/thrift/c_glib/server/thrift_simple_server.h
 
 include_processordir = $(include_thriftdir)/processor
-include_processor_HEADERS = src/thrift/processor/thrift_processor.h
+include_processor_HEADERS = src/thrift/c_glib/processor/thrift_processor.h
 
 
 EXTRA_DIST = \
@@ -17,8 +17,8 @@
  * under the License.
  */
 
-#include <thrift/thrift.h>
-#include <thrift/processor/thrift_processor.h>
+#include <thrift/c_glib/thrift.h>
+#include <thrift/c_glib/processor/thrift_processor.h>
 
 G_DEFINE_ABSTRACT_TYPE(ThriftProcessor, thrift_processor, G_TYPE_OBJECT)
 
@@ -22,7 +22,7 @@
 
 #include <glib-object.h>
 
-#include <thrift/protocol/thrift_protocol.h>
+#include <thrift/c_glib/protocol/thrift_protocol.h>
 
 G_BEGIN_DECLS
 
@@ -20,9 +20,9 @@
 #include <string.h>
 #include <stdio.h>
 
-#include <thrift/thrift.h>
-#include <thrift/protocol/thrift_protocol.h>
-#include <thrift/protocol/thrift_binary_protocol.h>
+#include <thrift/c_glib/thrift.h>
+#include <thrift/c_glib/protocol/thrift_protocol.h>
+#include <thrift/c_glib/protocol/thrift_binary_protocol.h>
 
 G_DEFINE_TYPE(ThriftBinaryProtocol, thrift_binary_protocol, THRIFT_TYPE_PROTOCOL)
 
@@ -22,8 +22,8 @@
 
 #include <glib-object.h>
 
-#include <thrift/protocol/thrift_protocol.h>
-#include <thrift/transport/thrift_transport.h>
+#include <thrift/c_glib/protocol/thrift_protocol.h>
+#include <thrift/c_glib/transport/thrift_transport.h>
 
 G_BEGIN_DECLS
 
@@ -17,9 +17,9 @@
  * under the License.
  */
 
-#include <thrift/thrift.h>
-#include <thrift/protocol/thrift_binary_protocol.h>
-#include <thrift/protocol/thrift_binary_protocol_factory.h>
+#include <thrift/c_glib/thrift.h>
+#include <thrift/c_glib/protocol/thrift_binary_protocol.h>
+#include <thrift/c_glib/protocol/thrift_binary_protocol_factory.h>
 
 G_DEFINE_TYPE(ThriftBinaryProtocolFactory, thrift_binary_protocol_factory, THRIFT_TYPE_PROTOCOL_FACTORY)
 
@@ -17,9 +17,9 @@
  * under the License.
  */
 
-#include <thrift/thrift.h>
-#include <thrift/protocol/thrift_protocol.h>
-#include <thrift/transport/thrift_transport.h>
+#include <thrift/c_glib/thrift.h>
+#include <thrift/c_glib/protocol/thrift_protocol.h>
+#include <thrift/c_glib/transport/thrift_transport.h>
 
 /* define the GError domain string */
 #define THRIFT_PROTOCOL_ERROR_DOMAIN "thrift-protocol-error-quark"
@@ -22,7 +22,7 @@
 
 #include <glib-object.h>
 
-#include <thrift/transport/thrift_transport.h>
+#include <thrift/c_glib/transport/thrift_transport.h>
 
 G_BEGIN_DECLS
 
@@ -17,8 +17,8 @@
  * under the License.
  */
 
-#include <thrift/thrift.h>
-#include <thrift/protocol/thrift_protocol_factory.h>
+#include <thrift/c_glib/thrift.h>
+#include <thrift/c_glib/protocol/thrift_protocol_factory.h>
 
 G_DEFINE_ABSTRACT_TYPE(ThriftProtocolFactory, thrift_protocol_factory, G_TYPE_OBJECT)
 
@@ -22,8 +22,8 @@
 
 #include <glib-object.h>
 
-#include <thrift/transport/thrift_transport.h>
-#include <thrift/protocol/thrift_protocol.h>
+#include <thrift/c_glib/transport/thrift_transport.h>
+#include <thrift/c_glib/protocol/thrift_protocol.h>
 
 G_BEGIN_DECLS
 
@@ -17,7 +17,7 @@
  * under the License.
  */
 
-#include <thrift/thrift.h>
+#include <thrift/c_glib/thrift.h>
 #include "thrift_server.h"
 
 /* object properties */
 
 #include <glib-object.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>
+#include <thrift/c_glib/processor/thrift_processor.h>
+#include <thrift/c_glib/transport/thrift_server_transport.h>
+#include <thrift/c_glib/transport/thrift_transport_factory.h>
+#include <thrift/c_glib/protocol/thrift_protocol_factory.h>
 
 G_BEGIN_DECLS
 
  * under the License.
  */
 
-#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>
+#include <thrift/c_glib/server/thrift_simple_server.h>
+#include <thrift/c_glib/transport/thrift_transport_factory.h>
+#include <thrift/c_glib/protocol/thrift_protocol_factory.h>
+#include <thrift/c_glib/protocol/thrift_binary_protocol_factory.h>
 
 G_DEFINE_TYPE(ThriftSimpleServer, thrift_simple_server, THRIFT_TYPE_SERVER)
 
@@ -22,7 +22,7 @@
 
 #include <glib-object.h>
 
-#include <thrift/server/thrift_server.h>
+#include <thrift/c_glib/server/thrift_server.h>
 
 G_BEGIN_DECLS
 
similarity index 96%
rename from lib/c_glib/src/thrift/thrift.c
rename to lib/c_glib/src/thrift/c_glib/thrift.c
index 34cadd4..0051df0 100644 (file)
@@ -17,7 +17,7 @@
  * under the License.
  */
 
-#include <thrift/thrift.h>
+#include <thrift/c_glib/thrift.h>
 
 /**
  * GHashTable callback to add keys to a GList.
@@ -18,7 +18,7 @@
  */
 
 #include "thrift_application_exception.h"
-#include <thrift/protocol/thrift_protocol.h>
+#include <thrift/c_glib/protocol/thrift_protocol.h>
 
 G_DEFINE_TYPE(ThriftApplicationException, thrift_application_exception, THRIFT_TYPE_STRUCT)
 
similarity index 97%
rename from lib/c_glib/src/thrift/thrift_struct.c
rename to lib/c_glib/src/thrift/c_glib/thrift_struct.c
index 233d622..f24f2a1 100644 (file)
@@ -17,7 +17,7 @@
  * under the License.
  */
 
-#include <thrift/thrift.h>
+#include <thrift/c_glib/thrift.h>
 #include "thrift_struct.h"
 
 G_DEFINE_ABSTRACT_TYPE(ThriftStruct, thrift_struct, G_TYPE_OBJECT)
similarity index 97%
rename from lib/c_glib/src/thrift/thrift_struct.h
rename to lib/c_glib/src/thrift/c_glib/thrift_struct.h
index 7542c05..656cb54 100644 (file)
@@ -22,7 +22,7 @@
 
 #include <glib-object.h>
 
-#include <thrift/protocol/thrift_protocol.h>
+#include <thrift/c_glib/protocol/thrift_protocol.h>
 
 G_BEGIN_DECLS
 
@@ -24,9 +24,9 @@
 #include <string.h>
 #include <unistd.h>
 
-#include <thrift/thrift.h>
-#include <thrift/transport/thrift_transport.h>
-#include <thrift/transport/thrift_buffered_transport.h>
+#include <thrift/c_glib/thrift.h>
+#include <thrift/c_glib/transport/thrift_transport.h>
+#include <thrift/c_glib/transport/thrift_buffered_transport.h>
 
 /* object properties */
 enum _ThriftBufferedTransportProperties
@@ -23,7 +23,7 @@
 #include <glib.h>
 #include <glib-object.h>
 
-#include <thrift/transport/thrift_transport.h>
+#include <thrift/c_glib/transport/thrift_transport.h>
 
 G_BEGIN_DECLS
 
@@ -26,9 +26,9 @@
 #include <sys/socket.h>
 #include <netinet/in.h>
 
-#include <thrift/thrift.h>
-#include <thrift/transport/thrift_transport.h>
-#include <thrift/transport/thrift_framed_transport.h>
+#include <thrift/c_glib/thrift.h>
+#include <thrift/c_glib/transport/thrift_transport.h>
+#include <thrift/c_glib/transport/thrift_framed_transport.h>
 
 /* object properties */
 enum _ThriftFramedTransportProperties
@@ -23,7 +23,7 @@
 #include <glib.h>
 #include <glib-object.h>
 
-#include <thrift/transport/thrift_transport.h>
+#include <thrift/c_glib/transport/thrift_transport.h>
 
 G_BEGIN_DECLS
 
@@ -24,9 +24,9 @@
 #include <string.h>
 #include <unistd.h>
 
-#include <thrift/thrift.h>
-#include <thrift/transport/thrift_transport.h>
-#include <thrift/transport/thrift_memory_buffer.h>
+#include <thrift/c_glib/thrift.h>
+#include <thrift/c_glib/transport/thrift_transport.h>
+#include <thrift/c_glib/transport/thrift_memory_buffer.h>
 
 /* object properties */
 enum _ThriftMemoryBufferProperties
@@ -23,7 +23,7 @@
 #include <glib.h>
 #include <glib-object.h>
 
-#include <thrift/transport/thrift_transport.h>
+#include <thrift/c_glib/transport/thrift_transport.h>
 
 G_BEGIN_DECLS
 
 #include <sys/socket.h>
 #include <netinet/in.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>
+#include <thrift/c_glib/thrift.h>
+#include <thrift/c_glib/transport/thrift_socket.h>
+#include <thrift/c_glib/transport/thrift_transport.h>
+#include <thrift/c_glib/transport/thrift_server_transport.h>
+#include <thrift/c_glib/transport/thrift_server_socket.h>
 
 /* object properties */
 enum _ThriftServerSocketProperties
@@ -17,9 +17,9 @@
  * under the License.
  */
 
-#include <thrift/thrift.h>
-#include <thrift/transport/thrift_transport.h>
-#include <thrift/transport/thrift_server_transport.h>
+#include <thrift/c_glib/thrift.h>
+#include <thrift/c_glib/transport/thrift_transport.h>
+#include <thrift/c_glib/transport/thrift_server_transport.h>
 
 G_DEFINE_ABSTRACT_TYPE(ThriftServerTransport, thrift_server_transport, G_TYPE_OBJECT)
 
@@ -25,9 +25,9 @@
 #include <sys/socket.h>
 #include <netinet/in.h>
 
-#include <thrift/thrift.h>
-#include <thrift/transport/thrift_transport.h>
-#include <thrift/transport/thrift_socket.h>
+#include <thrift/c_glib/thrift.h>
+#include <thrift/c_glib/transport/thrift_transport.h>
+#include <thrift/c_glib/transport/thrift_socket.h>
 
 /* object properties */
 enum _ThriftSocketProperties
@@ -22,7 +22,7 @@
 
 #include <glib-object.h>
 
-#include <thrift/transport/thrift_transport.h>
+#include <thrift/c_glib/transport/thrift_transport.h>
 
 G_BEGIN_DECLS
 
@@ -17,8 +17,8 @@
  * under the License.
  */
 
-#include <thrift/thrift.h>
-#include <thrift/transport/thrift_transport.h>
+#include <thrift/c_glib/thrift.h>
+#include <thrift/c_glib/transport/thrift_transport.h>
 
 /* define the GError domain string */
 #define THRIFT_TRANSPORT_ERROR_DOMAIN "thrift-transport-error-quark"
@@ -17,8 +17,8 @@
  * under the License.
  */
 
-#include <thrift/thrift.h>
-#include <thrift/transport/thrift_transport_factory.h>
+#include <thrift/c_glib/thrift.h>
+#include <thrift/c_glib/transport/thrift_transport_factory.h>
 
 G_DEFINE_TYPE(ThriftTransportFactory, thrift_transport_factory, G_TYPE_OBJECT)
 
old mode 100644 (file)
new mode 100755 (executable)
index a07118f..f75c796
@@ -24,9 +24,9 @@
 #include <netdb.h>
 #include <string.h>
 
-#include <thrift/protocol/thrift_protocol.h>
-#include <thrift/transport/thrift_socket.h>
-#include <thrift/transport/thrift_server_socket.h>
+#include <thrift/c_glib/protocol/thrift_protocol.h>
+#include <thrift/c_glib/transport/thrift_socket.h>
+#include <thrift/c_glib/transport/thrift_server_socket.h>
 
 #define TEST_BOOL TRUE
 #define TEST_BYTE 123
@@ -71,7 +71,7 @@ my_thrift_transport_write (ThriftTransport *transport, const gpointer buf,
 
 #define thrift_transport_read my_thrift_transport_read
 #define thrift_transport_write my_thrift_transport_write
-#include "../src/thrift/protocol/thrift_binary_protocol.c"
+#include "../src/thrift/c_glib/protocol/thrift_binary_protocol.c"
 #undef thrift_transport_read
 #undef thrift_transport_write
 
old mode 100644 (file)
new mode 100755 (executable)
index d04343e..86b5314
 #include <assert.h>
 #include <netdb.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>
+#include <thrift/c_glib/transport/thrift_transport.h>
+#include <thrift/c_glib/transport/thrift_socket.h>
+#include <thrift/c_glib/transport/thrift_server_transport.h>
+#include <thrift/c_glib/transport/thrift_server_socket.h>
 
 #define TEST_DATA { 'a', 'b', 'c', 'd', 'e', 'f', 'g', 'h', 'i', 'j' }
 
-#include "../src/thrift/transport/thrift_buffered_transport.c"
+#include "../src/thrift/c_glib/transport/thrift_buffered_transport.c"
 
 static const char TEST_ADDRESS[] = "localhost";
 static const short TEST_PORT = 64444;
old mode 100644 (file)
new mode 100755 (executable)
index dcaabda..03c9f9b
 #include <assert.h>
 #include <netdb.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>
+#include <thrift/c_glib/transport/thrift_transport.h>
+#include <thrift/c_glib/transport/thrift_socket.h>
+#include <thrift/c_glib/transport/thrift_server_transport.h>
+#include <thrift/c_glib/transport/thrift_server_socket.h>
 
 #define TEST_DATA { 'a', 'b', 'c', 'd', 'e', 'f', 'g', 'h', 'i', 'j' }
 
-#include "../src/thrift/transport/thrift_framed_transport.c"
+#include "../src/thrift/c_glib/transport/thrift_framed_transport.c"
 
 static const char TEST_ADDRESS[] = "localhost";
 static const short TEST_PORT = 64444;
old mode 100644 (file)
new mode 100755 (executable)
index 9698185..7169a5c
 #include <assert.h>
 #include <netdb.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>
+#include <thrift/c_glib/transport/thrift_transport.h>
+#include <thrift/c_glib/transport/thrift_socket.h>
+#include <thrift/c_glib/transport/thrift_server_transport.h>
+#include <thrift/c_glib/transport/thrift_server_socket.h>
 
 #define TEST_DATA { 'a', 'b', 'c', 'd', 'e', 'f', 'g', 'h', 'i', 'j' }
 
-#include "../src/thrift/transport/thrift_memory_buffer.c"
+#include "../src/thrift/c_glib/transport/thrift_memory_buffer.c"
 
 /* test object creation and destruction */
 static void
old mode 100644 (file)
new mode 100755 (executable)
index 4f6fe15..2839dd4
 #include <assert.h>
 #include <glib.h>
 
-#include <thrift/thrift_struct.h>
-#include <thrift/protocol/thrift_protocol.h>
-#include <thrift/protocol/thrift_binary_protocol.h>
-#include <thrift/transport/thrift_memory_buffer.h>
+#include <thrift/c_glib/thrift_struct.h>
+#include <thrift/c_glib/protocol/thrift_protocol.h>
+#include <thrift/c_glib/protocol/thrift_binary_protocol.h>
+#include <thrift/c_glib/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"
old mode 100644 (file)
new mode 100755 (executable)
index 6f7d3a4..fca2dcd
 #include <sys/types.h>
 #include <sys/wait.h>
 
-#include <thrift/thrift.h>
-#include <thrift/processor/thrift_processor.h>
-#include <thrift/transport/thrift_server_socket.h>
+#include <thrift/c_glib/thrift.h>
+#include <thrift/c_glib/processor/thrift_processor.h>
+#include <thrift/c_glib/transport/thrift_server_socket.h>
 
 #define TEST_PORT 51199
 
-#include <thrift/server/thrift_simple_server.c>
+#include <thrift/c_glib/server/thrift_simple_server.c>
 
 /* create a rudimentary processor */
 #define TEST_PROCESSOR_TYPE (test_processor_get_type ())
old mode 100644 (file)
new mode 100755 (executable)
index 50b10dc..182a6ac
@@ -20,7 +20,7 @@
 #include <assert.h>
 #include <glib-object.h>
 
-#include "../src/thrift/thrift_struct.c"
+#include "../src/thrift/c_glib/thrift_struct.c"
 
 /* tests to ensure we can extend a ThriftStruct */
 
old mode 100644 (file)
new mode 100755 (executable)
index 806166e..a42d089
@@ -1,8 +1,8 @@
 #include <assert.h>
 #include <netdb.h>
 
-#include <thrift/transport/thrift_server_transport.h>
-#include <thrift/transport/thrift_server_socket.h>
+#include <thrift/c_glib/transport/thrift_server_transport.h>
+#include <thrift/c_glib/transport/thrift_server_socket.h>
 
 static const char TEST_ADDRESS[] = "localhost";
 static const int TEST_PORT = 64444;
old mode 100644 (file)
new mode 100755 (executable)
index 5d40331..48ece70
@@ -314,9 +314,9 @@ extern "C" {
 
 #include "t_test_thrift_test.h"
 #include "t_test_thrift_test_types.h"
-#include <thrift/transport/thrift_socket.h>
-#include <thrift/protocol/thrift_protocol.h>
-#include <thrift/protocol/thrift_binary_protocol.h>
+#include <thrift/c_glib/transport/thrift_socket.h>
+#include <thrift/c_glib/protocol/thrift_protocol.h>
+#include <thrift/c_glib/protocol/thrift_binary_protocol.h>
 
 static void
 test_thrift_client (void)
old mode 100644 (file)
new mode 100755 (executable)
index 41e0ea4..836ddd0
@@ -20,9 +20,9 @@
 #include <assert.h>
 #include <netdb.h>
 
-#include <thrift/transport/thrift_transport.h>
-#include <thrift/transport/thrift_server_transport.h>
-#include <thrift/transport/thrift_server_socket.h>
+#include <thrift/c_glib/transport/thrift_transport.h>
+#include <thrift/c_glib/transport/thrift_server_transport.h>
+#include <thrift/c_glib/transport/thrift_server_socket.h>
 
 #define TEST_DATA { 'a', 'b', 'c', 'd', 'e', 'f', 'g', 'h', 'i', 'j' }
 
@@ -63,7 +63,7 @@ my_send(int socket, const void *buffer, size_t length, int flags)
 #define socket my_socket
 #define recv my_recv
 #define send my_send
-#include "../src/thrift/transport/thrift_socket.c"
+#include "../src/thrift/c_glib/transport/thrift_socket.c"
 #undef socket
 #undef recv
 #undef send
index 1377203..3921d05 100644 (file)
@@ -27,4 +27,4 @@ Description: Thrift C API
 Version: @VERSION@
 Requires: glib-2.0 gobject-2.0
 Libs: -L${libdir} -lthrift_c_glib
-Cflags: -I${includedir}/thrift
+Cflags: -I${includedir}/thrift/c_glib