Logo Search packages:      
Sourcecode: libgphoto2 version File versions

int gp_file_set_name ( CameraFile file,
const char *  name 

file a CameraFile
name a pointer to a MIME type string
a gphoto2 error code.

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

References CHECK_NULL, and GP_OK.

Referenced by gp_filesystem_get_file().

      CHECK_NULL (file && name);

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

      return (GP_OK);

Generated by  Doxygen 1.6.0   Back to index