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

int gp_file_set_mime_type ( CameraFile file,
const char *  mime_type 
filea CameraFile
mime_typea MIME type string
a gphoto2 error code.

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

References GP_OK.

Referenced by gp_file_detect_mime_type(), and gp_filesystem_get_file().

      CHECK_NULL (file && mime_type);

      strncpy (file->mime_type, mime_type, sizeof (file->mime_type));

      return (GP_OK);

Here is the caller graph for this function:

Generated by  Doxygen 1.6.0   Back to index