-
Notifications
You must be signed in to change notification settings - Fork 2
/
Copy pathsdelicense.h
84 lines (73 loc) · 1.8 KB
/
sdelicense.h
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
#ifndef _SDELICENSE_H
#define _SDELICENSE_H
#ident "@(#) SID: 1.1.1.2 C module: sdelicense.h last changed: 5/5/94 14:47:17"
/**********************************************************************
*
* AT&T - PROPRIETARY (RESTRICTED)
*
* SDELIC is fully owned and protected by AT&T Bell Laboratories
*
* Solely for authorized persons having a need to know
* pursuant to Company Instructions.
*
* All rights reserved
* Copyright (c) 1993 AT&T
*
* AT&T Bell Laboratories
* Department BL0591120
* AI and OO Technology Group
*
*
* FILE: sdelicense.h
*
* AUTHOR: Christopher A. Rath
*
* CREATED ON: 04/29/93
*
* TYPE: C header
*
* CONTENTS:
* Cleaned up version of sdelicense that is portable to
* architectures other than suns. Original by Terry Anderson
*/
/*
* Constants for flags
*
* flags && NOEXIT -> will not exit on error
* flags && NOMSG -> will not display msgs
*/
#define NOEXIT 1
#define NOMSG 2
/*
* Constants for return codes from sde_check_license()
*
* SDE_EXPIRE_WARNING -> ok today, will expire within time
* specifed by $SDE_LICENSE_WARNING
*
* SDE_ERROR -> Can't find license file or can't
* find entry for tool and network
* SDE_EXPIRED -> license found but has expired
*
* SDE_OKAY -> ok today and within expiration warning
*/
#define SDE_EXPIRE_WARNING 1
#define SDE_ERROR -1
#define SDE_EXPIRED -2
#define SDE_OKAY 0
/*
* Function prototypes
*/
#ifdef __cplusplus
extern "C" {
#endif /* __cplusplus */
#if (defined(__cplusplus) || defined(__STDC__))
const char *sde_license_msg();
int sde_check_license(const char *tool, int tnum, int flags);
#else
char *sde_license_msg();
int sde_check_license();
#endif /* (defined(__cplusplus) || defined(__STDC__)) */
#ifdef __cplusplus
}
#endif /* __cplusplus */
#endif /* _SDELICENSE_H */