Adaptive Framework  0.9.0
All Data Structures Files Functions Variables Typedefs Enumerations Enumerator Macros Modules Pages
afw_version.c
Go to the documentation of this file.
1 // See the 'COPYING' file in the project root for licensing information.
2 /*
3  * Adaptive Framework
4  *
5  * Copyright (c) 2010-2023 Clemson University
6  *
7  */
8 
14 #include "afw_internal.h"
15 #include "afw_version_info.h"
16 
17 static const afw_utf8_t impl_version_string =
18 AFW_UTF8_LITERAL(AFW_VERSION_STRING);
19 
20 /* Return AFW_VERSION_HEX. */
21 AFW_DEFINE(unsigned int) afw_version()
22 {
23  return AFW_VERSION_HEX;
24 }
25 
26 /* Return Adaptive Framework version string. */
28 {
29  return &impl_version_string;
30 }
31 
32 /* Return Adaptive Framework version string as utf8_z. */
34 {
35  return impl_version_string.s;
36 }
37 
38 /* Version check */
39 AFW_DEFINE(const afw_utf8_z_t *) afw_version_check(unsigned int hex)
40 {
41  /* Add checks and throw errors as needed. */
42  return NULL;
43 }
AFW_DEFINE(const afw_object_t *)
Adaptive Framework Core Internal.
Adaptive Framework Version (afw_) header.
#define AFW_UTF8_LITERAL(A_STRING)
String literal initializer.
Definition: afw_common.h:582
afw_utf8_octet_t afw_utf8_z_t
NFC normalized UTF-8 null terminated string.
Definition: afw_common.h:523
const afw_utf8_t * afw_version_string()
const afw_utf8_z_t * afw_version_check(unsigned int version)
Version check.
unsigned int afw_version()
const afw_utf8_z_t * afw_version_string_z()
NFC normalized UTF-8 string.
Definition: afw_common.h:545