Go to the documentation of this file.
30 #ifndef _LIBlightify_H_
31 #define _LIBlightify_H_
349 void (*log_fn)(
struct lightify_ctx *
ctx,
int priority,
const char *file,
350 int line,
const char *fn,
const char *
format, va_list args));
587 unsigned int b,
unsigned int w,
unsigned int fadetime);
723 unsigned int b,
unsigned int w,
unsigned int fadetime) ;
int lightify_free(struct lightify_ctx *ctx)
enum lightify_node_type lightify_node_get_lamptype(struct lightify_node *node)
int lightify_node_request_onoff(struct lightify_ctx *ctx, struct lightify_node *node, int onoff)
int lightify_node_get_brightness(struct lightify_node *node)
int lightify_skt_setfd(struct lightify_ctx *ctx, int socket)
static void const char * format
int lightify_group_request_brightness(struct lightify_ctx *ctx, struct lightify_group *group, unsigned int level, unsigned int fadetime)
int lightify_node_request_scan(struct lightify_ctx *ctx)
int lightify_group_request_scan(struct lightify_ctx *ctx)
const char * lightify_node_get_name(struct lightify_node *node)
int lightify_node_is_on(struct lightify_node *node)
int lightify_set_log_fn(struct lightify_ctx *ctx, void(*log_fn)(struct lightify_ctx *ctx, int priority, const char *file, int line, const char *fn, const char *format, va_list args))
int(* read_from_socket_fn)(struct lightify_ctx *ctx, unsigned char *msg, size_t size)
int lightify_skt_setiotimeout(struct lightify_ctx *ctx, struct timeval tv)
int lightify_get_log_priority(struct lightify_ctx *ctx)
void * lightify_get_userdata(struct lightify_ctx *ctx)
int lightify_set_log_priority(struct lightify_ctx *ctx, int priority)
struct lightify_node * lightify_group_get_next_node(struct lightify_group *grp, struct lightify_node *lastnode)
uint64_t lightify_node_get_nodeadr(struct lightify_node *node)
uint16_t lightify_node_get_grpadr(struct lightify_node *node)
struct lightify_node * lightify_node_get_previous(struct lightify_ctx *ctx, struct lightify_node *node)
int lightify_set_socket_fn(struct lightify_ctx *ctx, write_to_socket_fn fpw, read_from_socket_fn fpr)
struct lightify_group * lightify_group_get_previous(struct lightify_ctx *ctx, struct lightify_group *current)
int lightify_node_get_red(struct lightify_node *node)
struct lightify_ctx * ctx
struct timeval lightify_skt_getiotimeout(struct lightify_ctx *ctx)
int lightify_node_request_brightness(struct lightify_ctx *ctx, struct lightify_node *node, unsigned int level, unsigned int fadetime)
int lightify_node_get_green(struct lightify_node *node)
lightify_node_online_state
uint16_t lightify_node_get_zoneadr(struct lightify_node *node)
int lightify_new(struct lightify_ctx **ctx, void *reserved)
int lightify_skt_getfd(struct lightify_ctx *ctx)
int lightify_node_get_cct(struct lightify_node *node)
struct lightify_node * lightify_node_get_next(struct lightify_ctx *ctx, struct lightify_node *node)
int lightify_group_request_cct(struct lightify_ctx *ctx, struct lightify_group *group, unsigned int cct, unsigned int fadetime)
int lightify_node_get_white(struct lightify_node *node)
int lightify_group_request_rgbw(struct lightify_ctx *ctx, struct lightify_group *group, unsigned int r, unsigned int g, unsigned int b, unsigned int w, unsigned int fadetime)
int lightify_group_get_id(struct lightify_group *grp)
int lightify_group_request_onoff(struct lightify_ctx *ctx, struct lightify_group *group, int onoff)
int lightify_set_userdata(struct lightify_ctx *ctx, void *userdata)
struct lightify_ctx * ctx
struct lightify_group * lightify_group_get_next(struct lightify_ctx *ctx, struct lightify_group *current)
struct lightify_node * lightify_node_get_from_mac(struct lightify_ctx *ctx, uint64_t mac)
int lightify_node_get_onlinestate(struct lightify_node *node)
int(* write_to_socket_fn)(struct lightify_ctx *ctx, unsigned char *msg, size_t size)
int lightify_node_request_update(struct lightify_ctx *ctx, struct lightify_node *node)
int lightify_node_request_rgbw(struct lightify_ctx *ctx, struct lightify_node *node, unsigned int r, unsigned int g, unsigned int b, unsigned int w, unsigned int fadetime)
@ LIGHTIFY_EXT_COLOUR_LIGHT
const char * lightify_group_get_name(struct lightify_group *grp)
int lightify_node_is_stale(struct lightify_node *node)
int lightify_node_request_cct(struct lightify_ctx *ctx, struct lightify_node *node, unsigned int cct, unsigned int fadetime)
int lightify_node_get_blue(struct lightify_node *node)