1 /**************************************************************************/
2 /* */
3 /* Copyright (c) Microsoft Corporation. All rights reserved. */
4 /* */
5 /* This software is licensed under the Microsoft Software License */
6 /* Terms for Microsoft Azure RTOS. Full text of the license can be */
7 /* found in the LICENSE file at https://aka.ms/AzureRTOS_EULA */
8 /* and in the root directory of this software. */
9 /* */
10 /**************************************************************************/
11
12
13 /**************************************************************************/
14 /**************************************************************************/
15 /** */
16 /** GUIX Component */
17 /** */
18 /** System Management (System) */
19 /** */
20 /**************************************************************************/
21
22 #define GX_SOURCE_CODE
23
24
25 /* Include necessary system files. */
26
27 #include "gx_api.h"
28 #include "gx_system.h"
29
30 /**************************************************************************/
31 /* */
32 /* FUNCTION RELEASE */
33 /* */
34 /* _gxe_system_version_string_get PORTABLE C */
35 /* 6.1 */
36 /* AUTHOR */
37 /* */
38 /* Kenneth Maxwell, Microsoft Corporation */
39 /* */
40 /* DESCRIPTION */
41 /* */
42 /* This function checks for errors in system version string get call. */
43 /* */
44 /* INPUT */
45 /* */
46 /* return_string Pointer to return string */
47 /* pointer */
48 /* */
49 /* OUTPUT */
50 /* */
51 /* VOID */
52 /* */
53 /* CALLS */
54 /* */
55 /* _gx_system_version_string_get Actual system version string */
56 /* get call */
57 /* */
58 /* CALLED BY */
59 /* */
60 /* Application Code */
61 /* */
62 /* RELEASE HISTORY */
63 /* */
64 /* DATE NAME DESCRIPTION */
65 /* */
66 /* 05-19-2020 Kenneth Maxwell Initial Version 6.0 */
67 /* 09-30-2020 Kenneth Maxwell Modified comment(s), */
68 /* resulting in version 6.1 */
69 /* */
70 /**************************************************************************/
71 #if defined(GX_ENABLE_DEPRECATED_STRING_API)
_gxe_system_version_string_get(GX_CHAR ** return_string)72 UINT _gxe_system_version_string_get(GX_CHAR **return_string)
73 {
74 UINT status;
75
76 /* Check for invalid pointer. */
77 if (return_string == GX_NULL)
78 {
79 return(GX_PTR_ERROR);
80 }
81
82 status = _gx_system_version_string_get(return_string);
83
84 /* Return status. */
85 return(status);
86 }
87 #endif
88
89 /**************************************************************************/
90 /* */
91 /* FUNCTION RELEASE */
92 /* */
93 /* _gxe_system_version_string_get_ext PORTABLE C */
94 /* 6.1 */
95 /* AUTHOR */
96 /* */
97 /* Kenneth Maxwell, Microsoft Corporation */
98 /* */
99 /* DESCRIPTION */
100 /* */
101 /* This function checks for errors in new system version string get */
102 /* call. */
103 /* */
104 /* INPUT */
105 /* */
106 /* return_string Pointer to return string */
107 /* pointer */
108 /* */
109 /* OUTPUT */
110 /* */
111 /* VOID */
112 /* */
113 /* CALLS */
114 /* */
115 /* _gx_system_version_string_get_ext Actual system version string */
116 /* get call */
117 /* */
118 /* CALLED BY */
119 /* */
120 /* Application Code */
121 /* */
122 /* RELEASE HISTORY */
123 /* */
124 /* DATE NAME DESCRIPTION */
125 /* */
126 /* 05-19-2020 Kenneth Maxwell Initial Version 6.0 */
127 /* 09-30-2020 Kenneth Maxwell Modified comment(s), */
128 /* resulting in version 6.1 */
129 /* */
130 /**************************************************************************/
_gxe_system_version_string_get_ext(GX_STRING * return_string)131 UINT _gxe_system_version_string_get_ext(GX_STRING *return_string)
132 {
133 UINT status;
134
135 /* Check for invalid pointer. */
136 if (return_string == GX_NULL)
137 {
138 return(GX_PTR_ERROR);
139 }
140
141 status = _gx_system_version_string_get_ext(return_string);
142
143 /* Return status. */
144 return(status);
145 }
146
147