Go to the documentation of this file.
85 if (!grp)
return -EINVAL;
110 grp->
name = strndup((
char*)
name, 17);
123 if(!grp)
return -EINVAL;
129 if(!grp)
return -EINVAL;
135 if (!
ctx)
return NULL;
137 return current->
next;
141 if (!
ctx)
return NULL;
142 if (!current)
return NULL;
143 return current->
prev;
148 if (!grp)
return NULL;
149 uint16_t grpmask = 1 << (grp->
id-1);
struct lightify_group * groups
LIGHTIFY_EXPORT struct lightify_node * lightify_group_get_next_node(struct lightify_group *grp, struct lightify_node *lastnode)
uint16_t lightify_node_get_grpadr(struct lightify_node *node)
LIGHTIFY_EXPORT struct lightify_group * lightify_group_get_previous(struct lightify_ctx *ctx, struct lightify_group *current)
int lightify_group_remove(struct lightify_group *grp)
struct lightify_group * prev
LIGHTIFY_EXPORT struct lightify_node * lightify_node_get_next(struct lightify_ctx *ctx, struct lightify_node *node)
LIGHTIFY_EXPORT int lightify_group_get_id(struct lightify_group *grp)
int lightify_group_set_id(struct lightify_group *grp, int id)
struct lightify_group * next
int lightify_group_new(struct lightify_ctx *ctx, struct lightify_group **newgroup)
struct lightify_ctx * ctx
LIGHTIFY_EXPORT struct lightify_group * lightify_group_get_next(struct lightify_ctx *ctx, struct lightify_group *current)
const LIGHTIFY_EXPORT char * lightify_group_get_name(struct lightify_group *grp)
int lightify_group_set_name(struct lightify_group *grp, const unsigned char *name)