Logo Search packages:      
Sourcecode: libgphoto2 version File versions

int gp_abilities_list_reset ( CameraAbilitiesList list  ) 

Reset the list.

list a CameraAbilitiesList
a gphoto2 error code

Definition at line 552 of file gphoto2-abilities-list.c.

References _CameraAbilitiesList::abilities, CHECK_NULL, _CameraAbilitiesList::count, and GP_OK.

Referenced by gp_abilities_list_free().

      CHECK_NULL (list);

      if (list->abilities) {
            free (list->abilities);
            list->abilities = NULL;
      list->count = 0;

      return (GP_OK);

Generated by  Doxygen 1.6.0   Back to index