| libgphoto2 photo camera library (libgphoto2) API
    2.5.16
    | 
List of supported camera models including their abilities. More...
#include <gphoto2/gphoto2-context.h>#include <gphoto2/gphoto2-list.h>#include <gphoto2/gphoto2-port-info-list.h>#include <gphoto2/gphoto2-port-log.h>

Go to the source code of this file.
| Data Structures | |
| struct | CameraAbilities | 
| Describes the properties of a specific camera.  More... | |
| Typedefs | |
| typedef struct _CameraAbilitiesList | CameraAbilitiesList | 
| List of supported camera models including their abilities.  More... | |
| Enumerations | |
| enum | CameraDriverStatus { GP_DRIVER_STATUS_PRODUCTION, GP_DRIVER_STATUS_TESTING, GP_DRIVER_STATUS_EXPERIMENTAL, GP_DRIVER_STATUS_DEPRECATED } | 
| enum | GphotoDeviceType { GP_DEVICE_STILL_CAMERA = 0, GP_DEVICE_AUDIO_PLAYER = 1 << 0 } | 
| enum | CameraOperation { GP_OPERATION_NONE = 0, GP_OPERATION_CAPTURE_IMAGE = 1 << 0, GP_OPERATION_CAPTURE_VIDEO = 1 << 1, GP_OPERATION_CAPTURE_AUDIO = 1 << 2, GP_OPERATION_CAPTURE_PREVIEW = 1 << 3, GP_OPERATION_CONFIG = 1 << 4, GP_OPERATION_TRIGGER_CAPTURE = 1 << 5 } | 
| enum | CameraFileOperation { GP_FILE_OPERATION_NONE = 0, GP_FILE_OPERATION_DELETE = 1 << 1, GP_FILE_OPERATION_PREVIEW = 1 << 3, GP_FILE_OPERATION_RAW = 1 << 4, GP_FILE_OPERATION_AUDIO = 1 << 5, GP_FILE_OPERATION_EXIF = 1 << 6 } | 
| enum | CameraFolderOperation { GP_FOLDER_OPERATION_NONE = 0, GP_FOLDER_OPERATION_DELETE_ALL = 1 << 0, GP_FOLDER_OPERATION_PUT_FILE = 1 << 1, GP_FOLDER_OPERATION_MAKE_DIR = 1 << 2, GP_FOLDER_OPERATION_REMOVE_DIR = 1 << 3 } | 
| Functions | |
| int | gp_abilities_list_new (CameraAbilitiesList **list) | 
| Allocate the memory for a new abilities list.  More... | |
| int | gp_abilities_list_free (CameraAbilitiesList *list) | 
| Free the given CameraAbilitiesList object.  More... | |
| int | gp_abilities_list_load (CameraAbilitiesList *list, GPContext *context) | 
| Scans the system for camera drivers.  More... | |
| int | gp_abilities_list_load_dir (CameraAbilitiesList *list, const char *dir, GPContext *context) | 
| int | gp_abilities_list_reset (CameraAbilitiesList *list) | 
| Reset the list.  More... | |
| int | gp_abilities_list_detect (CameraAbilitiesList *list, GPPortInfoList *info_list, CameraList *l, GPContext *context) | 
| int | gp_abilities_list_append (CameraAbilitiesList *list, CameraAbilities abilities) | 
| Append the abilities to the list.  More... | |
| int | gp_abilities_list_count (CameraAbilitiesList *list) | 
| Count the entries in the supplied list.  More... | |
| int | gp_abilities_list_lookup_model (CameraAbilitiesList *list, const char *model) | 
| Search the list for an entry of given model name.  More... | |
| int | gp_abilities_list_get_abilities (CameraAbilitiesList *list, int index, CameraAbilities *abilities) | 
| Retrieve the camera abilities of entry with supplied index number.  More... | |
| const char * | gp_message_codeset (const char *) | 
| Set the current character codeset libgphoto2 is operating in.  More... | |
List of supported camera models including their abilities.
| typedef struct _CameraAbilitiesList CameraAbilitiesList | 
List of supported camera models including their abilities.
The internals of this list are hidden - use the access functions.
| enum CameraDriverStatus | 
Current implementation status of the camera driver.
| enum CameraFileOperation | 
A bitmask of image related operations of the device.
A bitmask of filesystem related operations of the device.
| enum CameraOperation | 
A bitmask of remote control related operations of the device. Some drivers might support additional dynamic capabilities (like the PTP driver).
| enum GphotoDeviceType | 
| int gp_abilities_list_append | ( | CameraAbilitiesList * | list, | 
| CameraAbilities | abilities | ||
| ) | 
Append the abilities to the list.
| list | CameraAbilitiesList | 
| abilities | CameraAbilities | 
This function is called by a camera library on camera_abilities() in order to inform libgphoto2 about a supported camera model.
Referenced by camera_abilities().
| int gp_abilities_list_count | ( | CameraAbilitiesList * | list | ) | 
Count the entries in the supplied list.
| list | a CameraAbilitiesList | 
| int gp_abilities_list_detect | ( | CameraAbilitiesList * | list, | 
| GPPortInfoList * | info_list, | ||
| CameraList * | l, | ||
| GPContext * | context | ||
| ) | 
| list | a CameraAbilitiesList | 
| info_list | the GPPortInfoList of ports to use for detection | 
| l | a CameraList that contains the autodetected cameras after the call | 
| context | a GPContext | 
Tries to detect any camera connected to the computer using the supplied list of supported cameras and the supplied info_list of ports.
References gp_list_reset().
Referenced by gp_camera_autodetect().
| int gp_abilities_list_free | ( | CameraAbilitiesList * | list | ) | 
Free the given CameraAbilitiesList object.
| list | a CameraAbilitiesList | 
Referenced by gp_camera_autodetect().
| int gp_abilities_list_get_abilities | ( | CameraAbilitiesList * | list, | 
| int | index, | ||
| CameraAbilities * | abilities | ||
| ) | 
Retrieve the camera abilities of entry with supplied index number.
| list | a CameraAbilitiesList | 
| index | index | 
| abilities | pointer to CameraAbilities for returned data. | 
Retrieves the camera abilities of entry with supplied index number. Typically, you would call gp_camera_set_abilities() afterwards in order to prepare the initialization of a camera.
References GP_DEVICE_AUDIO_PLAYER, GP_DEVICE_STILL_CAMERA, GP_DRIVER_STATUS_DEPRECATED, GP_DRIVER_STATUS_EXPERIMENTAL, GP_DRIVER_STATUS_PRODUCTION, GP_DRIVER_STATUS_TESTING, GP_FILE_OPERATION_AUDIO, GP_FILE_OPERATION_DELETE, GP_FILE_OPERATION_EXIF, GP_FILE_OPERATION_NONE, GP_FILE_OPERATION_PREVIEW, GP_FILE_OPERATION_RAW, GP_FOLDER_OPERATION_DELETE_ALL, GP_FOLDER_OPERATION_MAKE_DIR, GP_FOLDER_OPERATION_NONE, GP_FOLDER_OPERATION_PUT_FILE, GP_FOLDER_OPERATION_REMOVE_DIR, GP_OK, GP_OPERATION_CAPTURE_AUDIO, GP_OPERATION_CAPTURE_IMAGE, GP_OPERATION_CAPTURE_PREVIEW, GP_OPERATION_CAPTURE_VIDEO, GP_OPERATION_CONFIG, and GP_OPERATION_NONE.
| int gp_abilities_list_load | ( | CameraAbilitiesList * | list, | 
| GPContext * | context | ||
| ) | 
Scans the system for camera drivers.
| list | a CameraAbilitiesList | 
| context | a GPContext | 
All supported camera models will then be added to the list.
Referenced by gp_camera_autodetect().
| int gp_abilities_list_lookup_model | ( | CameraAbilitiesList * | list, | 
| const char * | model | ||
| ) | 
Search the list for an entry of given model name.
| list | a CameraAbilitiesList | 
| model | a camera model name | 
References GP_ERROR_MODEL_NOT_FOUND, and CameraAbilities::model.
| int gp_abilities_list_new | ( | CameraAbilitiesList ** | list | ) | 
Allocate the memory for a new abilities list.
Function to allocate the memory for a new abilities list.
| list | CameraAbilitiesList object to initialize | 
You would then call gp_abilities_list_load() in order to populate it.
Referenced by gp_camera_autodetect().
| int gp_abilities_list_reset | ( | CameraAbilitiesList * | list | ) | 
| const char* gp_message_codeset | ( | const char * | codeset | ) | 
Set the current character codeset libgphoto2 is operating in.
Set the codeset for all messages returned by libgphoto2.
| codeset | New codeset for the messages. For instance "utf-8". | 
You would then call gp_abilities_list_load() in order to populate it.
References gp_port_message_codeset().