Skip to content

Commit

Permalink
encoding -> serialization format
Browse files Browse the repository at this point in the history
  • Loading branch information
Karsten1987 committed Jul 16, 2018
1 parent 9592061 commit 8d41052
Show file tree
Hide file tree
Showing 5 changed files with 42 additions and 5 deletions.
3 changes: 2 additions & 1 deletion rmw_fastrtps_cpp/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -56,9 +56,9 @@ add_library(rmw_fastrtps_cpp
src/rmw_client.cpp
src/rmw_compare_gids_equal.cpp
src/rmw_count.cpp
src/rmw_get_encoding_identifier.cpp
src/rmw_get_gid_for_publisher.cpp
src/rmw_get_implementation_identifier.cpp
src/rmw_get_serialization_format.cpp
src/rmw_guard_condition.cpp
src/rmw_init.cpp
src/rmw_node.cpp
Expand All @@ -78,6 +78,7 @@ add_library(rmw_fastrtps_cpp
src/rmw_wait.cpp
src/rmw_wait_set.cpp
src/ros_message_serialization.cpp
src/serialization_format.cpp
src/type_support_common.cpp
)
target_link_libraries(rmw_fastrtps_cpp
Expand Down
1 change: 0 additions & 1 deletion rmw_fastrtps_cpp/include/rmw_fastrtps_cpp/identifier.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,5 @@
#define RMW_FASTRTPS_CPP__IDENTIFIER_HPP_

extern const char * const eprosima_fastrtps_identifier;
extern const char * const eprosima_fastrtps_encoding_identifier;

#endif // RMW_FASTRTPS_CPP__IDENTIFIER_HPP_
20 changes: 20 additions & 0 deletions rmw_fastrtps_cpp/include/rmw_fastrtps_cpp/serialization_format.hpp
Original file line number Diff line number Diff line change
@@ -0,0 +1,20 @@
// Copyright 2018 Open Source Robotics Foundation, Inc.
//
// Licensed 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 RMW_FASTRTPS_CPP__SERIALIZATION_FORMAT_HPP_
#define RMW_FASTRTPS_CPP__SERIALIZATION_FORMAT_HPP_

extern const char * const eprosima_fastrtps_serialization_format;

#endif // RMW_FASTRTPS_CPP__SERIALIZATION_FORMAT_HPP_
Original file line number Diff line number Diff line change
Expand Up @@ -14,13 +14,13 @@

#include "rmw/rmw.h"

#include "rmw_fastrtps_cpp/identifier.hpp"
#include "rmw_fastrtps_cpp/serialization_format.hpp"

extern "C"
{
const char *
rmw_get_encoding_identifier()
rmw_get_serialization_format()
{
return eprosima_fastrtps_encoding_identifier;
return eprosima_fastrtps_serialization_format;
}
} // extern "C"
17 changes: 17 additions & 0 deletions rmw_fastrtps_cpp/src/serialization_format.cpp
Original file line number Diff line number Diff line change
@@ -0,0 +1,17 @@
// Copyright 2018 Open Source Robotics Foundation, Inc.
//
// Licensed 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.

#include "rmw_fastrtps_cpp/serialization_format.hpp"

const char * const eprosima_fastrtps_serialization_format = "cdr";

0 comments on commit 8d41052

Please sign in to comment.