Debian Codegraph @

gphoto_driver.h

raw symbols SCIP
1 /*******************************************************************************
2 Copyright(c) 2009 Geoffrey Hausheer. All rights reserved.
3 Copyright(c) 2012-2016 Jasem Mutlaq. All rights reserved.
4
5 This program is free software; you can redistribute it and/or modify it
6 under the terms of the GNU General Public License as published by the Free
7 Software Foundation; either version 2 of the License, or (at your option)
8 any later version.
9
10 This program is distributed in the hope that it will be useful, but WITHOUT
11 ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
12 FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for
13 more details.
14
15 You should have received a copy of the GNU General Public License along with
16 this program; if not, write to the Free Software Foundation, Inc., 59
17 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
18
19 The full GNU General Public License is included in this distribution in the
20 file called LICENSE.
21 *******************************************************************************/
22
23 #pragma once
24
25 #include <gphoto2/gphoto2.h>
26
27 #define GP_UPLOAD_CLIENTcxx . . $ `gphoto_driver.h:27:9`! 0
28 #define GP_UPLOAD_SDCARDcxx . . $ `gphoto_driver.h:28:9`! 1
29 #define GP_UPLOAD_ALLcxx . . $ `gphoto_driver.h:29:9`! 2
30
31 typedef enumcxx . . $ $anonymous_type_77ac1d1567355088_0#
32 {
33 SAVE_IMAGEcxx . . $ SAVE_IMAGE.,
34 DELETE_IMAGEcxx . . $ DELETE_IMAGE.,
35 IGNORE_IMAGEcxx . . $ IGNORE_IMAGE.
36
37 } CameraImageHandlingcxx . . $ CameraImageHandling#;
38
39 typedef structcxx . . $ $anonymous_type_77ac1d1567355088_1#
40 {
41 CameraWidget *widgetcxx . . $ $anonymous_type_77ac1d1567355088_1#widget.;
42 CameraWidgetType typecxx . . $ $anonymous_type_77ac1d1567355088_1#type.;
43 const char *namecxx . . $ $anonymous_type_77ac1d1567355088_1#name.;
44 const char *parentcxx . . $ $anonymous_type_77ac1d1567355088_1#parent.;
45 int readonlycxx . . $ $anonymous_type_77ac1d1567355088_1#readonly.;
46 unioncxx . . $ $anonymous_type_77ac1d1567355088_1#$anonymous_type_2#
47 {
48 int togglecxx . . $ $anonymous_type_77ac1d1567355088_1#$anonymous_type_2#toggle.;
49 char indexcxx . . $ $anonymous_type_77ac1d1567355088_1#$anonymous_type_2#index.;
50 char *textcxx . . $ $anonymous_type_77ac1d1567355088_1#$anonymous_type_2#text.;
51 float numcxx . . $ $anonymous_type_77ac1d1567355088_1#$anonymous_type_2#num.;
52 int datecxx . . $ $anonymous_type_77ac1d1567355088_1#$anonymous_type_2#date.;
53 } valuecxx . . $ $anonymous_type_77ac1d1567355088_1#value.;
54 int choice_cntcxx . . $ $anonymous_type_77ac1d1567355088_1#choice_cnt.;
55 char **choicescxx . . $ $anonymous_type_77ac1d1567355088_1#choices.;
56 float mincxx . . $ $anonymous_type_77ac1d1567355088_1#min.;
57 float maxcxx . . $ $anonymous_type_77ac1d1567355088_1#max.;
58 float stepcxx . . $ $anonymous_type_77ac1d1567355088_1#step.;
59 } gphoto_widgetcxx . . $ gphoto_widget#;
60
61 // EOS Release buttons settings
62 enumcxx . . $ $anonymous_type_77ac1d1567355088_3#
63 {
64 EOS_NONEcxx . . $ EOS_NONE.,
65 EOS_PRESS_HALFcxx . . $ EOS_PRESS_HALF.,
66 EOS_PRESS_FULLcxx . . $ EOS_PRESS_FULL.,
67 EOS_RELEASE_HALFcxx . . $ EOS_RELEASE_HALF.,
68 EOS_RELEASE_FULLcxx . . $ EOS_RELEASE_FULL.,
69 EOS_IMMEDIATEcxx . . $ EOS_IMMEDIATE.,
70 EOS_PRESS_1cxx . . $ EOS_PRESS_1.,
71 EOS_PRESS_2cxx . . $ EOS_PRESS_2.,
72 EOS_PRESS_3cxx . . $ EOS_PRESS_3.,
73 EOS_RELEASE_1cxx . . $ EOS_RELEASE_1.,
74 EOS_RELEASE_2cxx . . $ EOS_RELEASE_2.,
75 EOS_RELEASE_3cxx . . $ EOS_RELEASE_3.
76 };
77
78 struct _gphoto_drivercxx . . $ _gphoto_driver#;
79 typedef struct _gphoto_drivercxx . . $ _gphoto_driver# gphoto_drivercxx . . $ gphoto_driver#;
80
81 struct _gphoto_widget_listcxx . . $ _gphoto_widget_list#;
82 typedef struct _gphoto_widget_listcxx . . $ _gphoto_widget_list# gphoto_widget_listcxx . . $ gphoto_widget_list#;
83
84 int gphoto_start_exposurecxx . . $ gphoto_start_exposure(576ee3ebabff1c5f).(gphoto_drivercxx . . $ gphoto_driver# *gphoto, uint32_tcxx . . $ uint32_t# exptime_usec, int mirror_lock);
85 int gphoto_read_exposurecxx . . $ gphoto_read_exposure(b523e3c260a461ab).(gphoto_drivercxx . . $ gphoto_driver# *gphoto);
86 int gphoto_abort_exposurecxx . . $ gphoto_abort_exposure(b523e3c260a461ab).(gphoto_drivercxx . . $ gphoto_driver# *gphoto);
87 int gphoto_read_exposure_fdcxx . . $ gphoto_read_exposure_fd(5ac28794fb2ef32e).(gphoto_drivercxx . . $ gphoto_driver# *gphoto, int fd);
88 void gphoto_set_upload_settingscxx . . $ gphoto_set_upload_settings(2c7aa90353b17be1).(gphoto_drivercxx . . $ gphoto_driver# *gphoto, int setting);
89 void gphoto_get_minmax_exposurecxx . . $ gphoto_get_minmax_exposure(f17f302eb92dfc1c).(gphoto_drivercxx . . $ gphoto_driver# *gphoto, double *min, double *max);
90 char **gphoto_get_formatscxx . . $ gphoto_get_formats(6be6514215ca1fe8).(gphoto_drivercxx . . $ gphoto_driver# *gphoto, int *cnt);
91 char **gphoto_get_isocxx . . $ gphoto_get_iso(6be6514215ca1fe8).(gphoto_drivercxx . . $ gphoto_driver# *gphoto, int *cnt);
92 char **gphoto_get_exposure_presetscxx . . $ gphoto_get_exposure_presets(6be6514215ca1fe8).(gphoto_drivercxx . . $ gphoto_driver# *gphoto, int *cnt);
93 void gphoto_set_isocxx . . $ gphoto_set_iso(2c7aa90353b17be1).(gphoto_drivercxx . . $ gphoto_driver# *gphoto, int iso);
94 void gphoto_set_formatcxx . . $ gphoto_set_format(2c7aa90353b17be1).(gphoto_drivercxx . . $ gphoto_driver# *gphoto, int format);
95 int gphoto_get_format_currentcxx . . $ gphoto_get_format_current(b523e3c260a461ab).(gphoto_drivercxx . . $ gphoto_driver# *gphoto);
96 int gphoto_get_iso_currentcxx . . $ gphoto_get_iso_current(b523e3c260a461ab).(gphoto_drivercxx . . $ gphoto_driver# *gphoto);
97 gphoto_drivercxx . . $ gphoto_driver# *gphoto_opencxx . . $ gphoto_open(713a62c300b9aa2d).(Camera *camera, GPContext *context, const char *model, const char *port,
98 const char *shutter_release_port);
99 int gphoto_closecxx . . $ gphoto_close(b523e3c260a461ab).(gphoto_drivercxx . . $ gphoto_driver# *gphoto);
100 void gphoto_get_buffercxx . . $ gphoto_get_buffer(fe1f6fd562d3a351).(gphoto_drivercxx . . $ gphoto_driver# *gphoto, const char **buffer, unsigned long *size);
101 void gphoto_free_buffercxx . . $ gphoto_free_buffer(9b129a562d4ea52a).(gphoto_drivercxx . . $ gphoto_driver# *gphoto);
102 const char *gphoto_get_file_extensioncxx . . $ gphoto_get_file_extension(8c47a02a131dd2ea).(gphoto_drivercxx . . $ gphoto_driver# *gphoto);
103 void gphoto_show_optionscxx . . $ gphoto_show_options(9b129a562d4ea52a).(gphoto_drivercxx . . $ gphoto_driver# *gphoto);
104 gphoto_widget_listcxx . . $ gphoto_widget_list# *gphoto_find_all_widgetscxx . . $ gphoto_find_all_widgets(363ba56ee51ce3a6).(gphoto_drivercxx . . $ gphoto_driver# *gphoto);
105 gphoto_widgetcxx . . $ gphoto_widget# *gphoto_get_widget_infocxx . . $ gphoto_get_widget_info(45bdfb2de5803d4a).(gphoto_drivercxx . . $ gphoto_driver# *gphoto, gphoto_widget_listcxx . . $ gphoto_widget_list# **iter);
106 int gphoto_set_widget_numcxx . . $ gphoto_set_widget_num(cf1ae01f04473e3f).(gphoto_drivercxx . . $ gphoto_driver# *gphoto, gphoto_widgetcxx . . $ gphoto_widget# *widget, float value);
107 int gphoto_set_widget_textcxx . . $ gphoto_set_widget_text(4a675e902865a37a).(gphoto_drivercxx . . $ gphoto_driver# *gphoto, gphoto_widgetcxx . . $ gphoto_widget# *widget, const char *str);
108 int gphoto_read_widgetcxx . . $ gphoto_read_widget(10fa099c640d98fc).(gphoto_widgetcxx . . $ gphoto_widget# *widget);
109 int gphoto_widget_changedcxx . . $ gphoto_widget_changed(10fa099c640d98fc).(gphoto_widgetcxx . . $ gphoto_widget# *widget);
110 int gphoto_get_dimensionscxx . . $ gphoto_get_dimensions(5ae4f5d68096af1c).(gphoto_drivercxx . . $ gphoto_driver# *gphoto, int *width, int *height);
111 int gphoto_auto_focuscxx . . $ gphoto_auto_focus(437ed32894ce2eb9).(gphoto_drivercxx . . $ gphoto_driver# *gphoto, char *errMsg);
112 int gphoto_manual_focuscxx . . $ gphoto_manual_focus(8459632af39757a1).(gphoto_drivercxx . . $ gphoto_driver# *gphoto, int speed, char *errMsg);
113 bool gphoto_can_focuscxx . . $ gphoto_can_focus(4d0e1335dd5bcf3d).(gphoto_drivercxx . . $ gphoto_driver# *gphoto);
114 int gphoto_capture_previewcxx . . $ gphoto_capture_preview(f018cdabc793e4c6).(gphoto_drivercxx . . $ gphoto_driver# *gphoto, CameraFile *previewFile, char *errMsg);
115 int gphoto_stop_previewcxx . . $ gphoto_stop_preview(b523e3c260a461ab).(gphoto_drivercxx . . $ gphoto_driver# *gphoto);
116 int gphoto_start_previewcxx . . $ gphoto_start_preview(b523e3c260a461ab).(gphoto_drivercxx . . $ gphoto_driver# *gphoto);
117 int gphoto_get_capture_targetcxx . . $ gphoto_get_capture_target(95c67d5cfbd521bb).(gphoto_drivercxx . . $ gphoto_driver# *gphoto, int *capture_target);
118 int gphoto_set_capture_targetcxx . . $ gphoto_set_capture_target(5ac28794fb2ef32e).(gphoto_drivercxx . . $ gphoto_driver# *gphoto, int capture_target);
119 void gphoto_set_debugcxx . . $ gphoto_set_debug(85c52e162fed56f9).(const char *name);
120 int gphoto_mirrorlockcxx . . $ gphoto_mirrorlock(5ac28794fb2ef32e).(gphoto_drivercxx . . $ gphoto_driver# *gphoto, int msec);
121 const char *gphoto_get_manufacturercxx . . $ gphoto_get_manufacturer(8c47a02a131dd2ea).(gphoto_drivercxx . . $ gphoto_driver# *gphoto);
122 const char *gphoto_get_modelcxx . . $ gphoto_get_model(8c47a02a131dd2ea).(gphoto_drivercxx . . $ gphoto_driver# *gphoto);
123 int gphoto_handle_sdcard_imagecxx . . $ gphoto_handle_sdcard_image(5e9df73f6ba0a9a6).(gphoto_drivercxx . . $ gphoto_driver# *gphoto, CameraImageHandlingcxx . . $ CameraImageHandling# handling);
124 bool gphoto_supports_temperaturecxx . . $ gphoto_supports_temperature(4d0e1335dd5bcf3d).(gphoto_drivercxx . . $ gphoto_driver# *gphoto);
125 float gphoto_get_last_sensor_temperaturecxx . . $ gphoto_get_last_sensor_temperature(d3c9917e94100073).(gphoto_drivercxx . . $ gphoto_driver# *gphoto);
126 void gphoto_force_bulbcxx . . $ gphoto_force_bulb(de021051a0f31345).(gphoto_drivercxx . . $ gphoto_driver# *gphoto, bool enabled);
127 void gphoto_set_view_findercxx . . $ gphoto_set_view_finder(de021051a0f31345).(gphoto_drivercxx . . $ gphoto_driver# *gphoto, bool enabled);