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 #include <oscap.h>
7
8 typedef uint32_t oval_version_t;
9
10 #define OVAL_VERSION_INVALID 0
11
19 OSCAP_DEPRECATED(oval_version_t oval_version_from_cstr(const char *version_str));
20
21 #define OVAL_VERSION(v) oval_version_from_cstr(#v)
22
31 OSCAP_DEPRECATED(int oval_version_to_cstr(oval_version_t version, char *buffer, size_t buflen));
32
36 OSCAP_DEPRECATED(uint8_t oval_version_major(oval_version_t version));
37
41 OSCAP_DEPRECATED(uint8_t oval_version_minor(oval_version_t version));
42
46 OSCAP_DEPRECATED(uint8_t oval_version_patch(oval_version_t version));
47
55 OSCAP_DEPRECATED(int oval_version_cmp(oval_version_t v1, oval_version_t v2));
56
57 #endif /* OVAL_VERSION_H */
oscap.h
General OpenScap functions and types.
OSCAP_DEPRECATED
#define OSCAP_DEPRECATED(func)
This macro will warn, when a deprecated function is used.
Definition: oscap.h:50