summaryrefslogtreecommitdiffstats
path: root/src/device-bridge.c
blob: 4a8d24ce2ee212081983936fce68d18024e43d57 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
#include "device.h"

#include <stdio.h>

static device_t * bridge_process_config(const char *name, struct json_object *config) {
	printf("Bridge: %s\n", name);
	return NULL;
}

device_type_t device_type_bridge = {
	.process_config = bridge_process_config,
};

__attribute__((constructor))
static void bridge_constructor(void) {
	register_device_type("bridge", &device_type_bridge);
}