Logo Search packages:      
Sourcecode: libgphoto2 version File versions

int gp_filesystem_free ( CameraFilesystem fs  ) 

gp_filesystem_free: : a CameraFilesystem

Frees the CameraFilesystem

Return value: a gphoto2 error code.

Definition at line 511 of file gphoto2-filesys.c.

References _CameraFilesystem::folder, and gp_filesystem_reset().

Referenced by gp_camera_free().

{
      /* We don't care for success or failure */
      gp_filesystem_reset (fs);

      /* Now, we've only got left over the root folder. Free that and
       * the filesystem. */
      free (fs->folder);
      free (fs);

        return (GP_OK);
}


Generated by  Doxygen 1.6.0   Back to index