Logo Search packages:      
Sourcecode: libgphoto2 version File versions

int gp_file_set_data_and_size ( CameraFile file,
char *  data,
unsigned long int  size 
)

Parameters:
file a CameraFile
data 
size 
Returns:
a gphoto2 error code.

Definition at line 190 of file gphoto2-file.c.

References CHECK_NULL.

Referenced by gp_file_raw_to_ppm().

{
      CHECK_NULL (file);

      if (file->data)
            free (file->data);
      file->data = data;
      file->size = size;
      file->bytes_read = size;

      return (GP_OK);
}


Generated by  Doxygen 1.6.0   Back to index