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

void gp_camera_set_timeout_funcs ( Camera camera,
CameraTimeoutStartFunc  start_func,
CameraTimeoutStopFunc  stop_func,
void *  data 
)

Parameters:
camera a Camera
start_func 
stop_func 
data 
Returns:
a gphoto2 error code
If your frontend has something like idle loops, it is recommended you use gp_camera_set_timeout_funcs in order to give the camera driver the possibility to keep up the connection to the camera.

Definition at line 1417 of file gphoto2-camera.c.

{
      if (!camera || !camera->pc)
            return;

      camera->pc->timeout_start_func = start_func;
      camera->pc->timeout_stop_func = stop_func;
      camera->pc->timeout_data = data;
}


Generated by  Doxygen 1.6.0   Back to index