Open SCAP Library: oval_version.h Source File

Open SCAP Library

- Main Page
- Related Pages
- Modules
- Data Structures
- Files

- File List
- Globals

oval_version.h
1 #ifndef OVAL_VERSION_H
2 #define OVAL_VERSION_H
3
4 #include <stdint.h>
5 #include <stddef.h>
6
7 typedef uint32_t oval_version_t;
8
9 #define OVAL_VERSION_INVALID 0
10
18 oval_version_t oval_version_from_cstr(const char *version_str);
19
20 #define OVAL_VERSION(v) oval_version_from_cstr(#v)
21
30 int oval_version_to_cstr(oval_version_t version, char *buffer, size_t buflen);
31
35 uint8_t oval_version_major(oval_version_t version);
36
40 uint8_t oval_version_minor(oval_version_t version);
41
45 uint8_t oval_version_patch(oval_version_t version);
46
54 int oval_version_cmp(oval_version_t v1, oval_version_t v2);
55
56 #endif /* OVAL_VERSION_H */