summaryrefslogtreecommitdiff
path: root/include/osm/device.h
blob: edf9c12f210e658d72983aff3eb89ec485b90c3c (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
#ifndef OSM_DEVICE_H
#define OSM_DEVICE_H

#include <osm/utils.h>

/*
 * Define connection types
 */
#define OSM_CT_FILE 0
#define OSM_CT_TCP 1

/**
 * Device context: can be used to interact with an underlying device
 */
typedef struct {
	char *name;
	unsigned int conn_type;
	char *address;
	Vector inputs, outputs;
} OSMDevice;

#endif