summaryrefslogtreecommitdiffstats
path: root/src/tsnifd.h
diff options
context:
space:
mode:
Diffstat (limited to 'src/tsnifd.h')
-rw-r--r--src/tsnifd.h23
1 files changed, 23 insertions, 0 deletions
diff --git a/src/tsnifd.h b/src/tsnifd.h
new file mode 100644
index 0000000..dcbe30d
--- /dev/null
+++ b/src/tsnifd.h
@@ -0,0 +1,23 @@
+#ifndef TSNIFD_H
+#define TSNIFD_H
+
+#include "storage.h"
+#include "intf.h"
+
+extern char *storage_dir;
+
+struct terminal {
+ /* interface term */
+ struct tsnif_term term;
+
+ /* storage */
+ char *file;
+ struct tsnif_storage_opts storage_opts;
+ struct tsnif_storage_handle storage_handle;
+};
+
+int storage_init(struct terminal *t);
+int storage_close(struct terminal *t);
+int storage_data(struct terminal *t, struct tsnif_data *data);
+
+#endif /* TSNIFD_H */