summaryrefslogtreecommitdiff
path: root/code/test/voip.c
diff options
context:
space:
mode:
authorUros Majstorovic <majstor@majstor.org>2017-12-06 07:17:24 +0100
committerUros Majstorovic <majstor@majstor.org>2017-12-06 07:17:24 +0100
commit848f44266dd4b9213af632d55747d66f03881422 (patch)
tree2f1a348e6e5c77760bbbec8d2ec54e89cedc7e66 /code/test/voip.c
parent028af540a2d856bccc84d3f5e3e8d3517105e411 (diff)
refactoring for memory limited systems
Diffstat (limited to 'code/test/voip.c')
-rw-r--r--code/test/voip.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/code/test/voip.c b/code/test/voip.c
index 4c3d30b..ad5032b 100644
--- a/code/test/voip.c
+++ b/code/test/voip.c
@@ -125,10 +125,10 @@ int a_init(void) {
return ECP_OK;
}
-ssize_t handle_open_c(ECPConnection *conn, ecp_seq_t sq, unsigned char t, unsigned char *p, ssize_t s) {
+ssize_t handle_open_c(ECPConnection *conn, ecp_seq_t sq, unsigned char t, unsigned char *p, ssize_t s, ECP2Buffer *b) {
uint32_t seq = 0;
- ecp_conn_handle_open(conn, t, p, s);
+ ecp_conn_handle_open(conn, sq, t, p, s, b);
if (s < 0) {
printf("OPEN ERR:%ld\n", s);
return s;
@@ -139,7 +139,7 @@ ssize_t handle_open_c(ECPConnection *conn, ecp_seq_t sq, unsigned char t, unsign
return s;
}
-ssize_t handle_msg_c(ECPConnection *conn, ecp_seq_t sq, unsigned char t, unsigned char *p, ssize_t s) {
+ssize_t handle_msg_c(ECPConnection *conn, ecp_seq_t sq, unsigned char t, unsigned char *p, ssize_t s, ECP2Buffer *b) {
a_write(opus_dec, p, s, handle_plb, alsa_out_buf, alsa_frames);
return s;
}