Aw license delete

From ActiveWiki
Jump to: navigation, search


Minimum requirements
Added in version 2.1
SDKbuild 13


int aw_license_delete (char *name)

Description

Deletes a world license.

Callback

AW_CALLBACK_LICENSE_RESULT

Notes

This method will only delete the world license, not the world itself.

Arguments

name
Name associated with the license to be removed.

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)
RC_UNABLE_TO_DELETE_NAME (2)
Database error.

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

(2) Returned by the universe server.

Returned attributes

None

Usage

int rc;

rc = aw_license_delete ("aw");
if (rc != RC_SUCCESS)
  printf ("Unable to delete license (reason %d)\n", rc);
else
  puts ("License deleted");

See also