/**
* @brief An opaque handle to a system diagnostics context object.
+ * @details The diagnostics context is provided in data event callbacks.
* @since_tizen 6.0
*/
typedef void* diagnostics_ctx_h;
/**
* @brief An opaque handle to a system diagnostics data object.
+ * @details A single piece of diagnostics data, to be read or written to.
* @since_tizen 6.0
*/
typedef void* diagnostics_data_h;
/**
* @brief Enumeration for error codes returned by the diagnostics API.
+ * @details Most diagnostics API functions may return some of these values to indicate specific errors.
* @since_tizen 6.0
*/
typedef enum {
/**
* @brief Notification callback fired when new diagnostics event arrives.
* @since_tizen 6.0
- * @remarks @a ctx should be released with diagnostics_destroy().
+ * @details @a ctx should be released with diagnostics_destroy() after use.
*
* @param[in] ctx Diagnostics context handle
* @param[in] user_data The user data passed from the callback registration function
/**
* @brief Request callback fired when someone requests diagnostics data.
* @since_tizen 6.5
- * @remarks @a data should be released with diagnostics_data_destroy().
+ * @details @a data should be released with diagnostics_data_destroy().
*
* @param[in] data Diagnostics data handle
* @param[in] params Array of request's parameters \n
/**
* @brief Sets the callback for diagnostics event notification.
* @since_tizen 6.0
- * @remarks This function is dedicated to diagnostic information subscribers.
+ * @details This function is dedicated to diagnostic information subscribers.
*
* @param[in] callback A callback function to set
* @param[in] user_data The user data to be passed to the callback function
/**
* @brief Unsets the callback for diagnostics event notification.
* @since_tizen 6.0
- * @remarks This function is dedicated to diagnostic information subscribers. \n
+ * @details This function is dedicated to diagnostic information subscribers. \n
* It clears all the events added with diagnostics_subscribe_event().
*
* @return 0 on success, otherwise a negative error value
* @since_tizen 6.5
* @privlevel platform
* @privilege
- * @remarks This function is dedicated to diagnostic information subscribers. \n
+ * @details This function is dedicated to diagnostic information subscribers. \n
* It is permitted only to an app signed by platform level certificates.
*
* @param[in] event_name Event name \n
* @since_tizen 6.5
* @privlevel platform
* @privilege
- * @remarks This function is dedicated to diagnostic information providers. \n
+ * @details This function is dedicated to diagnostic information providers. \n
* It is permitted only to an app signed by platform level certificates.
*
* @param[in] callback A callback function to set
* @since_tizen 6.5
* @privlevel platform
* @privilege
- * @remarks This function is dedicated to diagnostic information providers. \n
+ * @details This function is dedicated to diagnostic information providers. \n
* It is permitted only to an app signed by platform level certificates.
*
* @return 0 on success, otherwise a negative error value
* @since_tizen 6.0
* @privlevel platform
* @privilege
- * @remarks This function is dedicated to diagnostic information subscribers. \n
+ * @details This function is dedicated to diagnostic information subscribers. \n
* It is permitted only to an app signed by platform level certificates. \n
* @a data should be released with diagnostics_data_destroy().
*
* @since_tizen 6.0
* @privlevel platform
* @privilege
- * @remarks This function is dedicated to diagnostic information subscribers. \n
+ * @details This function is dedicated to diagnostic information subscribers. \n
* It is permitted only to an app signed by platform level certificates. \n
* @a data should be released with diagnostics_data_destroy(). \n
* The difference between this function and diagnostics_request_client_data() is that
/**
* @brief Gets a file descriptor for custom diagnostics data handling.
* @since_tizen 6.5
- * @remarks This function provides a file descriptor to read/write diagnostic data in a custom way
+ * @details This function provides a file descriptor to read/write diagnostic data in a custom way
* instead of using our diagnostics_data_read() and diagnostics_data_write() functions. \n
* Moreover, keep in mind that reading is allowed for diagnostic data subscribers and writing is allowed for providers.
* @param[in] data Diagnostics data handle
/**
* @brief Perform a single iteration of reading diagnostics data.
* @since_tizen 6.0
- * @remarks This function is dedicated to diagnostic information subscribers. \n
+ * @details This function is dedicated to diagnostic information subscribers. \n
* It is intended for use in loop until EOF is reached. EOF is when @a bytes_read == 0 and function returns #DIAGNOSTICS_ERROR_NONE.
*
* @param[in] data Diagnostics data handle
/**
* @brief Perform a single iteration of writing diagnostics data.
* @since_tizen 6.5
- * @remarks This function is dedicated to diagnostic information providers. \n
+ * @details This function is dedicated to diagnostic information providers. \n
* Data is being written to the special file descriptor and then copied to the diagnostic information subscriber's endpoint.
*
* @param[in] data Diagnostics data handle
* @since_tizen 6.5
* @privlevel platform
* @privilege
- * @remarks This function is dedicated to diagnostic information providers. \n
+ * @details This function is dedicated to diagnostic information providers. \n
* It is permitted only to an app signed by platform level certificates.
*
* @param[in] event_name Diagnostics event name
/**
* @brief Gets a system diagnostics client's ID (event sender).
* @since_tizen 6.0
- * @remarks This function is dedicated to diagnostic information subscribers. \n
+ * @details This function is dedicated to diagnostic information subscribers. \n
* @a client_id should be released with free().
*
* @param[in] ctx Diagnostics context handle
/**
* @brief Gets a copy of system diagnostics client's event name.
* @since_tizen 6.5
- * @remarks This function is dedicated to diagnostic information subscribers. \n
+ * @details This function is dedicated to diagnostic information subscribers. \n
* @a event_name should be released with free().
*
* @param[in] ctx Diagnostics context handle
/**
* @brief Gets a copy of a system diagnostics event's attached data.
* @since_tizen 6.5
- * @remarks This function is dedicated to diagnostic information subscribers. \n
+ * @details This function is dedicated to diagnostic information subscribers. \n
* @a event_data should be released with bundle_free().
*
* @param[in] ctx Diagnostics context handle
/**
* @brief Sets the system diagnostics client ID for further calls.
* @since_tizen 6.5
- * @remarks This function is dedicated to diagnostic information providers. \n
+ * @details This function is dedicated to diagnostic information providers. \n
* As services do not have any name associated with them, ID must be set explicitly with this function before calling any of the following functions: \n
* diagnostics_set_data_request_cb() \n
* diagnostics_send_event() \n
* @since_tizen 6.5
* @privlevel platform
* @privilege %http://tizen.org/privilege/bugreport.admin
- * @remarks This function is dedicated to diagnostic information subscribers. \n
+ * @details This function is dedicated to diagnostic information subscribers. \n
* To get bugreport's content, user must subscribe to 'BugreportCreated' diagnostics event, which is sent by crash-service after creating the report.
*
* @param[in] pid ID of a process that should be livedumped. When @a pid <= 0, system-wide bugreport is created.
/**
* @brief Frees the resources of a system diagnostics data handle.
+ * @details This function must be used at the end of the handle's lifetime to avoid a memory leak.
* @since_tizen 6.0
*
* @param[in] data Diagnostics data handle
/**
* @brief Frees the resources of a system diagnostics context handle.
+ * @details This function must be used at the end of the handle's lifetime, in the notification handler, to avoid a memory leak.
* @since_tizen 6.0
*
* @param[in] ctx Diagnostics context handle