39 #define MAX_NODE_NANE_LEN (16)
85 if (!ctx)
return -EINVAL;
89 if (!n)
return -ENOMEM;
119 if (!node)
return -EINVAL;
141 if (!node)
return NULL;
146 if (!node)
return NULL;
152 if (!node)
return -EINVAL;
159 if (!node->
name)
return -ENOMEM;
165 if (!node)
return NULL;
170 if(!node)
return -EINVAL;
181 if(!node)
return -EINVAL;
192 if(!node)
return -EINVAL;
203 if(!node)
return -EINVAL;
209 if(!node)
return -EINVAL;
214 if(!node)
return -EINVAL;
220 if(!node)
return -EINVAL;
225 if(!node)
return -EINVAL;
231 if(!node)
return -EINVAL;
236 if(!node)
return -EINVAL;
242 if(!node)
return -EINVAL;
247 if(!node)
return -EINVAL;
253 if(!node)
return -EINVAL;
258 if(!node)
return -EINVAL;
264 if(!node)
return -EINVAL;
269 if(!node)
return -EINVAL;
275 if(!node)
return -EINVAL;
281 if (!node)
return -EINVAL;
287 if(!node)
return -EINVAL;
292 if (!node)
return -EINVAL;
298 if(!node)
return -EINVAL;
303 if(!node)
return -EINVAL;
308 if(!node)
return -EINVAL;
int lightify_node_new(struct lightify_ctx *ctx, struct lightify_node **newnode)
#define MAX_NODE_NANE_LEN
enum lightify_node_online_state online_status
struct lightify_node * next
int lightify_node_set_grpadr(struct lightify_node *node, uint16_t adr)
int lightify_node_set_onoff(struct lightify_node *node, uint8_t on)
LIGHTIFY_EXPORT const char * lightify_node_get_name(struct lightify_node *node)
enum lightify_node_type node_type
LIGHTIFY_EXPORT int lightify_node_get_brightness(struct lightify_node *node)
int lightify_node_remove(struct lightify_node *node)
struct lightify_node * nodes
int lightify_node_set_brightness(struct lightify_node *node, int brightness)
LIGHTIFY_EXPORT uint64_t lightify_node_get_nodeadr(struct lightify_node *node)
struct lightify_node * lightify_node_get_prevnode(struct lightify_node *node)
LIGHTIFY_EXPORT int lightify_node_is_stale(struct lightify_node *node)
LIGHTIFY_EXPORT int lightify_node_is_on(struct lightify_node *node)
int lightify_node_set_stale(struct lightify_node *node, int stale)
int lightify_node_set_zoneadr(struct lightify_node *node, uint16_t adr)
int lightify_node_set_lamptype(struct lightify_node *node, enum lightify_node_type type)
int lightify_node_set_cct(struct lightify_node *node, int cct)
int lightify_node_set_blue(struct lightify_node *node, int blue)
LIGHTIFY_EXPORT uint16_t lightify_node_get_grpadr(struct lightify_node *node)
int lightify_node_set_red(struct lightify_node *node, int red)
LIGHTIFY_EXPORT int lightify_node_get_red(struct lightify_node *node)
lightify_node_online_state
int lightify_node_set_green(struct lightify_node *node, int green)
int lightify_node_set_online_status(struct lightify_node *node, uint8_t state)
LIGHTIFY_EXPORT int lightify_node_get_cct(struct lightify_node *node)
LIGHTIFY_EXPORT int lightify_node_get_white(struct lightify_node *node)
int lightify_node_set_nodeadr(struct lightify_node *node, uint64_t adr)
LIGHTIFY_EXPORT enum lightify_node_type lightify_node_get_lamptype(struct lightify_node *node)
struct lightify_node * lightify_node_get_nextnode(struct lightify_node *node)
LIGHTIFY_EXPORT int lightify_node_get_onlinestate(struct lightify_node *node)
struct lightify_node * prev
LIGHTIFY_EXPORT int lightify_node_get_green(struct lightify_node *node)
LIGHTIFY_EXPORT int lightify_node_get_blue(struct lightify_node *node)
struct lightify_ctx * ctx
int lightify_node_set_white(struct lightify_node *node, int white)
int lightify_node_set_name(struct lightify_node *node, char *name)
LIGHTIFY_EXPORT uint16_t lightify_node_get_zoneadr(struct lightify_node *node)