Logo Search packages:      
Sourcecode: libgphoto2 version File versions

static int gp_abilities_list_lookup_id ( CameraAbilitiesList list,
const char *  id 
) [static]

For internal use only.

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

References _CameraAbilitiesList::abilities, CHECK_NULL, _CameraAbilitiesList::count, GP_ERROR, and CameraAbilities::id.

      int x;

      CHECK_NULL (list && id);

      for (x = 0; x < list->count; x++)
            if (!strcmp (list->abilities[x].id, id))
                  return (x);

      return (GP_ERROR);

Generated by  Doxygen 1.6.0   Back to index