Skip to content

Commit

Permalink
Move headers to include/xmlrpcpp (ros#962)
Browse files Browse the repository at this point in the history
* Move headers to include/xmlrpcpp

* Export old include dir for compatibility
  • Loading branch information
jspricke authored and ggallagher01 committed Jan 26, 2017
1 parent fa5fb83 commit 54a2d9d
Show file tree
Hide file tree
Showing 50 changed files with 81 additions and 78 deletions.
2 changes: 1 addition & 1 deletion clients/roscpp/include/ros/master.h
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@
#define ROSCPP_MASTER_H

#include "forwards.h"
#include "XmlRpcValue.h"
#include "xmlrpcpp/XmlRpcValue.h"
#include "common.h"

namespace ros
Expand Down
2 changes: 1 addition & 1 deletion clients/roscpp/include/ros/node_handle.h
Original file line number Diff line number Diff line change
Expand Up @@ -48,7 +48,7 @@

#include <boost/bind.hpp>

#include <XmlRpcValue.h>
#include <xmlrpcpp/XmlRpcValue.h>

namespace ros
{
Expand Down
2 changes: 1 addition & 1 deletion clients/roscpp/include/ros/param.h
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@

#include "forwards.h"
#include "common.h"
#include "XmlRpcValue.h"
#include "xmlrpcpp/XmlRpcValue.h"

#include <vector>
#include <map>
Expand Down
2 changes: 1 addition & 1 deletion clients/roscpp/include/ros/publication.h
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@
#include "ros/forwards.h"
#include "ros/advertise_options.h"
#include "common.h"
#include "XmlRpc.h"
#include "xmlrpcpp/XmlRpc.h"

#include <boost/thread/mutex.hpp>

Expand Down
2 changes: 1 addition & 1 deletion clients/roscpp/include/ros/service_publication.h
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@

#include "ros/service_callback_helper.h"
#include "common.h"
#include "XmlRpc.h"
#include "xmlrpcpp/XmlRpc.h"

#include <boost/thread/mutex.hpp>

Expand Down
2 changes: 1 addition & 1 deletion clients/roscpp/include/ros/subscription.h
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,7 @@
#include "ros/transport_hints.h"
#include "ros/xmlrpc_manager.h"
#include "ros/statistics.h"
#include "XmlRpc.h"
#include "xmlrpcpp/XmlRpc.h"

#include <boost/thread.hpp>
#include <boost/shared_ptr.hpp>
Expand Down
2 changes: 1 addition & 1 deletion clients/roscpp/include/ros/topic_manager.h
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,7 @@
#include "ros/serialization.h"
#include "rosout_appender.h"

#include "XmlRpcValue.h"
#include "xmlrpcpp/XmlRpcValue.h"

#include <boost/thread/mutex.hpp>
#include <boost/thread/recursive_mutex.hpp>
Expand Down
2 changes: 1 addition & 1 deletion clients/roscpp/include/ros/xmlrpc_manager.h
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,7 @@
#include <boost/enable_shared_from_this.hpp>

#include "common.h"
#include "XmlRpc.h"
#include "xmlrpcpp/XmlRpc.h"

#include <ros/time.h>

Expand Down
2 changes: 1 addition & 1 deletion clients/roscpp/src/libros/init.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -48,7 +48,7 @@
#include "ros/subscribe_options.h"
#include "ros/transport/transport_tcp.h"
#include "ros/internal_timer_manager.h"
#include "XmlRpcSocket.h"
#include "xmlrpcpp/XmlRpcSocket.h"

#include "roscpp/GetLoggers.h"
#include "roscpp/SetLoggerLevel.h"
Expand Down
2 changes: 1 addition & 1 deletion clients/roscpp/src/libros/master.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,7 @@
#include <ros/console.h>
#include <ros/assert.h>

#include "XmlRpc.h"
#include "xmlrpcpp/XmlRpc.h"

namespace ros
{
Expand Down
2 changes: 1 addition & 1 deletion clients/roscpp/src/libros/node_handle.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -42,7 +42,7 @@
#include "ros/names.h"
#include "ros/init.h"
#include "ros/this_node.h"
#include "XmlRpc.h"
#include "xmlrpcpp/XmlRpc.h"

#include <boost/thread.hpp>

Expand Down
2 changes: 1 addition & 1 deletion clients/roscpp/src/libros/service_manager.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -42,7 +42,7 @@
#include "ros/connection.h"
#include "ros/file_log.h"

#include "XmlRpc.h"
#include "xmlrpcpp/XmlRpc.h"

#include <ros/console.h>

Expand Down
2 changes: 1 addition & 1 deletion clients/roscpp/src/libros/topic_manager.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,7 @@
#include "ros/file_log.h"
#include "ros/subscribe_options.h"

#include "XmlRpc.h"
#include "xmlrpcpp/XmlRpc.h"

#include <ros/console.h>

Expand Down
2 changes: 1 addition & 1 deletion test/test_roscpp/test/src/check_master.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,7 @@

#include "ros/ros.h"

#include "XmlRpc.h"
#include "xmlrpcpp/XmlRpc.h"

using namespace XmlRpc;

Expand Down
2 changes: 1 addition & 1 deletion tools/rosbag/src/recorder.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -60,7 +60,7 @@

#include "ros/network.h"
#include "ros/xmlrpc_manager.h"
#include "XmlRpc.h"
#include "xmlrpcpp/XmlRpc.h"

#define foreach BOOST_FOREACH

Expand Down
6 changes: 4 additions & 2 deletions utilities/xmlrpcpp/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -6,10 +6,13 @@ if(NOT WIN32)
endif()

find_package(catkin REQUIRED COMPONENTS cpp_common)

# The CFG_EXTRAS is only for compatibility, to be removed in Lunar.
catkin_package(
INCLUDE_DIRS include
LIBRARIES xmlrpcpp
CATKIN_DEPENDS cpp_common
CFG_EXTRAS xmlrpcpp-extras.cmake
)

include_directories(include ${catkin_INCLUDE_DIRS})
Expand All @@ -35,8 +38,7 @@ if(WIN32)
target_link_libraries(xmlrpcpp ws2_32)
endif()

# FIXME the headers should be in a package-specific subfolder but can not be for backward compatibility
install(DIRECTORY include/
install(DIRECTORY include/${PROJECT_NAME}
DESTINATION ${CATKIN_GLOBAL_INCLUDE_DESTINATION}
FILES_MATCHING PATTERN "*.h")

Expand Down
1 change: 1 addition & 0 deletions utilities/xmlrpcpp/cmake/xmlrpcpp-extras.cmake.in
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
list(APPEND @PROJECT_NAME@_INCLUDE_DIRS "${@PROJECT_NAME@_DIR}/../../../@CATKIN_GLOBAL_INCLUDE_DESTINATION@/xmlrpcpp")
Original file line number Diff line number Diff line change
Expand Up @@ -27,12 +27,12 @@
# include <string>
#endif

#include "XmlRpcClient.h"
#include "XmlRpcException.h"
#include "XmlRpcServer.h"
#include "XmlRpcServerMethod.h"
#include "XmlRpcValue.h"
#include "XmlRpcUtil.h"
#include "xmlrpcpp/XmlRpcClient.h"
#include "xmlrpcpp/XmlRpcException.h"
#include "xmlrpcpp/XmlRpcServer.h"
#include "xmlrpcpp/XmlRpcServerMethod.h"
#include "xmlrpcpp/XmlRpcValue.h"
#include "xmlrpcpp/XmlRpcUtil.h"

#include <stdexcept>

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -13,9 +13,9 @@
# include <string>
#endif

#include "XmlRpcDispatch.h"
#include "XmlRpcSource.h"
#include "XmlRpcDecl.h"
#include "xmlrpcpp/XmlRpcDispatch.h"
#include "xmlrpcpp/XmlRpcSource.h"
#include "xmlrpcpp/XmlRpcDecl.h"

namespace XmlRpc {

Expand Down
File renamed without changes.
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@
# pragma warning(disable:4786) // identifier was truncated in debug info
#endif

#include "XmlRpcDecl.h"
#include "xmlrpcpp/XmlRpcDecl.h"

#ifndef MAKEDEPEND
# include <list>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@
# include <string>
#endif

#include "XmlRpcDecl.h"
#include "xmlrpcpp/XmlRpcDecl.h"


namespace XmlRpc {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -16,9 +16,9 @@
# include <string>
#endif

#include "XmlRpcDispatch.h"
#include "XmlRpcSource.h"
#include "XmlRpcDecl.h"
#include "xmlrpcpp/XmlRpcDispatch.h"
#include "xmlrpcpp/XmlRpcSource.h"
#include "xmlrpcpp/XmlRpcDecl.h"

namespace XmlRpc {

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -11,9 +11,9 @@
# include <string>
#endif

#include "XmlRpcValue.h"
#include "XmlRpcSource.h"
#include "XmlRpcDecl.h"
#include "xmlrpcpp/XmlRpcValue.h"
#include "xmlrpcpp/XmlRpcSource.h"
#include "xmlrpcpp/XmlRpcDecl.h"

namespace XmlRpc {

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@
# pragma warning(disable:4786) // identifier was truncated in debug info
#endif

#include "XmlRpcDecl.h"
#include "xmlrpcpp/XmlRpcDecl.h"

#ifndef MAKEDEPEND
# include <string>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@
# include <string>
#endif

#include "XmlRpcDecl.h"
#include "xmlrpcpp/XmlRpcDecl.h"

namespace XmlRpc {

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@
# pragma warning(disable:4786) // identifier was truncated in debug info
#endif

#include "XmlRpcDecl.h"
#include "xmlrpcpp/XmlRpcDecl.h"

namespace XmlRpc {

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@
# include <string>
#endif

#include "XmlRpcDecl.h"
#include "xmlrpcpp/XmlRpcDecl.h"

#if defined(_MSC_VER)
# define snprintf _snprintf_s
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@
# pragma warning(disable:4786) // identifier was truncated in debug info
#endif

#include "XmlRpcDecl.h"
#include "xmlrpcpp/XmlRpcDecl.h"

#ifndef MAKEDEPEND
# include <map>
Expand Down
File renamed without changes.
6 changes: 3 additions & 3 deletions utilities/xmlrpcpp/src/XmlRpcClient.cpp
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@

#include "XmlRpcClient.h"
#include "xmlrpcpp/XmlRpcClient.h"

#include "XmlRpcSocket.h"
#include "XmlRpc.h"
#include "xmlrpcpp/XmlRpcSocket.h"
#include "xmlrpcpp/XmlRpc.h"

#include <stdio.h>
#include <stdlib.h>
Expand Down
6 changes: 3 additions & 3 deletions utilities/xmlrpcpp/src/XmlRpcDispatch.cpp
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@

#include "XmlRpcDispatch.h"
#include "XmlRpcSource.h"
#include "XmlRpcUtil.h"
#include "xmlrpcpp/XmlRpcDispatch.h"
#include "xmlrpcpp/XmlRpcSource.h"
#include "xmlrpcpp/XmlRpcUtil.h"

#include <math.h>
#include <errno.h>
Expand Down
12 changes: 6 additions & 6 deletions utilities/xmlrpcpp/src/XmlRpcServer.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -2,12 +2,12 @@
// added features: server can be opened on port 0 and you can read back
// what port the OS gave you

#include "XmlRpcServer.h"
#include "XmlRpcServerConnection.h"
#include "XmlRpcServerMethod.h"
#include "XmlRpcSocket.h"
#include "XmlRpcUtil.h"
#include "XmlRpcException.h"
#include "xmlrpcpp/XmlRpcServer.h"
#include "xmlrpcpp/XmlRpcServerConnection.h"
#include "xmlrpcpp/XmlRpcServerMethod.h"
#include "xmlrpcpp/XmlRpcSocket.h"
#include "xmlrpcpp/XmlRpcUtil.h"
#include "xmlrpcpp/XmlRpcException.h"


using namespace XmlRpc;
Expand Down
6 changes: 3 additions & 3 deletions utilities/xmlrpcpp/src/XmlRpcServerConnection.cpp
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@

#include "XmlRpcServerConnection.h"
#include "xmlrpcpp/XmlRpcServerConnection.h"

#include "XmlRpcSocket.h"
#include "XmlRpc.h"
#include "xmlrpcpp/XmlRpcSocket.h"
#include "xmlrpcpp/XmlRpc.h"
#ifndef MAKEDEPEND
# include <stdio.h>
# include <stdlib.h>
Expand Down
4 changes: 2 additions & 2 deletions utilities/xmlrpcpp/src/XmlRpcServerMethod.cpp
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@

#include "XmlRpcServerMethod.h"
#include "XmlRpcServer.h"
#include "xmlrpcpp/XmlRpcServerMethod.h"
#include "xmlrpcpp/XmlRpcServer.h"

namespace XmlRpc {

Expand Down
4 changes: 2 additions & 2 deletions utilities/xmlrpcpp/src/XmlRpcSocket.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -2,8 +2,8 @@
// added features: server can be opened on port 0 and you can read back
// what port the OS gave you

#include "XmlRpcSocket.h"
#include "XmlRpcUtil.h"
#include "xmlrpcpp/XmlRpcSocket.h"
#include "xmlrpcpp/XmlRpcUtil.h"

#ifndef MAKEDEPEND

Expand Down
6 changes: 3 additions & 3 deletions utilities/xmlrpcpp/src/XmlRpcSource.cpp
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@

#include "XmlRpcSource.h"
#include "XmlRpcSocket.h"
#include "XmlRpcUtil.h"
#include "xmlrpcpp/XmlRpcSource.h"
#include "xmlrpcpp/XmlRpcSocket.h"
#include "xmlrpcpp/XmlRpcUtil.h"

namespace XmlRpc {

Expand Down
4 changes: 2 additions & 2 deletions utilities/xmlrpcpp/src/XmlRpcUtil.cpp
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@

#include "XmlRpcUtil.h"
#include "xmlrpcpp/XmlRpcUtil.h"

#ifndef MAKEDEPEND
# include <ctype.h>
Expand All @@ -9,7 +9,7 @@
# include <string.h>
#endif

#include "XmlRpc.h"
#include "xmlrpcpp/XmlRpc.h"

using namespace XmlRpc;

Expand Down
8 changes: 4 additions & 4 deletions utilities/xmlrpcpp/src/XmlRpcValue.cpp
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@

#include "XmlRpcValue.h"
#include "XmlRpcException.h"
#include "XmlRpcUtil.h"
#include "base64.h"
#include "xmlrpcpp/XmlRpcValue.h"
#include "xmlrpcpp/XmlRpcException.h"
#include "xmlrpcpp/XmlRpcUtil.h"
#include "xmlrpcpp/base64.h"

#ifndef MAKEDEPEND
# include <iostream>
Expand Down
Loading

0 comments on commit 54a2d9d

Please sign in to comment.