aboutsummaryrefslogtreecommitdiffstats
path: root/src/datenklo/device.h
diff options
context:
space:
mode:
Diffstat (limited to 'src/datenklo/device.h')
-rw-r--r--src/datenklo/device.h7
1 files changed, 7 insertions, 0 deletions
diff --git a/src/datenklo/device.h b/src/datenklo/device.h
new file mode 100644
index 0000000..e862b6d
--- /dev/null
+++ b/src/datenklo/device.h
@@ -0,0 +1,7 @@
+
+void *device_init(void *inst, const char *name, int (*open)(void *inst, int flags), void (*close)(void *inst), ssize_t (*read)(void *inst, char *buf, size_t size, int flags), ssize_t (*write)(void *inst, const char *buf, size_t size, int flags), ssize_t ioctl_get(void *inst, int cmd, void *buf, size_t out_bufsz), ssize_t ioctl_set(void *inst, int cmd, const void *buf, size_t in_bufsz), void (*flush_tx)(void *inst), void (*lock)(void), void (*unlock)(void));
+void device_exit(void *inst);
+void device_set_poll_events(void *inst, short revents);
+void device_read_available(void *inst);
+void device_write_available(void *inst);
+