FreeCalypso > hg > freecalypso-tools
view rvinterf/tmsh/audioresp.c @ 159:8fac4aaec230
fc-tmsh: beginning of intelligent ETM_AUDIO response handling
author | Mychaela Falconia <falcon@freecalypso.org> |
---|---|
date | Fri, 17 Mar 2017 07:34:29 +0000 |
parents | |
children | e4c98a2c1673 |
line wrap: on
line source
/* * In this module we are going to implement the handling of ETM_AUDIO responses. */ #include <sys/types.h> #include <stdio.h> #include <string.h> #include <strings.h> #include <stdlib.h> #include "pktmux.h" #include "limits.h" #include "localtypes.h" #include "etm.h" extern u_char rvi_msg[]; extern int rvi_msg_len; static void aul_response() { print_etm_pkt_raw("aul response"); } static void aus_response() { print_etm_pkt_raw("aus response"); } static void aur_response() { print_etm_pkt_raw("aur response"); } static void auw_response() { print_etm_pkt_raw("auw response"); } void etm_audio_msg_rx() { switch (rvi_msg[4]) { case 'L': aul_response(); return; case 'S': aus_response(); return; case 'R': aur_response(); return; case 'W': auw_response(); return; default: unknown: print_etm_pkt_raw("ETM_AUDIO"); } }