@@ -63,6 +63,25 @@ uint16_t uxr_buffer_reply(
63
63
uint8_t * buffer ,
64
64
size_t len );
65
65
66
+ /**
67
+ * @brief Buffers into the stream identified by `stream_id` an XRCE WRITE_DATA submessage.
68
+ * As a consequence, an XRCE request is generated associated to the WRITE_DATA submessage.
69
+ *
70
+ * @param session A uxrSession structure previously initialized.
71
+ * @param stream_id The output stream identifier where the WRITE_DATA submessage will be buffered.
72
+ * @param datawriter_id The identifier of the XRCE Datawriter that will write the topic into the DDS GDS.
73
+ * @param buffer The pointer to the topic data.
74
+ * @param len The length of the topic data.
75
+ * @return A `request_id` that identifies the XRCE request made by the Publisher.
76
+ * This could be used in the `uxr_run_session_until_one_status` or `uxr_run_session_until_all_status` functions.
77
+ */
78
+ uint16_t uxr_buffer_topic (
79
+ uxrSession * session ,
80
+ uxrStreamId stream_id ,
81
+ uxrObjectId datawriter_id ,
82
+ uint8_t * buffer ,
83
+ size_t len );
84
+
66
85
/**
67
86
* @brief Buffers into the stream identified by `stream_id` an XRCE WRITE_DATA submessage.
68
87
* The submessage will be sent when `uxr_flash_output_stream` or `uxr_run_session` function are called.
@@ -72,12 +91,13 @@ uint16_t uxr_buffer_reply(
72
91
* @param datawriter_id The identifier of the XRCE DataWriter that will write the topic into the DDS GDS.
73
92
* @param ub_topic The ucdrBuffer structure used for serializing the topic.
74
93
* @param topic_size The size of the topic in bytes.
75
- * @return A `bool` that identifies the request made by the Client, if the message can be serialized
76
- */
77
- UXRDLLAPI bool uxr_prepare_output_stream (
94
+ * @return A `request_id` that identifies the XRCE request made by the Entity.
95
+ * This could be used in the `uxr_run_session_until_one_status` or `uxr_run_session_until_all_status` functions.
96
+ * */
97
+ UXRDLLAPI uint16_t uxr_prepare_output_stream (
78
98
uxrSession * session ,
79
99
uxrStreamId stream_id ,
80
- uxrObjectId datawriter_id ,
100
+ uxrObjectId entity_id ,
81
101
struct ucdrBuffer * ub_topic ,
82
102
uint32_t topic_size );
83
103
@@ -93,10 +113,11 @@ UXRDLLAPI bool uxr_prepare_output_stream(
93
113
* @param ub The ucdrBuffer structure used for serializing the topic.
94
114
* @param topic_size The size of the topic in bytes.
95
115
* @param flush_callback Callback that is call by the library when user should flush output buffers.
96
- * @return A `bool` that identifies the request made by the Clientif the message can be serialized
97
- */
116
+ * @return A `request_id` that identifies the XRCE request made by the Entity.
117
+ * This could be used in the `uxr_run_session_until_one_status` or `uxr_run_session_until_all_status` functions.
118
+ * */
98
119
99
- UXRDLLAPI bool uxr_prepare_output_stream_fragmented (
120
+ UXRDLLAPI uint16_t uxr_prepare_output_stream_fragmented (
100
121
uxrSession * session ,
101
122
uxrStreamId stream_id ,
102
123
uxrObjectId datawriter_id ,
0 commit comments