Enums

Details

class Infinoted.ParameterError(value)

Bases: GLib.Enum

Specifies the possible error conditions for errors in the INFINOTED_PARAMETER_ERROR domain. These typically occur when parsing and processing input parameters for plugins.

REQUIRED = 0

A parameter is required but was not provided to the plugin.

INVALID_NUMBER = 1

The number given as a parameter is not valid, for example a negative time interval.

INVALID_FLAG = 2

The flag with the given name does not exist.

INVALID_SECURITY_POLICY = 3

A security policy given as a parameter is not valid. The only allowed values are “no-tls”, “allow-tls”, and “require-tls”.

INVALID_IP_ADDRESS = 4

The value given as a parameter is not a valid IP address.

class Infinoted.ParameterType(value)

Bases: GLib.Enum

Allowed types for a parameter that can be given to a infinoted plugin.

BOOLEAN = 0

A boolean parameter.

INT = 1

A signed integer parameter.

STRING = 2

A string parameter.

STRING_LIST = 3

An array of strings.

class Infinoted.PluginManagerError(value)

Bases: GLib.Enum

Error codes for the INFINOTED_PLUGIN_MANAGER_ERROR error domain. These errors can occur when loading a plugin with Infinoted.PluginManager.load().

OPEN_FAILED = 0

Failed to open the code module of a plugin.

NO_ENTRY_POINT = 1

The code module of a plugin does not provide the INFINOTED_PLUGIN symbol.