RTEMS
version.h
Go to the documentation of this file.
1 
7 /*
8  * Copyright (C) 2017.
9  * Chris Johns <chrisj@rtems.org>
10  *
11  * The license and distribution terms for this file may be
12  * found in the file LICENSE in this distribution or at
13  * http://www.rtems.org/license/LICENSE.
14  */
15 
16 #ifndef _RTEMS_VERSION_H
17 #define _RTEMS_VERSION_H
18 
19 #include <stdbool.h>
20 
21 #ifdef __cplusplus
22 extern "C" {
23 #endif
24 
40 const char *rtems_version( void );
41 
47 int rtems_version_major( void );
48 
54 int rtems_version_minor( void );
55 
61 int rtems_version_revision( void );
62 
75 const char *rtems_version_control_key( void );
76 
83 static inline bool rtems_version_control_key_is_valid( const char *key )
84 {
85  return key[ 0 ] != '\0';
86 }
87 
93 const char *rtems_board_support_package( void );
94 
97 #ifdef __cplusplus
98 }
99 #endif
100 
101 #endif
102 /* end of include file */
const char * rtems_version_control_key(void)
Returns the version control key for the current version of code that has been built.
Definition: version.c:56
static bool rtems_version_control_key_is_valid(const char *key)
Returns true, if the version control key is valid, otherwise false.
Definition: version.h:83
const char * rtems_board_support_package(void)
Returns the board support package name.
Definition: rtems-version.c:33
const char * rtems_version(void)
Returns the version string.
Definition: version.c:32
int rtems_version_revision(void)
Returns the version&#39;s revision number.
Definition: version.c:51
int rtems_version_minor(void)
Returns the version&#39;s minor number.
Definition: version.c:46
int rtems_version_major(void)
Returns the version&#39;s major number.
Definition: version.c:41