liblightify
groups.h
Go to the documentation of this file.
1
/*
2
liblightify -- library to control OSRAM's LIGHTIFY
3
4
Copyright (c) 2015, Tobias Frost <tobi@coldtobi.de>
5
All rights reserved.
6
7
Redistribution and use in source and binary forms, with or without
8
modification, are permitted provided that the following conditions are met:
9
* Redistributions of source code must retain the above copyright
10
notice, this list of conditions and the following disclaimer.
11
* Redistributions in binary form must reproduce the above copyright
12
notice, this list of conditions and the following disclaimer in the
13
documentation and/or other materials provided with the distribution.
14
* Neither the name of the author nor the
15
names of its contributors may be used to endorse or promote products
16
derived from this software without specific prior written permission.
17
18
THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" AND
19
ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED
20
WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE
21
DISCLAIMED. IN NO EVENT SHALL <COPYRIGHT HOLDER> BE LIABLE FOR ANY
22
DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES
23
(INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES;
24
LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND
25
ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
26
(INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS
27
SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
28
*/
29
30
/*
31
* \file groups.h
32
*
33
* Created on: 18.11.2015
34
* Author: tobi
35
*/
36
37
#ifndef SRC_GROUPS_H_
38
#define SRC_GROUPS_H_
39
40
#ifdef HAVE_CONFIG_H
41
#include "config.h"
42
#endif
43
50
int
lightify_group_new
(
struct
lightify_ctx
*
ctx
,
struct
lightify_group
**newgroup);
51
61
int
lightify_group_set_name
(
struct
lightify_group
*grp,
const
unsigned
char
*
name
);
62
69
int
lightify_group_set_id
(
struct
lightify_group
*grp,
int
id
);
70
76
int
lightify_group_remove
(
struct
lightify_group
*grp);
77
78
#endif
/* SRC_GROUPS_H_ */
lightify_group
Definition:
groups.c:46
lightify_group_set_id
int lightify_group_set_id(struct lightify_group *grp, int id)
Definition:
groups.c:122
lightify_group_new
int lightify_group_new(struct lightify_ctx *ctx, struct lightify_group **newgroup)
Definition:
groups.c:60
lightify_node::ctx
struct lightify_ctx * ctx
Definition:
node.c:46
lightify_ctx
Definition:
context.h:68
lightify_group_set_name
int lightify_group_set_name(struct lightify_group *grp, const unsigned char *name)
Definition:
groups.c:104
lightify_group_remove
int lightify_group_remove(struct lightify_group *grp)
Definition:
groups.c:84
lightify_node::name
char * name
Definition:
node.c:61
src
groups.h
Generated by
1.8.17