diff options
| author | Aldrik Ramaekers <aldrik.ramaekers@protonmail.com> | 2020-02-22 19:56:12 +0100 |
|---|---|---|
| committer | Aldrik Ramaekers <aldrik.ramaekers@protonmail.com> | 2020-02-22 19:56:12 +0100 |
| commit | 32920988ed16940a45f774a9c6283abdc0408a6a (patch) | |
| tree | e44439ed242e1d39b8bd1c4199f26c677244bc5a /src/licensing.h | |
| parent | 100bef3abb32463aea3419332359e16174ebbeeb (diff) | |
licensing
Diffstat (limited to 'src/licensing.h')
| -rw-r--r-- | src/licensing.h | 40 |
1 files changed, 24 insertions, 16 deletions
diff --git a/src/licensing.h b/src/licensing.h index 5255ffd..471dcd9 100644 --- a/src/licensing.h +++ b/src/licensing.h @@ -1,17 +1,25 @@ -/* -* BSD 2-Clause “Simplified” License -* Copyright (c) 2019, Aldrik Ramaekers, aldrik.ramaekers@protonmail.com -* All rights reserved. -*/ - -#ifndef INCLUDE_LICENSING -#define INCLUDE_LICENSING - -// NOTE DO NOT TOUCH THIS! -char license_key[18] = { "[LICENSELOCATION]" }; -// NOTE DO NOT TOUCH THIS! - -bool license_is_valid = true; -void validate_license(); - +/*
+* BSD 2-Clause “Simplified” License
+* Copyright (c) 2019, Aldrik Ramaekers, aldrik.ramaekers@protonmail.com
+* All rights reserved.
+*/
+
+#ifndef INCLUDE_LICENSING
+#define INCLUDE_LICENSING
+
+typedef enum t_license_status
+{
+ LICENSE_STATUS_VALID = 1,
+ LICENSE_STATUS_INVALID = 2,
+ LICENSE_STATUS_TOO_MANY_USERS = 3,
+} license_status;
+
+// NOTE DO NOT TOUCH THIS!
+char license_key[18] = { "[LICENSELOCATION]" };
+// NOTE DO NOT TOUCH THIS!
+
+license_status global_license_status = LICENSE_STATUS_VALID;
+void validate_license();
+bool license_check_status();
+
#endif
\ No newline at end of file |
