diff --git a/doc/api/tmpl/gphoto2-abilities-list.sgml b/doc/api/tmpl/gphoto2-abilities-list.sgml index 66d9c62e6..074543c5e 100644 --- a/doc/api/tmpl/gphoto2-abilities-list.sgml +++ b/doc/api/tmpl/gphoto2-abilities-list.sgml @@ -2,16 +2,47 @@ CameraAbilitiesList +A list containing supported cameras and the features of those +A #CameraAbilitiesList contains every camera model that is supported by gphoto2 together with the features of those camera models. + + +Camera drivers will get in contact with a #CameraAbilitiesList when the #CameraLibraryAbilitiesFunc is called. + + + +Frontends will use the #CameraAbilitiesList as an entry point to gphoto2. In +order to set up a #Camera, you need to call #gp_camera_set_abilities. The +#CameraAbilities you pass to that function can be retreived from a +#CameraAbilitiesList. + + Using the #CameraAbilitiesList + + #CameraAbilitiesList *list; + #CameraAbilities abilities; + int n; + + /* Create a new list */ + #gp_abilities_list_new (&list); + + /* Scan the system for camera drivers */ + #gp_abilities_list_load (list); + + /* Retreive the abilities of a specific model */ + n = #gp_abilities_list_lookup_model (list, "HP PhotoSmart C30"); + #gp_abilities_list_get_abilities (list, n, &abilities); + #gp_abilities_list_free (list); + + - +#CameraLibraryAbilitiesFunc