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

int gp_abilities_list_load ( CameraAbilitiesList list,
GPContext context 
)

Scans the system for camera drivers.

Parameters:
lista CameraAbilitiesList
contexta GPContext
Returns:
a gphoto2 error code

All supported camera models will then be added to the list.

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

References 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);
}

Here is the caller graph for this function:


Generated by  Doxygen 1.6.0   Back to index