@@ -28,6 +28,12 @@ namespace participants {
2828
2929/* *
3030 * DdsLogFunc - callback executed when consuming log messages
31+ *
32+ * @param [in] file_name Name of the file where the log was generated
33+ * @param [in] line_no Line number in the file where the log was generated
34+ * @param [in] func_name Name of the function where the log was generated
35+ * @param [in] category Category of the log message
36+ * @param [in] msg Log message content
3137 */
3238typedef void (* DdsLogFunc)(
3339 const char * file_name,
@@ -38,6 +44,12 @@ typedef void (* DdsLogFunc)(
3844
3945/* *
4046 * DdsTypeNotification - callback for notifying the reception of DDS types
47+ *
48+ * @param [in] type_name Name of the received type
49+ * @param [in] serialized_type Serialized type in IDL format
50+ * @param [in] serialized_type_internal Serialized type in internal format
51+ * @param [in] serialized_type_internal_size Size of the serialized type in internal format
52+ * @param [in] data_placeholder JSON data placeholder
4153 */
4254typedef void (* DdsTypeNotification)(
4355 const char * type_name,
@@ -48,6 +60,10 @@ typedef void (* DdsTypeNotification)(
4860
4961/* *
5062 * DdsTopicNotification - callback for notifying the reception of DDS topics
63+ *
64+ * @param [in] topic_name Name of the received topic
65+ * @param [in] type_name Name of the type associated with the topic
66+ * @param [in] serialized_qos Serialized Quality of Service (QoS) of the topic
5167 */
5268typedef void (* DdsTopicNotification)(
5369 const char * topic_name,
@@ -56,28 +72,42 @@ typedef void (* DdsTopicNotification)(
5672
5773/* *
5874 * DdsDataNotification - callback for notifying the reception of DDS data
75+ *
76+ * @param [in] topic_name Name of the topic from which the data was received
77+ * @param [in] json JSON representation of the data
78+ * @param [in] publish_time Time (nanoseconds since epoch) when the data was published
5979 */
6080typedef void (* DdsDataNotification)(
6181 const char * topic_name,
6282 const char * json,
6383 int64_t publish_time);
6484
65- /* *
66- * DdsTopicQuery - callback for requesting information (type and QoS) of a DDS topic
67- */
68- typedef bool (* DdsTopicQuery)(
69- const char * topic_name,
70- std::string& type_name,
71- std::string& serialized_qos);
72-
7385/* *
7486 * DdsTypeQuery - callback for requesting information (serialized description and size) of a DDS type
87+ *
88+ * @param [in] type_name Name of the type to query
89+ * @param [out] serialized_type_internal Pointer to the serialized type in internal format
90+ * @param [out] serialized_type_internal_size Size of the serialized type in internal format
91+ * @return \c true if the type was found and the information was retrieved successfully, \c false otherwise
7592 */
7693typedef bool (* DdsTypeQuery)(
7794 const char * type_name,
7895 std::unique_ptr<const unsigned char []>& serialized_type_internal,
7996 uint32_t & serialized_type_internal_size);
8097
98+ /* *
99+ * DdsTopicQuery - callback for requesting information (type and QoS) of a DDS topic
100+ *
101+ * @param [in] topic_name Name of the topic to query
102+ * @param [out] type_name Name of the type associated with the topic
103+ * @param [out] serialized_qos Serialized Quality of Service (QoS) of the topic
104+ * @return \c true if the topic was found and the information was retrieved successfully, \c false otherwise
105+ */
106+ typedef bool (* DdsTopicQuery)(
107+ const char * topic_name,
108+ std::string& type_name,
109+ std::string& serialized_qos);
110+
81111} /* namespace participants */
82112} /* namespace ddsenabler */
83113} /* namespace eprosima */
0 commit comments