Skip to content

Commit

Permalink
Add back rosbag2_cpp::StorageOptions as deprecated
Browse files Browse the repository at this point in the history
The struct was removed in #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 <jacob@openrobotics.org>
  • Loading branch information
jacobperron committed Nov 18, 2020
1 parent 4bcb631 commit eaee8b6
Showing 1 changed file with 27 additions and 0 deletions.
27 changes: 27 additions & 0 deletions rosbag2_cpp/include/rosbag2_cpp/storage_options.hpp
Original file line number Diff line number Diff line change
@@ -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_

0 comments on commit eaee8b6

Please sign in to comment.