summaryrefslogtreecommitdiff
path: root/src/nanolight.h
diff options
context:
space:
mode:
Diffstat (limited to 'src/nanolight.h')
-rw-r--r--src/nanolight.h70
1 files changed, 70 insertions, 0 deletions
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 <taw@bitwiz.me.uk>
+ *
+ * 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 <http://www.gnu.org/licenses/>.
+ *
+ */
+
+#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 */