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

_GPPortOperations Struct Reference

#include <gphoto2-port-library.h>

List of all members.


Detailed Description

The port operations.

These operations are to be implemented and set by the port library, which drives the lowlevel protocol (serial, usb, etc.).

They are acessed using the accessor functions, like gp_port_open(), gp_port_read() and gp_port_write().

Definition at line 39 of file gphoto2-port-library.h.


Public Attributes

int(* check_int )(GPPort *, char *, int, int)
int(* clear_halt )(GPPort *dev, int ep)
int(* close )(GPPort *)
int(* exit )(GPPort *)
int(* find_device )(GPPort *dev, int idvendor, int idproduct)
int(* find_device_by_class )(GPPort *dev, int class, int subclass, int protocol)
int(* flush )(GPPort *, int)
int(* get_pin )(GPPort *, GPPin, GPLevel *)
int(* init )(GPPort *)
int(* msg_class_read )(GPPort *dev, int request, int value, int index, char *bytes, int size)
int(* msg_class_write )(GPPort *dev, int request, int value, int index, char *bytes, int size)
int(* msg_interface_read )(GPPort *dev, int request, int value, int index, char *bytes, int size)
int(* msg_interface_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)
int(* msg_write )(GPPort *dev, int request, int value, int index, char *bytes, int size)
int(* open )(GPPort *)
int(* read )(GPPort *, char *, int)
int(* send_break )(GPPort *, int)
int(* set_pin )(GPPort *, GPPin, GPLevel)
int(* update )(GPPort *)
int(* write )(GPPort *, const char *, int)

The documentation for this struct was generated from the following file:

Generated by  Doxygen 1.6.0   Back to index