summaryrefslogtreecommitdiff
path: root/legacy/include/legacy_recorder_internal.h
diff options
context:
space:
mode:
Diffstat (limited to 'legacy/include/legacy_recorder_internal.h')
-rw-r--r--legacy/include/legacy_recorder_internal.h16
1 files changed, 14 insertions, 2 deletions
diff --git a/legacy/include/legacy_recorder_internal.h b/legacy/include/legacy_recorder_internal.h
index 2fec16a..3b9d9ad 100644
--- a/legacy/include/legacy_recorder_internal.h
+++ b/legacy/include/legacy_recorder_internal.h
@@ -32,13 +32,12 @@ extern "C" {
* @ingroup CAPI_MEDIA_RECORDER_MUSED_MODULE
* @param[in] recorder The handle to the recorder
* @param[in] pid The pid of client
- *
* @return @c 0 on success, otherwise a negative error value
* @retval #RECORDER_ERROR_NONE Successful
* @retval #RECORDER_ERROR_INVALID_PARAMETER Invalid parameter
* @retval #RECORDER_ERROR_INVALID_OPERATION Invalid operation
* @retval #RECORDER_ERROR_INVALID_STATE Invalid state
- * @pre The recorder state must be #RECORDER_STATE_CREATED.
+ * @pre The recorder state must be #RECORDER_STATE_CREATED.
*/
int legacy_recorder_set_client_pid(recorder_h recorder, int pid);
@@ -54,6 +53,19 @@ int legacy_recorder_set_client_pid(recorder_h recorder, int pid);
void legacy_recorder_emit_signal(recorder_h recorder, const char *object_name,
const char *interface_name, const char *signal_name, int value);
+/**
+ * @brief Set gdbus connection created from outside.
+ * @ingroup CAPI_MEDIA_RECORDER_MUSED_MODULE
+ * @param[in] recorder The handle to the recorder
+ * @param[in] gdbus_connection The connection of gdbus
+ * @return @c 0 on success, otherwise a negative error value
+ * @retval #RECORDER_ERROR_NONE Successful
+ * @retval #RECORDER_ERROR_INVALID_PARAMETER Invalid parameter
+ * @retval #RECORDER_ERROR_INVALID_OPERATION Invalid operation
+ * @retval #RECORDER_ERROR_INVALID_STATE Invalid state
+ * @pre The recorder state must be #RECORDER_STATE_CREATED.
+ */
+int legacy_recorder_set_gdbus_connection(recorder_h recorder, void *gdbus_connection);
#ifdef __cplusplus
}