Open SCAP Library

oval_version.h

00001 #ifndef OVAL_VERSION_H
00002 #define OVAL_VERSION_H
00003 
00004 #include <stdint.h>
00005 #include <stddef.h>
00006 #include <oscap.h>
00007 
00008 typedef uint32_t oval_version_t;
00009 
00010 #define OVAL_VERSION_INVALID 0
00011 
00019 OSCAP_DEPRECATED(oval_version_t oval_version_from_cstr(const char *version_str));
00020 
00021 #define OVAL_VERSION(v) oval_version_from_cstr(#v)
00022 
00031 OSCAP_DEPRECATED(int oval_version_to_cstr(oval_version_t version, char *buffer, size_t buflen));
00032 
00036 OSCAP_DEPRECATED(uint8_t oval_version_major(oval_version_t version));
00037 
00041 OSCAP_DEPRECATED(uint8_t oval_version_minor(oval_version_t version));
00042 
00046 OSCAP_DEPRECATED(uint8_t oval_version_patch(oval_version_t version));
00047 
00055 OSCAP_DEPRECATED(int oval_version_cmp(oval_version_t v1, oval_version_t v2));
00056 
00057 #endif /* OVAL_VERSION_H */
 All Data Structures Files Functions Variables Typedefs Enumerations Enumerator Defines