ai_license.h
Go to the documentation of this file.
1// Copyright 2021 Autodesk, Inc. All rights reserved.
2//
3// Use of this software is subject to the terms of the Autodesk license
4// agreement provided at the time of installation or download, or which
5// otherwise accompanies this software in either electronic or hard copy form.
6
12#pragma once
13#include "ai_api.h"
14
22AI_API void AiSetLicenseString(const char* lic);
23
28 bool used;
29 char name[64];
30 char ver[64];
31 char exp[64];
32 char options[64];
33 int count;
36 int hbased;
37 int hold;
43 int nres;
45 int roaming;
46 int share;
49 int timeout;
50 int tz;
51 int tokens;
52 int type;
53 int ubased;
54};
55
59#define AI_LIC_SUCCESS 0
60#define AI_LIC_ERROR_CANTCONNECT 1
61#define AI_LIC_ERROR_INIT 2
62#define AI_LIC_ERROR_NOTFOUND 3
63#define AI_LIC_ERROR_NOTAVAILABLE 4
64#define AI_LIC_ERROR -1
65/*\}*/
66
67AI_API int AiLicenseGetInfo(AtLicenseInfo*& licenses, unsigned int& n);
68
69AI_API bool AiLicenseIsAvailable();
70/*\}*/
DLL export prefix for API functions (necessary for multi-platform development)
int roaming
number of licenses currently roaming (for roaming licenses)
Definition: ai_license.h:45
char name[64]
product name
Definition: ai_license.h:29
int max_roam
maximum roam time
Definition: ai_license.h:38
char ver[64]
product version
Definition: ai_license.h:30
AI_API bool AiLicenseIsAvailable()
Check if licenses are available.
Definition: ai_license.cpp:50
AI_API int AiLicenseGetInfo(AtLicenseInfo *&licenses, unsigned int &n)
Check the status of the license servers provided through the environment variables solidangle_LICENSE...
Definition: ai_license.cpp:36
int timeout
current license timeout
Definition: ai_license.h:49
char options[64]
product options
Definition: ai_license.h:32
char exp[64]
expiration date
Definition: ai_license.h:31
int soft_limit
license soft limit
Definition: ai_license.h:47
int current_inuse
license count in use
Definition: ai_license.h:34
int ubased
USER_BASED count
Definition: ai_license.h:53
int count
license count
Definition: ai_license.h:33
bool used
true if this is the license used by the current Arnold installation
Definition: ai_license.h:28
int thisroam
1 if this license is a roaming license
Definition: ai_license.h:48
int num_roam_allowed
number of roaming licenses allowed
Definition: ai_license.h:44
int current_resuse
number of reservations in use
Definition: ai_license.h:35
int max_share
maximum number of processes that can share this license
Definition: ai_license.h:39
int hold
license hold time
Definition: ai_license.h:37
int hbased
HOST-BASED count
Definition: ai_license.h:36
int tokens
if 0, this is a normal license.
Definition: ai_license.h:51
int min_remove
minimum rlmremove time
Definition: ai_license.h:40
int tz
license timezone specification.
Definition: ai_license.h:50
int type
license type (license type flags RLM_LA__xxx_TYPE are defined in license.h)
Definition: ai_license.h:52
int min_timeout
minimum timeout time
Definition: ai_license.h:42
int share
license share flags (share flags RLM_LA_SHARE_xxx are defined in license.h)
Definition: ai_license.h:46
AI_API void AiSetLicenseString(const char *lic)
Set a license string (which is the content of a node-locked license file) for later use.
Definition: ai_license.cpp:16
int min_checkout
license minimum checkout time
Definition: ai_license.h:41
int nres
number of license reservations
Definition: ai_license.h:43
License info structure.
Definition: ai_license.h:27

© 2022 Autodesk, Inc. · All rights reserved · www.arnoldrenderer.com