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

int gp_file_set_name ( CameraFile file,
const char *  name 
)
Parameters:
filea CameraFile
namea pointer to a MIME type string
Returns:
a gphoto2 error code.

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

References GP_OK.

Referenced by gp_filesystem_get_file().

{
      CHECK_NULL (file && name);

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

      return (GP_OK);
}

Here is the caller graph for this function:


Generated by  Doxygen 1.6.0   Back to index