29 #ifndef HDMI_CCECHOST_HPP_
30 #define HDMI_CCECHOST_HPP_
44 CECHost_ERR_GENERAL = -1,
52 #define CECHost_HDMI_CONNECTED 0
53 #define CECHost_HDMI_DISCONNECTED 1
55 #define CECHost_POWERSTATE_ON 0
56 #define CECHost_POWERSTATE_STANDBY 1
63 typedef enum _CECHost_DeviceStatusType_t{
64 CECHost_POWER_STATUS = 1,
66 CECHost_CONNECTED_STATUS =3
67 }CECHost_DeviceStatusType_t;
71 CECHost_DeviceStatusType_t statusType;
84 typedef CECHost_Err_t (*CECHost_HdmiHotplugCallback_t) (int32_t connect);
85 typedef CECHost_Err_t (*CECHost_PowerStateCallback_t) (int32_t curState, int32_t newState);
86 typedef CECHost_Err_t (*CECHost_DevMgrStatusCallback_t) (
bool ipStatus,
bool* opStatus);
96 typedef CECHost_Err_t (*CECHost_OSDNameCallback_t) (uint8_t *name,
size_t len);
103 CECHost_HdmiHotplugCallback_t hotplugCb;
104 CECHost_PowerStateCallback_t pwrStateCb;
105 CECHost_DevMgrStatusCallback_t devMgrStatusCb;
106 CECHost_OSDNameCallback_t osdCb;
107 CECHost_PolicyCallback_t policyCb;
159 CECHost_Err_t CECHost_LoadPlugin(
void);
160 CECHost_Err_t CECHost_UnloadPlugin(
void);