From 32920988ed16940a45f774a9c6283abdc0408a6a Mon Sep 17 00:00:00 2001 From: Aldrik Ramaekers Date: Sat, 22 Feb 2020 19:56:12 +0100 Subject: licensing --- src/licensing.h | 40 ++++++++++++++++++++++++---------------- 1 file changed, 24 insertions(+), 16 deletions(-) (limited to 'src/licensing.h') 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 -- cgit v1.2.3-70-g09d2