Logo Search packages:      
Sourcecode: libgphoto2 version File versions

int gp_camera_folder_put_file ( Camera camera,
const char *  folder,
CameraFile file,
GPContext context 

Uploads a file into given folder.

camera a Camera
folder a folder
file a CameraFile
context a GPContext
a gphoto2 error code

Definition at line 1145 of file gphoto2-camera.c.

References CHECK_NULL, gp_filesystem_put_file(), gp_log(), GP_LOG_DEBUG, and GP_OK.

      gp_log (GP_LOG_DEBUG, "gphoto2-camera", "Uploading file into '%s'...",

      CHECK_NULL (camera && folder && file);
      CHECK_INIT (camera, context);

      CHECK_RESULT_OPEN_CLOSE (camera, gp_filesystem_put_file (camera->fs,
                              folder, file, context), context);

      CAMERA_UNUSED (camera, context);
      return (GP_OK);

Generated by  Doxygen 1.6.0   Back to index