Logo Search packages:      
Sourcecode: libgphoto2 version File versions  Download package

int gp_camera_file_delete ( Camera camera,
const char *  folder,
const char *  file,
GPContext context 
)

Deletes the file from folder.

Parameters:
camera a Camera
folder a folder
file the name of a file
context a GPContext
Returns:
a gphoto2 error code

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

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

{
      gp_log (GP_LOG_DEBUG, "gphoto2-camera", "Deleting file '%s' in "
            "folder '%s'...", file, folder);

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

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

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


Generated by  Doxygen 1.6.0   Back to index