From 38ce026790f2ea766b0aebfc24f763d7d8292cba Mon Sep 17 00:00:00 2001 From: Mattias Aabmets Date: Sat, 19 Oct 2024 16:20:45 +0300 Subject: [PATCH] Relocated version number definition into version.h file, added license headers --- dpapi-cli/dpapi-cli.cpp | 16 +++++++++++++--- dpapi-cli/version.h | 17 +++++++++++++++++ 2 files changed, 30 insertions(+), 3 deletions(-) create mode 100644 dpapi-cli/version.h diff --git a/dpapi-cli/dpapi-cli.cpp b/dpapi-cli/dpapi-cli.cpp index 585347d..e8d7153 100644 --- a/dpapi-cli/dpapi-cli.cpp +++ b/dpapi-cli/dpapi-cli.cpp @@ -1,4 +1,15 @@ -#include +/* + * MIT License + * + * Copyright (c) 2024, Mattias Aabmets + * + * The contents of this file are subject to the terms and conditions defined in the License. + * You may not use, modify, or distribute this file except in compliance with the License. + * + * SPDX-License-Identifier: MIT + */ + +#include #include #include #include @@ -6,10 +17,9 @@ #include #include #include +#include "version.h" -std::string PROGRAM_VERSION = "1.0.0"; - enum Scope { CurrentUser, LocalMachine diff --git a/dpapi-cli/version.h b/dpapi-cli/version.h new file mode 100644 index 0000000..a24df83 --- /dev/null +++ b/dpapi-cli/version.h @@ -0,0 +1,17 @@ +/* + * MIT License + * + * Copyright (c) 2024, Mattias Aabmets + * + * The contents of this file are subject to the terms and conditions defined in the License. + * You may not use, modify, or distribute this file except in compliance with the License. + * + * SPDX-License-Identifier: MIT + */ + +#ifndef VERSION_H +#define VERSION_H + +#define PROGRAM_VERSION "1.0.1" + +#endif // VERSION_H \ No newline at end of file