From 99f19e6007ca4cea1cb80ad175fbb45c04df8763 Mon Sep 17 00:00:00 2001 From: Jacob Perron Date: Mon, 30 Nov 2020 14:34:44 -0800 Subject: [PATCH] Add back rosbag2_cpp::StorageOptions as deprecated (#563) The struct was removed in https://github.com/ros2/rosbag2/pull/493, but in order to avoid a hard-break for users coming from Foxy I've added it back with a deprecation warning. Signed-off-by: Jacob Perron --- .../include/rosbag2_cpp/storage_options.hpp | 27 +++++++++++++++++++ 1 file changed, 27 insertions(+) create mode 100644 rosbag2_cpp/include/rosbag2_cpp/storage_options.hpp diff --git a/rosbag2_cpp/include/rosbag2_cpp/storage_options.hpp b/rosbag2_cpp/include/rosbag2_cpp/storage_options.hpp new file mode 100644 index 000000000..2fbeec71e --- /dev/null +++ b/rosbag2_cpp/include/rosbag2_cpp/storage_options.hpp @@ -0,0 +1,27 @@ +// Copyright 2018, Bosch Software Innovations GmbH. +// +// 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 ROSBAG2_CPP__STORAGE_OPTIONS_HPP_ +#define ROSBAG2_CPP__STORAGE_OPTIONS_HPP_ + +#include "rosbag2_storage/storage_options.hpp" + +namespace rosbag2_cpp +{ + +using StorageOptions [[deprecated("use rosbag2_storage::StorageOptions instead")]] = + rosbag2_storage::StorageOptions; + +} // namespace rosbag2_cpp +#endif // ROSBAG2_CPP__STORAGE_OPTIONS_HPP_