aboutsummaryrefslogtreecommitdiffhomepage
path: root/artnet.h
blob: 8e05153b08bb093ec8df6ff21ff7123651545b2a (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
#include "midimonster.h"

int artnet_init();
static int artnet_configure(char* option, char* value);
static int artnet_configure_instance(instance* instance, char* option, char* value);
static instance* artnet_instance();
static channel* artnet_channel(instance* instance, char* spec);
static int artnet_set(size_t num, channel* c, channel_value* v);
static int artnet_handle(size_t num, int* fd, void** data);
static int artnet_start();
static int artnet_shutdown();

#define MODE_OUTPUT 1

typedef struct /*_artnet_instance_model*/ {
	uint8_t net;
	uint8_t uni;
	uint8_t mode;
} artnet_instance_data;