Logo Search packages:      
Sourcecode: libgphoto2 version File versions

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

The camera exit function.

camera the current camera
context a GPContext
This functions is called in the camera driver for closing the camera connection. It should do the necessary cleanups of the internal camera state, free allocated private structures and similar.

The driver does not need to close the GPPort, this is done by libgphoto2 itself.

Implement this function if you need to any of this stuff, otherwise leave it out.

a gphoto error code

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

Generated by  Doxygen 1.6.0   Back to index