FreeCalypso > hg > ice1-trau-tester
diff pcm-br/globals.h @ 35:499d065ee591
new program itt-pcm-br (PCM bridge)
author | Mychaela Falconia <falcon@freecalypso.org> |
---|---|
date | Wed, 28 Aug 2024 05:00:38 +0000 |
parents | pcm/globals.h@27ca01bb5b11 |
children |
line wrap: on
line diff
--- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/pcm-br/globals.h Wed Aug 28 05:00:38 2024 +0000 @@ -0,0 +1,19 @@ +/* global vars and intermodule-linkage functions in itt-pcm-br */ + +#pragma once + +extern struct osmo_e1dp_client *g_client; +extern int tsa_fd, tsb_fd; +extern uint8_t readbuf_a[160], readbuf_b[160]; +extern FILE *rec_file_a, *rec_file_b; + +int tsa_fd_cb(struct osmo_fd *ofd, unsigned int what); +int tsb_fd_cb(struct osmo_fd *ofd, unsigned int what); + +void handle_user_cmd(int argc, char **argv); +void cmd_record_a_start(int argc, char **argv); +void cmd_record_a_stop(int argc, char **argv); +void cmd_record_b_start(int argc, char **argv); +void cmd_record_b_stop(int argc, char **argv); +void cmd_show_a(int argc, char **argv); +void cmd_show_b(int argc, char **argv);