Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add DDS_TIME_INVALID and DDS_Time_is_invalid for connext micro #140

Open
wants to merge 1 commit into
base: rolling
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions rmw_connextdds_common/include/rmw_connextdds/dds_api.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -48,8 +48,8 @@ enum RMW_Connext_MessageType

struct RMW_Connext_WriteParams
{
DDS_Time_t timestamp{DDS_TIME_INVALID};
int64_t sequence_number{0};
DDS_Time_t timestamp = DDS_TIME_INVALID;
int64_t sequence_number = 0L;
};

RMW_CONNEXTDDS_PUBLIC extern const char * const RMW_CONNEXTDDS_ID;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -73,4 +73,9 @@ struct DDS_LifespanQosPolicy;
// Not available function
#define DDS_DataWriter_wait_for_acknowledgments(writer_, timeout_) DDS_RETCODE_UNSUPPORTED

#define DDS_Time_is_invalid(timePtr) \
((timePtr)->sec < 0)

#define DDS_TIME_INVALID {-1L, 0UL}

#endif // RMW_CONNEXTDDS__DDS_API_RTIME_HPP_