All pastes #957207 Raw Edit

alesan

public c v1 · immutable
#957207 ·published 2008-03-25 21:00 UTC
rendered paste body
for(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);        }