summaryrefslogtreecommitdiff
path: root/legacy/src/legacy_recorder_internal.c
diff options
context:
space:
mode:
Diffstat (limited to 'legacy/src/legacy_recorder_internal.c')
-rw-r--r--legacy/src/legacy_recorder_internal.c20
1 files changed, 20 insertions, 0 deletions
diff --git a/legacy/src/legacy_recorder_internal.c b/legacy/src/legacy_recorder_internal.c
index bb6b6bb..df11a5b 100644
--- a/legacy/src/legacy_recorder_internal.c
+++ b/legacy/src/legacy_recorder_internal.c
@@ -62,3 +62,23 @@ void legacy_recorder_emit_signal(recorder_h recorder, const char *object_name,
return;
}
+
+
+int legacy_recorder_set_gdbus_connection(recorder_h recorder, void *gdbus_connection)
+{
+ int ret;
+ recorder_s *handle = (recorder_s *)recorder;
+
+ if (handle == NULL) {
+ LOGE("NULL handle");
+ return RECORDER_ERROR_INVALID_PARAMETER;
+ }
+
+ LOGD("gdbus_connection %p", gdbus_connection);
+
+ ret = mm_camcorder_set_attributes(handle->mm_handle, NULL,
+ MMCAM_GDBUS_CONNECTION, gdbus_connection, sizeof(gdbus_connection),
+ NULL);
+
+ return __convert_recorder_error_code(__func__, ret);
+}