![]() | ![]() | ![]() | GPhoto2-Port API Reference Manual |
---|
GPhoto2-Port-Library —
struct GPPortOperations; GPPortType (*GPPortLibraryType) (void); int (*GPPortLibraryList) (GPPortInfoList *list); GPPortOperations* (*GPPortLibraryOperations) (void); GPPortType gp_port_library_type (void); int gp_port_library_list (GPPortInfoList *list); GPPortOperations* gp_port_library_operations (void);
struct GPPortOperations { int (*init) (GPPort *); int (*exit) (GPPort *); int (*open) (GPPort *); int (*close) (GPPort *); int (*read) (GPPort *, char *, int); int (*check_int)(GPPort *, char *, int, int); int (*write) (GPPort *, const char *, int); int (*update) (GPPort *); /* Pointers to devices. Please note these are stubbed so there is no need to #ifdef GP_PORT_* anymore. */ /* for serial devices */ int (*get_pin) (GPPort *, GPPin, GPLevel*); int (*set_pin) (GPPort *, GPPin, GPLevel); int (*send_break)(GPPort *, int); int (*flush) (GPPort *, int); /* for USB devices */ int (*find_device)(GPPort * dev, int idvendor, int idproduct); int (*find_device_by_class)(GPPort * dev, int class, int subclass, int protocol); int (*clear_halt) (GPPort * dev, int ep); int (*msg_write) (GPPort * dev, int request, int value, int index, char *bytes, int size); int (*msg_read) (GPPort * dev, int request, int value, int index, char *bytes, int size); };
<< GPhoto2-Port |