1 #ifndef PROPERTIES_H
2 #define PROPERTIES_H
3
4
5
6
7
8
9
10
11
12 #ifndef CHDK_MODULE_CODE
13
14
15 #if CAM_PROPSET == 13
16 #include "propset13.h"
17 #elif CAM_PROPSET == 12
18 #include "propset12.h"
19 #elif CAM_PROPSET == 11
20 #include "propset11.h"
21 #elif CAM_PROPSET == 10
22 #include "propset10.h"
23 #elif CAM_PROPSET == 9
24 #include "propset9.h"
25 #elif CAM_PROPSET == 8
26 #include "propset8.h"
27 #elif CAM_PROPSET == 7
28 #include "propset7.h"
29 #elif CAM_PROPSET == 6
30 #include "propset6.h"
31 #elif CAM_PROPSET == 5
32 #include "propset5.h"
33 #elif CAM_PROPSET == 4
34 #include "propset4.h"
35 #elif CAM_PROPSET == 3
36 #include "propset3.h"
37 #elif CAM_PROPSET == 2
38 #include "propset2.h"
39 #elif CAM_PROPSET == 1
40 #include "propset1.h"
41 #else
42 #error unknown camera processor
43 #endif
44
45 #endif
46
47 extern long get_property_case(long id, void *buf, long bufsize);
48 extern long set_property_case(long id, void *buf, long bufsize);
49
50 extern void shooting_set_prop(int id, int v);
51 extern int shooting_get_prop(int id);
52
53 extern short get_parameter_size(long id);
54 extern long get_parameter_data(long id, void *buf, long bufsize);
55 extern long set_parameter_data(long id, void *buf, long bufsize);
56
57 extern int get_flash_params_count(void);
58
59 extern short get_uiprop_value(unsigned long id);
60 extern int uiprop_count;
61
62 #endif