diff options
author | Chris Johns <chrisj@rtems.org> | 2016-04-03 15:37:01 +1000 |
---|---|---|
committer | Chris Johns <chrisj@rtems.org> | 2016-04-03 15:37:01 +1000 |
commit | 0c0b2d4b529817f4561088c61827af797eee6def (patch) | |
tree | 9f174317a926452c0d2b535aec7ae9e21bc65bd4 /rtemstoolkit/rld-rtems.h | |
parent | dfa2468af6a5b306231467a7a1e22cddb2ab576e (diff) |
rtemstoolkit: Add version number parsing to get major, minor, revision.
Add support to return the major, minor or revision numbers as numbers.
Diffstat (limited to 'rtemstoolkit/rld-rtems.h')
-rw-r--r-- | rtemstoolkit/rld-rtems.h | 15 |
1 files changed, 15 insertions, 0 deletions
diff --git a/rtemstoolkit/rld-rtems.h b/rtemstoolkit/rld-rtems.h index 04305ce..a682988 100644 --- a/rtemstoolkit/rld-rtems.h +++ b/rtemstoolkit/rld-rtems.h @@ -52,6 +52,21 @@ namespace rld const std::string version (); /** + * Get the RTEMS major version number. + */ + uint64_t version_major (); + + /** + * Get the RTEMS minor version number. + */ + uint64_t version_minor (); + + /** + * Get the RTEMS revision version number. + */ + uint64_t version_revision (); + + /** * Return the arch/bsp string. */ const std::string arch_bsp (); |