Aw license attributes

From ActiveWiki
Revision as of 11:55, 1 November 2008 by Macavity (talk | contribs) (Added in, cleanup)
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to navigation Jump to search


Minimum requirements
Added in version 2.1
SDKbuild 13


int aw_license_attributes (char *name)

Description

Returns all attributes associated with a world license.

Callback

AW_CALLBACK_LICENSE_ATTRIBUTES

Arguments

name
Name associated with the license.

Argument attributes

None

Return values

RC_SUCCESS (1) (2)
RC_NOT_INITIALIZED (1)
RC_NO_INSTANCE (1)
RC_NO_CONNECTION (1)
The connection to the universe is down.
RC_NOT_AVAILABLE (1)
Instance must be owned by the root account (citizen #1 - universe administrator).
RC_UNAUTHORIZED (2)
Instance must be owned by the root account (citizen #1 - universe administrator).
RC_NO_SUCH_LICENSE (2)

(1) Possible return values when a callback is installed.

(2) Returned by the universe server.

Returned attributes

AW_LICENSE_ALLOW_TOURISTS
AW_LICENSE_COMMENT
AW_LICENSE_CREATION_TIME
AW_LICENSE_EMAIL
AW_LICENSE_EXPIRATION_TIME
AW_LICENSE_HIDDEN
AW_LICENSE_LAST_ADDRESS
AW_LICENSE_LAST_START
AW_LICENSE_NAME
AW_LICENSE_PASSWORD
AW_LICENSE_PLUGINS
AW_LICENSE_RANGE
AW_LICENSE_USERS
AW_LICENSE_VOIP

Usage

if (aw_license_attributes ("aw") != RC_SUCCESS) 
  puts ("No such license");
else
  printf ("aw is licensed for %d users\n", aw_int (AW_LICENSE_USERS));

See also