Go to the source code of this file.
◆ lightify_group_new()
Generate a new group object
- Parameters
-
ctx | Library context |
newgroup | where to store new pointer of new group |
- Returns
- negative on error. >=0 is success.
Definition at line 60 of file groups.c.
◆ lightify_group_remove()
Remove group from linked list and free memory associated.
- Parameters
-
- Returns
- negative on error. >=0 is success.
Definition at line 84 of file groups.c.
◆ lightify_group_set_id()
Set Group's ID
- Parameters
-
grp | to operate on |
id | to set |
- Returns
- negative on error. >=0 is success.
Definition at line 122 of file groups.c.
◆ lightify_group_set_name()
int lightify_group_set_name |
( |
struct lightify_group * |
grp, |
|
|
const unsigned char * |
name |
|
) |
| |
Set Group's name
- Parameters
-
grp | to operate on |
name | to set |
- Returns
- negative on error. >=0 is success.
- Note
- a maximum lenght of 16 chars is enforced.
-
a copy of the name is allocated and stored.
Definition at line 104 of file groups.c.