blob: eaa5eab850f98dbc03182167836f4f03f9944bf1 [file] [log] [blame]
Harald Welte39cfbf42016-07-28 09:04:11 +02001#pragma once
2#include <stdbool.h>
3
4#include <osmocom/core/msgb.h>
5#include <osmocom/vty/command.h>
6#include <osmocom/abis/e1_input.h>
7
8/* logging */
9enum {
10 DMAIN,
11};
12
13/* vty */
14enum rec_vty_node {
15 RECORDER_NODE = _LAST_OSMOVTY_NODE + 1,
16};
17
18struct e1_recorder_line {
19 struct {
20 bool enabled;
21 uint8_t line_nr;
22 } mirror;
23};
24
25struct e1_recorder {
26 char *storage_path;
27 unsigned int max_file_size_mb;
28 struct e1_recorder_line line[256];
29};
30
31extern struct e1_recorder g_recorder;
32
33/* e1_recorder.c */
34void e1ts_raw_recv(struct e1inp_ts *ts, struct msgb *msg);
35
36/* vty.c */
37void recorder_vty_init(void);