1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
/** Version parsing utils */
/**
* Struct representing a version string from an ASDF file
*
* This is used forthe ASDF format version, ASDF Standard version,
* tag versions, etc. where applicable.
*/
typedef struct asdf_version_t;
/**
* Parse a version string into an `asdf_version_t`
*
* If the version is not in MAJOR.MINOR.PATCH format an `asdf_version_t *` is
* still returned but with the full version string copied verbatim into the
* ``version`` field, and the major/minor/patch fields set to 0.
*
* The `asdf_version_t` allocated by this function must be freed with
* `asdf_version_destroy`.
*
* :param version: The version string to parse
* :return: A heap-allocated `asdf_version_t` into which the version was parsed
*/
ASDF_EXPORT asdf_version_t *;
/**
* Deep copy of an `asdf_version_t *`
*
* :param version: The `asdf_version_t *` to copy -- all fields are deep-copied
* as well
*/
ASDF_EXPORT asdf_version_t *;
/**
* Free memory allocated for an `asdf_version_t` by `asdf_version_parse`
*
* :param version: The `asdf_version_t *` to free; the memory it points to is
* also zeroed out.
*/
ASDF_EXPORT void ;
/* ASDF_VERSION_H */