- * @return TODO.
- */
-char *srd_log_get_logdomain(void)
-{
- return g_strdup((char *)srd_log_domain);
-}
-
-/**
- * Set the libsigrokdecode log handler to the specified function.
- *
- * @param handler Function pointer to the log handler function to use.
- * Must not be NULL.
- * @param data Pointer to private data to be passed on. This can be used by
- * the caller pass arbitrary data to the log functions. This
- * pointer is only stored or passed on by libsigrokdecode, and
- * is never used or interpreted in any way.
- * @return SRD_OK upon success, SRD_ERR_ARG upon invalid arguments.
+ * @param[out] cb Pointer to a function pointer to receive the log callback
+ * function. Optional, can be NULL.
+ * @param[out] cb_data Pointer to a void pointer to receive the log callback's
+ * additional arguments. Optional, can be NULL.
+ *
+ * @return SRD_OK upon success.
+ *
+ * @since 0.5.2