RTEMS 5.2
All Data Structures Files Functions Variables Typedefs Enumerations Enumerator Macros Modules Pages
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
22extern "C" {
23#endif
24
61const char *rtems_version( void );
62
68int rtems_version_major( void );
69
75int rtems_version_minor( void );
76
82int rtems_version_revision( void );
83
96const char *rtems_version_control_key( void );
97
104static inline bool rtems_version_control_key_is_valid( const char *key )
105{
106 return key[ 0 ] != '\0';
107}
108
114const char *rtems_board_support_package( void );
115
118#ifdef __cplusplus
119}
120#endif
121
122#endif
123/* end of include file */
int rtems_version_major(void)
Returns the version's major number.
Definition: version.c:41
const char * rtems_version(void)
Returns the version string.
Definition: version.c:32
int rtems_version_revision(void)
Returns the version's revision number.
Definition: version.c:51
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
const char * rtems_board_support_package(void)
Returns the board support package name.
Definition: rtems-version.c:32
int rtems_version_minor(void)
Returns the version's minor number.
Definition: version.c:46