Kodi Documentation 22.0
Kodi is an open source media player and entertainment hub.
Loading...
Searching...
No Matches
PeripheralUtils.h File Reference
#include "../../AddonBase.h"
#include "../../c-api/addon-instance/peripheral.h"
#include <array>
#include <cstring>
#include <memory>
#include <string>
#include <utility>
#include <vector>

Classes

class  kodi::addon::PeripheralVector< THE_CLASS, THE_STRUCT >
 
class  kodi::addon::PeripheralCapabilities
 
class  kodi::addon::Peripheral
 
class  kodi::addon::PeripheralEvent
 
class  kodi::addon::Joystick
 
struct  kodi::addon::DriverPrimitive
 
class  kodi::addon::JoystickFeature
 

Namespaces

namespace  kodi
 
namespace  kodi::addon
 

Macros

#define PERIPHERAL_SAFE_DELETE(x)
 
#define PERIPHERAL_SAFE_DELETE_ARRAY(x)
 

Typedefs

typedef PeripheralVector< Peripheral, PERIPHERAL_INFOkodi::addon::Peripherals
 
typedef PeripheralVector< PeripheralEvent, PERIPHERAL_EVENTkodi::addon::PeripheralEvents
 
typedef PeripheralVector< Joystick, JOYSTICK_INFOkodi::addon::Joysticks
 
typedef PeripheralVector< DriverPrimitive, JOYSTICK_DRIVER_PRIMITIVEkodi::addon::DriverPrimitives
 
typedef PeripheralVector< JoystickFeature, JOYSTICK_FEATUREkodi::addon::JoystickFeatures
 

Macro Definition Documentation

◆ PERIPHERAL_SAFE_DELETE

#define PERIPHERAL_SAFE_DELETE ( x)
Value:
do \
{ \
delete (x); \
(x) = NULL; \
} while (0)

◆ PERIPHERAL_SAFE_DELETE_ARRAY

#define PERIPHERAL_SAFE_DELETE_ARRAY ( x)
Value:
do \
{ \
delete[](x); \
(x) = NULL; \
} while (0)