initial import of incomplete project to record E1 lines
diff --git a/src/storage.c b/src/storage.c
new file mode 100644
index 0000000..571a043
--- /dev/null
+++ b/src/storage.c
@@ -0,0 +1,20 @@
+#include <osmocom/core/msgb.h>
+#include <osmocom/abis/e1_input.h>
+
+#include "storage.h"
+
+int e1frame_store(struct e1inp_ts *ts, struct msgb *msg, enum osmo_e1cap_capture_mode mode)
+{
+ struct osmo_e1cap_pkthdr *h;
+ uint32_t len = msg->len;
+
+ h = (struct osmo_e1cap_pkthdr *) msgb_push(msg, sizeof(*h));
+ h->len = htonl(len);
+ h->line_nr = ts->line->num;
+ h->ts_nr = ts->num;
+ h->capture_mode = mode;
+ h->flags = 0;
+
+ /* FIXME: Write */
+ return 0;
+}