Updating plists and versioning to release 1.5.1.
[MenuTunes.git] / validate.h
1 /*\r
2  *validate.h\r
3  *   Copyright 2000-2002, eSellerate Inc.\r
4  *   All rights reserved worldwide.\r
5  */\r
6 \r
7 #ifndef _VALIDATE_API_H_\r
8 #define _VALIDATE_API_H_\r
9 \r
10 #ifdef __cplusplus\r
11 extern "C" {\r
12 #endif\r
13 \r
14 typedef unsigned char* eSellerate_String;\r
15 \r
16 typedef short eSellerate_DaysSince2000;\r
17 \r
18 eSellerate_DaysSince2000 eSellerate_ValidateSerialNumber (\r
19   eSellerate_String serialNumber, /* ASCII Pascal string                   */\r
20   eSellerate_String nameBasedKey, /* ASCII Pascal string (nil if unneeded) */\r
21   eSellerate_String extraDataKey, /* ASCII Pascal string (nil if unneeded) */\r
22   eSellerate_String publisherKey  /* ASCII Pascal string (nil if unneeded) */\r
23 );\r
24 /*\r
25  * return codes:\r
26  *   if valid: date (days since January 1 2000) of expiration or (non-expiring) purchase\r
27  *   if invalid: 0\r
28  */\r
29 \r
30 eSellerate_DaysSince2000 eSellerate_Today ( ); /* days from 1/1/2000 to today */\r
31 \r
32 #ifdef __cplusplus\r
33 }\r
34 #endif\r
35 \r
36 #endif