Kodi Documentation 22.0
Kodi is an open source media player and entertainment hub.
Loading...
Searching...
No Matches

Peripheral add-on error codes
Used as return values on most peripheral related functions. More...

Typedefs

typedef enum PERIPHERAL_ERROR PERIPHERAL_ERROR
 

Enumerations

enum  PERIPHERAL_ERROR {
  PERIPHERAL_NO_ERROR = 0 , PERIPHERAL_ERROR_UNKNOWN = -1 , PERIPHERAL_ERROR_FAILED = -2 , PERIPHERAL_ERROR_INVALID_PARAMETERS = -3 ,
  PERIPHERAL_ERROR_NOT_IMPLEMENTED = -4 , PERIPHERAL_ERROR_NOT_CONNECTED = -5 , PERIPHERAL_ERROR_CONNECTION_FAILED = -6
}
 

Detailed Description

Peripheral add-on error codes
Used as return values on most peripheral related functions.

In this way, a peripheral instance signals errors in its processing and, under certain conditions, allows Kodi to make corrections.

Typedef Documentation

◆ PERIPHERAL_ERROR

Enumeration Type Documentation

◆ PERIPHERAL_ERROR

Enumerator
PERIPHERAL_NO_ERROR 

0 : No error occurred

PERIPHERAL_ERROR_UNKNOWN 

-1 : An unknown error occurred

PERIPHERAL_ERROR_FAILED 

-2 : The command failed

PERIPHERAL_ERROR_INVALID_PARAMETERS 

-3 : The parameters of the method are invalid for this operation

PERIPHERAL_ERROR_NOT_IMPLEMENTED 

-4 : The method that the frontend called is not implemented

PERIPHERAL_ERROR_NOT_CONNECTED 

-5 : No peripherals are connected

PERIPHERAL_ERROR_CONNECTION_FAILED 

-6 : Peripherals are connected, but command was interrupted