Skip to content

Commit

Permalink
Move dds types (#4179)
Browse files Browse the repository at this point in the history
Signed-off-by: Ricardo González Moreno <[email protected]>
  • Loading branch information
richiware authored Dec 21, 2023
1 parent 59ebdb7 commit 43578a7
Show file tree
Hide file tree
Showing 3 changed files with 33 additions and 8 deletions.
32 changes: 32 additions & 0 deletions include/fastdds/dds/core/Types.hpp
Original file line number Diff line number Diff line change
@@ -0,0 +1,32 @@
// Copyright 2023 Proyectos y Sistemas de Mantenimiento SL (eProsima).
//
// 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 FASTDDS_DDS_CORE_TYPES_HPP
#define FASTDDS_DDS_CORE_TYPES_HPP

#include <cstdint>

namespace eprosima {
namespace fastdds {
namespace dds {

typedef uint32_t DomainId_t;

const int32_t LENGTH_UNLIMITED = -1;

} // namespace dds
} // namespace fastdds
} // namespace eprosima

#endif // FASTDDS_DDS_CORE_TYPES_HPP
3 changes: 0 additions & 3 deletions include/fastdds/dds/core/policy/QosPolicies.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -1710,9 +1710,6 @@ class HistoryQosPolicy : public Parameter_t, public QosPolicy
int32_t depth;
};

//! A special value indicating an unlimited quantity
constexpr int32_t LENGTH_UNLIMITED = -1;

/**
* Specifies the resources that the Service can consume in order to meet the requested QoS
*
Expand Down
6 changes: 1 addition & 5 deletions include/fastrtps/types/TypesBase.h
Original file line number Diff line number Diff line change
Expand Up @@ -25,14 +25,10 @@
#include <vector>

#include <fastdds/dds/core/ReturnCode.hpp>
#include <fastdds/dds/core/Types.hpp>
#include <fastdds/rtps/common/Types.h>

namespace eprosima {
namespace fastdds {
namespace dds {
using DomainId_t = uint32_t;
} // dds
} // namespace fastdds

namespace fastcdr {
class Cdr;
Expand Down

0 comments on commit 43578a7

Please sign in to comment.