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

typedef int(* CameraPrePostFunc)(Camera *camera, GPContext *context)

Parameters:
camera a Camera object
context a GPContext object
Returns:
a gphoto2 error code
Implement this function in the camera driver if the camera needs to be initialized before or reset the after each access from libgphoto2.

For example, you would probably set the speed to the highest one right before downloading an image, and reset it to the default speed afterwards so that other programs will not be affected by this speed change.

Definition at line 205 of file gphoto2-camera.h.


Generated by  Doxygen 1.6.0   Back to index