From 48b868c5208816b007ec1d9c7940e75b4c64e5ce Mon Sep 17 00:00:00 2001 From: MariaMatveeva Date: Fri, 26 Aug 2016 14:29:03 +0200 Subject: Update documentation --- docs/api.rst | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'docs/api.rst') diff --git a/docs/api.rst b/docs/api.rst index cf0dd4b..3bdde88 100644 --- a/docs/api.rst +++ b/docs/api.rst @@ -18,9 +18,9 @@ all camera strings with ``uca_plugin_manager_get_available_cameras``:: GList *types; - types = uca_camera_get_available_cameras (manager); + types = uca_plugin_manager_get_available_cameras (manager); - for (GList *it = g_list_first; it != NULL; it = g_list_next (it)) + for (GList *it = g_list_first (types); it != NULL; it = g_list_next (it)) g_print ("%s\n", (gchar *) it->data); /* free the strings and the list */ @@ -76,7 +76,7 @@ With ``UCA_CAMERA_TRIGGER_SOURCE_SOFTWARE`` you have to trigger with NULL); uca_camera_start_recording (camera, NULL); - uca_camera_grab (camera, &buffer, NULL); + uca_camera_grab (camera, buffer, NULL); uca_camera_stop_recording (camera, NULL); /* thread B */ -- cgit v1.2.3