Logo Search packages:      
Sourcecode: libgphoto2 version File versions

int gp_abilities_list_load ( CameraAbilitiesList list,
GPContext context 

Scans the system for camera drivers.

list a CameraAbilitiesList
context a GPContext
a gphoto2 error code
All supported camera models will then be added to the list.

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

References CHECK_NULL, CHECK_RESULT, gp_abilities_list_sort(), and GP_OK.

Referenced by gp_camera_init().

      const char *camlib_env = getenv(CAMLIBDIR_ENV);
      const char *camlibs = (camlib_env != NULL)?camlib_env:CAMLIBS;
      CHECK_NULL (list);

      CHECK_RESULT (gp_abilities_list_load_dir (list, camlibs, context));
      CHECK_RESULT (gp_abilities_list_sort (list));

      return (GP_OK);

Generated by  Doxygen 1.6.0   Back to index