X-Git-Url: http://git.ithinksw.org/MenuTunes.git/blobdiff_plain/87ff2a62c7bd424aa11c1b7854d33b58ee4daf9c..b837b70f50ce4d33628f406380c447ff8e70d85a:/validate.h diff --git a/validate.h b/validate.h index 4e5f639..bfc3627 100755 --- a/validate.h +++ b/validate.h @@ -11,6 +11,7 @@ extern "C" { #endif + typedef unsigned char* eSellerate_String; typedef short eSellerate_DaysSince2000; @@ -27,6 +28,19 @@ eSellerate_DaysSince2000 eSellerate_ValidateSerialNumber ( * if invalid: 0 */ +eSellerate_DaysSince2000 eWeb_ValidateSerialNumber ( + const char *serialNumber, /* "C" string */ + const char *nameBasedKey, /* "C" string (nil if unneeded) */ + const char *extraDataKey, /* "C" string (nil if unneeded) */ + const char *publisherKey /* "C" string (nil if unneeded) */ +); +/* + * return codes: + * if valid: date (days since January 1 2000) of expiration or (non-expiring) purchase + * if invalid: 0 + */ + + eSellerate_DaysSince2000 eSellerate_Today ( ); /* days from 1/1/2000 to today */ #ifdef __cplusplus