libgphoto2 photo camera library (libgphoto2) Internals  2.5.26
_CameraFunctions Struct Reference

Various camera specific functions. More...

#include <gphoto2-camera.h>

Data Fields

CameraPrePostFunc pre_func
 Function called before each camera operation. More...
 
CameraPrePostFunc post_func
 Function called after each camera operation. More...
 
CameraExitFunc exit
 Function called on closing the camera. More...
 
CameraGetConfigFunc get_config
 Called for requesting the configuration widgets. More...
 
CameraSetConfigFunc set_config
 Called after a configuration was changed. More...
 
CameraListConfigFunc list_config
 Called for listing the available configuration widgets. More...
 
CameraGetSingleConfigFunc get_single_config
 Called for requesteing a single widget. More...
 
CameraSetSingleConfigFunc set_single_config
 Called for setting a single configuration widget. More...
 
CameraCaptureFunc capture
 Remote control the camera to capture. More...
 
CameraTriggerCaptureFunc trigger_capture
 Remote control the camera to trigger capture. More...
 
CameraCapturePreviewFunc capture_preview
 Preview viewfinder content. More...
 
CameraSummaryFunc summary
 Give a summary about the current camera status, translated. More...
 
CameraManualFunc manual
 Give a brief manual about any specific items a user has to know, translated. More...
 
CameraAboutFunc about
 A little About text, including authors and credits. More...
 
CameraWaitForEvent wait_for_event
 Wait for a specific event from the camera. More...
 
void * reserved1
 reserved for future use More...
 
void * reserved2
 reserved for future use More...
 
void * reserved3
 reserved for future use More...
 
void * reserved4
 reserved for future use More...
 
void * reserved5
 reserved for future use More...
 
void * reserved6
 reserved for future use More...
 
void * reserved7
 reserved for future use More...
 
void * reserved8
 reserved for future use More...
 

Detailed Description

Various camera specific functions.

This structure contains various pointers to functions that apply to the camera itself, and not the filesystem (which is handled by the filesystem functions). Set the ones you want to provide, leave the rest unset.

This structure should only used by the driver itself, the frontend should use the gp_camera_xxx wrapper functions for it, who handle opening and locking around those hooks.

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

Field Documentation

◆ about

CameraAboutFunc _CameraFunctions::about

A little About text, including authors and credits.

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

Referenced by camera_init(), and gp_camera_get_about().

◆ capture

CameraCaptureFunc _CameraFunctions::capture

Remote control the camera to capture.

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

Referenced by camera_init(), and gp_camera_capture().

◆ capture_preview

CameraCapturePreviewFunc _CameraFunctions::capture_preview

Preview viewfinder content.

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

Referenced by camera_init(), and gp_camera_capture_preview().

◆ exit

CameraExitFunc _CameraFunctions::exit

Function called on closing the camera.

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

Referenced by camera_init(), and gp_camera_exit().

◆ get_config

CameraGetConfigFunc _CameraFunctions::get_config

Called for requesting the configuration widgets.

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

Referenced by camera_init(), gp_camera_get_config(), gp_camera_get_single_config(), gp_camera_list_config(), and gp_camera_set_single_config().

◆ get_single_config

CameraGetSingleConfigFunc _CameraFunctions::get_single_config

Called for requesteing a single widget.

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

Referenced by gp_camera_get_single_config().

◆ list_config

CameraListConfigFunc _CameraFunctions::list_config

Called for listing the available configuration widgets.

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

Referenced by gp_camera_list_config().

◆ manual

CameraManualFunc _CameraFunctions::manual

Give a brief manual about any specific items a user has to know, translated.

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

Referenced by camera_init(), and gp_camera_get_manual().

◆ post_func

CameraPrePostFunc _CameraFunctions::post_func

Function called after each camera operation.

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

◆ pre_func

CameraPrePostFunc _CameraFunctions::pre_func

Function called before each camera operation.

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

◆ reserved1

void* _CameraFunctions::reserved1

reserved for future use

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

◆ reserved2

void* _CameraFunctions::reserved2

reserved for future use

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

◆ reserved3

void* _CameraFunctions::reserved3

reserved for future use

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

◆ reserved4

void* _CameraFunctions::reserved4

reserved for future use

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

◆ reserved5

void* _CameraFunctions::reserved5

reserved for future use

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

◆ reserved6

void* _CameraFunctions::reserved6

reserved for future use

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

◆ reserved7

void* _CameraFunctions::reserved7

reserved for future use

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

◆ reserved8

void* _CameraFunctions::reserved8

reserved for future use

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

◆ set_config

CameraSetConfigFunc _CameraFunctions::set_config

Called after a configuration was changed.

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

Referenced by camera_init(), gp_camera_set_config(), and gp_camera_set_single_config().

◆ set_single_config

CameraSetSingleConfigFunc _CameraFunctions::set_single_config

Called for setting a single configuration widget.

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

Referenced by gp_camera_set_single_config().

◆ summary

CameraSummaryFunc _CameraFunctions::summary

Give a summary about the current camera status, translated.

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

Referenced by camera_init(), and gp_camera_get_summary().

◆ trigger_capture

CameraTriggerCaptureFunc _CameraFunctions::trigger_capture

Remote control the camera to trigger capture.

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

Referenced by gp_camera_trigger_capture().

◆ wait_for_event

CameraWaitForEvent _CameraFunctions::wait_for_event

Wait for a specific event from the camera.

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

Referenced by gp_camera_wait_for_event().


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