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

Fix domain id argument in create_participant API #348

Merged
merged 1 commit into from
Mar 29, 2023
Merged
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
2 changes: 1 addition & 1 deletion include/uxr/client/core/session/create_entities_ref.h
Original file line number Diff line number Diff line change
Expand Up @@ -51,7 +51,7 @@ UXRDLLAPI uint16_t uxr_buffer_create_participant_ref(
uxrSession* session,
uxrStreamId stream_id,
uxrObjectId object_id,
int16_t domain_id,
uint16_t domain_id,
const char* ref,
uint8_t mode);

Expand Down
4 changes: 2 additions & 2 deletions src/c/core/session/create_entities_ref.c
Original file line number Diff line number Diff line change
Expand Up @@ -20,15 +20,15 @@ uint16_t uxr_buffer_create_participant_ref(
uxrSession* session,
uxrStreamId stream_id,
uxrObjectId object_id,
int16_t domain_id,
uint16_t domain_id,
const char* ref,
uint8_t mode)
{
//assert with the object_id type

CREATE_Payload payload;
payload.object_representation.kind = DDS_XRCE_OBJK_PARTICIPANT;
payload.object_representation._.participant.domain_id = domain_id;
payload.object_representation._.participant.domain_id = (int16_t)domain_id;

return create_entity_ref(session, stream_id, object_id, ref, mode, &payload);
}
Expand Down