1 #ifndef VERSIONS_H
2 #define VERSIONS_H
3
4
5
6
7
8
9
10 typedef struct
11 {
12 unsigned short major;
13 unsigned short minor;
14 } _version_t;
15
16
17 typedef struct
18 {
19 short major;
20 short minor;
21 short maintenance;
22 short revision;
23 } _chdk_version_t;
24
25 extern _chdk_version_t chdk_version, script_version;
26
27
28
29 extern void parse_version(_chdk_version_t *ver, const char *build, const char *rev);
30 extern int cmp_chdk_version(_chdk_version_t ver1, _chdk_version_t ver2);
31 extern int chk_api_version(_version_t api_ver, _version_t req_ver);
32
33
34
35 #define ANY_VERSION {0,0}
36
37
38
39 #endif