Lines Matching defs:lightInterface
32 const struct LightInterface *lightInterface = NewLightInterfaceInstance();
33 if (lightInterface == nullptr || lightInterface->GetLightInfo == nullptr) {
45 const struct LightInterface *lightInterface = NewLightInterfaceInstance();
46 if (lightInterface == nullptr || lightInterface->GetLightInfo == nullptr) {
53 int32_t ret = lightInterface->GetLightInfo(&lightInfo, &count);
78 const struct LightInterface *lightInterface = NewLightInterfaceInstance();
79 if (lightInterface == nullptr || lightInterface->TurnOnLight == nullptr) {
95 int32_t ret = lightInterface->TurnOnLight(lightId, &lightEffect);
106 const struct LightInterface *lightInterface = NewLightInterfaceInstance();
107 if (lightInterface == nullptr || lightInterface->TurnOnMultiLights == nullptr) {
125 int32_t ret = lightInterface->TurnOnMultiLights(lightId, lightColor, num);
136 const struct LightInterface *lightInterface = NewLightInterfaceInstance();
137 if (lightInterface == nullptr || lightInterface->TurnOffLight == nullptr) {
141 int32_t ret = lightInterface->TurnOffLight(lightId);