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

int gp_camera_get_storageinfo ( Camera camera,
CameraStorageInformation **  sifs,
int *  nrofsifs,
GPContext context 

Gets information on the camera attached storage.

camera a Camera
sifs Pointer to receive a pointer to/array of storage info items
nrofsifs Pointer to receive number of array entries
context a GPContext
a gphoto2 error code
Retrieves the storage information, like maximum and free space, for the specified filesystem, if supported by the device. The storage information is returned in an newly allocated array of CameraStorageInformation objects, to which the pointer pointed to by sifs will be set.

The variable pointed to by nrofsifs will be set to the number of elements in that array.

It is the caller's responsibility to free the memory of the array.

Definition at line 1398 of file gphoto2-camera.c.

References CHECK_NULL, gp_filesystem_get_storageinfo(), and GP_OK.

      CHECK_NULL (camera && sifs && nrofsifs);
      CHECK_INIT (camera, context);

            gp_filesystem_get_storageinfo (
                  camera->fs, sifs, nrofsifs, context
      CAMERA_UNUSED (camera, context);
      return (GP_OK);

Generated by  Doxygen 1.6.0   Back to index