Merge branch 'mueller/version-getter' into mueller/master
This commit is contained in:
commit
3b497dbb8d
@ -1,3 +1,7 @@
|
||||
target_sources(${LIB_FSFW_NAME} PRIVATE
|
||||
version.cpp
|
||||
)
|
||||
|
||||
# Core
|
||||
|
||||
add_subdirectory(action)
|
||||
|
8
src/fsfw/version.cpp
Normal file
8
src/fsfw/version.cpp
Normal file
@ -0,0 +1,8 @@
|
||||
#include "version.h"
|
||||
#include "fsfw/FSFWVersion.h"
|
||||
|
||||
void fsfw::getVersion(Version& v) {
|
||||
v.major = FSFW_VERSION;
|
||||
v.minor = FSFW_SUBVERSION;
|
||||
v.revision = FSFW_REVISION;
|
||||
}
|
18
src/fsfw/version.h
Normal file
18
src/fsfw/version.h
Normal file
@ -0,0 +1,18 @@
|
||||
#ifndef FSFW_SRC_FSFW_VERSION_H_
|
||||
#define FSFW_SRC_FSFW_VERSION_H_
|
||||
|
||||
#include <cstdint>
|
||||
|
||||
namespace fsfw {
|
||||
|
||||
struct Version {
|
||||
uint32_t major = 0;
|
||||
uint32_t minor = 0;
|
||||
uint32_t revision = 0;
|
||||
};
|
||||
|
||||
void getVersion(Version& version);
|
||||
|
||||
}
|
||||
|
||||
#endif /* FSFW_SRC_FSFW_VERSION_H_ */
|
Loading…
Reference in New Issue
Block a user