camera_roll_set_path()

Updated: April 19, 2023

Set the camera roll path

Synopsis:

#include <camera/camera_api.h>
camera_error_t camera_roll_set_path(camera_handle_t handle,
                                    char *pathname)

Arguments:

handle
The handle returned by a call to the camera_open() function.
pathname
The absolute path to the new camera roll directory as a NULL-terminated string. Specifying an empty string will reset the roll path to its default value.

Library:

libcamapi

Description:

Use this function to change the path that the camera uses to create video files when you call camera_roll_open_video(). The value for the pathname argument must be a NULL-terminated string and must not be larger than CAMERA_ROLL_NAMELEN. The path you select must be a directory which your application has write access to.

Returns:

CAMERA_EOK when the function successfully completes, otherwise another camera_error_t value that provides the reason that the call failed.