summaryrefslogtreecommitdiff
path: root/include/osm/device.h
diff options
context:
space:
mode:
authorKyle Gunger <kgunger12@gmail.com>2024-05-02 00:00:34 -0400
committerKyle Gunger <kgunger12@gmail.com>2024-05-02 00:00:34 -0400
commitdc9df45dc6578704a367ab6a72842f65b1190f77 (patch)
tree2ba683aed5e1ba2fa3e72fc9706ad66615cbc336 /include/osm/device.h
parentaab7fe08faf2aec394174b2ee9782988bfc7fa30 (diff)
default listen and accept impl
Diffstat (limited to 'include/osm/device.h')
-rw-r--r--include/osm/device.h14
1 files changed, 13 insertions, 1 deletions
diff --git a/include/osm/device.h b/include/osm/device.h
index 51a4ff2..edf9c12 100644
--- a/include/osm/device.h
+++ b/include/osm/device.h
@@ -3,8 +3,20 @@
#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