From f8a9c7b6c9a9ea05c157baac95765df1c3977af0 Mon Sep 17 00:00:00 2001 From: Thomas White Date: Sat, 25 May 2019 12:36:26 +0200 Subject: Empty window and initial data structures --- src/nanolight.h | 70 +++++++++++++++++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 70 insertions(+) create mode 100644 src/nanolight.h (limited to 'src/nanolight.h') diff --git a/src/nanolight.h b/src/nanolight.h new file mode 100644 index 0000000..4ab4d5a --- /dev/null +++ b/src/nanolight.h @@ -0,0 +1,70 @@ +/* + * nanolight.h + * + * Copyright © 2019 Thomas White + * + * This file is part of NanoLight. + * + * NanoLight is free software: you can redistribute it and/or modify + * it under the terms of the GNU General Public License as published by + * the Free Software Foundation, either version 3 of the License, or + * (at your option) any later version. + * + * This program is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + * GNU General Public License for more details. + * + * You should have received a copy of the GNU General Public License + * along with this program. If not, see . + * + */ + +#ifndef NANOLIGHT_H +#define NANOLIGHT_H + +/* Attribute flags */ +#define ATTR_NONE (0) +#define ATTR_16BIT (1) + +enum attr_class +{ + ATT_INTENSITY, + ATT_PAN, + ATT_TILT +}; + + +struct attribute +{ + char *name; + enum attr_class cls; + int props; + int n_addrs; + int *addrs; +}; + + +struct fixture_class +{ + char *name; + int n_attrs; + struct attribute *attrs; +}; + + +struct fixture +{ + char *label; + struct fixture_class *cls; +}; + + +struct nanolight +{ + int n_fixtures; + struct fixture *fixtures; +}; + + +#endif /* NANOLIGHT_H */ -- cgit v1.2.3