Download
cyberslak
/lightsout
/ha.h
(View History)
| cyberslak Add LICENSE information | Latest amendment: 22 on 2025-03-15 |
| 1 | // SPDX-License-Identifier: MIT |
| 2 | |
| 3 | #pragma once |
| 4 | #include <stdlib.h> |
| 5 | #include "list.h" |
| 6 | #include "entity.h" |
| 7 | |
| 8 | /* Get the entity state from the server. */ |
| 9 | short ha_get_entity_state(const char* id, struct entity_state* st); |
| 10 | |
| 11 | /* Update the server-side entity state. */ |
| 12 | short ha_set_entity_state(const char* id, struct entity_state* st); |
| 13 | |
| 14 | short ha_get_entities(list_t *ents); |
| 15 | |
| 16 | short ha_test_prefs(); |