Using the universal libValidate. Fixed a small Audioscrobbler crash that could happen...
[MenuTunes.git] / validate.h
index 4e5f639..bfc3627 100755 (executable)
@@ -11,6 +11,7 @@
 extern "C" {\r
 #endif\r
 \r
+\r
 typedef unsigned char* eSellerate_String;\r
 \r
 typedef short eSellerate_DaysSince2000;\r
@@ -27,6 +28,19 @@ eSellerate_DaysSince2000 eSellerate_ValidateSerialNumber (
  *   if invalid: 0\r
  */\r
 \r
+eSellerate_DaysSince2000 eWeb_ValidateSerialNumber (\r
+  const char   *serialNumber, /* "C" string                   */\r
+  const char   *nameBasedKey, /* "C" string (nil if unneeded) */\r
+  const char   *extraDataKey, /* "C" string (nil if unneeded) */\r
+  const char   *publisherKey  /* "C" string (nil if unneeded) */\r
+);\r
+/*\r
+ * return codes:\r
+ *   if valid: date (days since January 1 2000) of expiration or (non-expiring) purchase\r
+ *   if invalid: 0\r
+ */\r
+\r
+\r
 eSellerate_DaysSince2000 eSellerate_Today ( ); /* days from 1/1/2000 to today */\r
 \r
 #ifdef __cplusplus\r