alesan
public c v1 · immutablefor(i=0; i<c; i++) { CameraFilePath path; CameraFile* file; int fd; res = gp_camera_capture(cameras[i], GP_CAPTURE_IMAGE, &path, context); fd = open("pippo", O_CREAT); res = gp_file_new_from_fd(&file, fd); res = gp_camera_file_get(cameras[i], path.folder, path.name, GP_FILE_TYPE_NORMAL, file, context); res = gp_file_unref(file); close(fd); }