 |  |  | The Canon driver reference |
---|
Structures
Details
struct CameraPrivateLibrary
struct CameraPrivateLibrary {
struct canonCamModelData *md;
int speed; /* The speed we're using for this camera */
char ident[32]; /* Model ID string given by the camera */
char owner[32]; /* Owner name */
char firmwrev[4]; /* Firmware revision */
unsigned char psa50_eot[8];
int receive_error; /* status of transfer on serial connection */
int first_init; /* first use of camera 1 = yes 0 = no */
int uploading; /* 1 = yes ; 0 = no */
int slow_send; /* to send data via serial with a usleep(1)
* between each byte 1 = yes ; 0 = no */
unsigned char seq_tx;
unsigned char seq_rx;
/* driver settings
* leave these as int, as gp_widget_get_value sets them as int!
*/
int list_all_files; /* whether to list all files, not just know types */
int upload_keep_filename; /* 0=DCIF compatible filenames (AUT_*),
1=keep original filename */
char *cached_drive; /* usually something like C: */
int cached_ready; /* whether the camera is ready to rock */
long image_key, thumb_length, image_length; /* For immediate download of captured image */
int capture_step; /* To record progress in interrupt
* reads from capture */
int transfer_mode; /* To remember what interrupt messages
are expected during capture from
newer cameras. */
int keys_locked; /* whether the keys are currently
locked out */
unsigned int xfer_length; /* Length of max transfer for
download */
/*
* Directory access may be rather expensive, so we cached some information.
* This is now done by libgphoto2, so we are continuously removing this stuff.
* So the following variables are OBSOLETE.
*/
int cached_disk;
int cached_capacity;
int cached_available;
};