1 /***********************************************************************/ 2 /* Open Visualization Data Explorer */ 3 /* (C) Copyright IBM Corp. 1989,1999 */ 4 /* ALL RIGHTS RESERVED */ 5 /* This code licensed under the */ 6 /* "IBM PUBLIC LICENSE - Open Visualization Data Explorer" */ 7 /***********************************************************************/ 8 9 #include <dxconfig.h> 10 11 12 13 14 #ifndef _License_h 15 #define _License_h 16 17 #define AUTH_MSG_LEN 1024 18 19 enum LicenseTypeEnum { 20 Unlicensed = 0, 21 UndeterminedLicense = 1, 22 23 // Note that these must match thouse used by dxshadow. 24 ConcurrentLicense = 0xafe3, 25 FullyLicensed = ConcurrentLicense, 26 NodeLockedLicense = 0xb673, 27 TimedLicense = 0x3ad0, 28 29 // These are actually different classes of the above. 30 // For example, one may have a concurrent runtime license. 31 // Note that these must match thouse used by dxshadow. 32 ViewerLicense = 0x0348, // Standard DX (development) license 33 RunTimeLicense = 0x4398, // Standard DX (development) license 34 DeveloperLicense = 0xde1d, // DX Run-time license 35 FullFunctionLicense = DeveloperLicense 36 }; 37 38 #include <X11/Intrinsic.h> 39 40 void UIGetLicense(const char *root, 41 XtInputCallbackProc lostLicense, 42 LicenseTypeEnum *appLic, 43 LicenseTypeEnum *funcLic); 44 45 char *GenerateExecKey(const char *inkey, LicenseTypeEnum licenseType); 46 47 48 49 #endif // _License_h 50