VZTECH / Mbed 2 deprecated main_src

Dependencies:   EALib EthernetInterface_vz mbed-rtos mbed

Fork of header_main_colinas_V0-20-09-14 by VZTECH

Embed: (wiki syntax)

« Back to documentation index

Show/hide line numbers main_app_functions.h Source File

main_app_functions.h

00001 #ifndef __MAIN_APP_FUNCTIONS_H__
00002 #define __MAIN_APP_FUNCTIONS_H__
00003 
00004 #include "main_app_var_configs.h"
00005 
00006 void check_power_source ( void );
00007 int header_app_init ( void );
00008 int try_reconnect_with_eth ( void );
00009 int show_stats ( void );
00010 int reset_stats ( void );
00011 int show_cb_list ( Vector  * v_cb );
00012 int show_cb_long_list ( Vector  * v_cb, bool show_time = false, bool show_invites = false );
00013 int show_cb ( Vector  * v_cb );
00014 int show_cb_sip ( Vector  * v_cb );
00015 int show_sizes ( void );
00016 int check_udp_packages_pending ( Vector  * v_cb );
00017 int show_cb_content ( void );
00018 int show_cb_content_all ( void );
00019 int show_rtp ( void );
00020 int fuck_rtp ( Vector  * v_cb );
00021 int show_hex_cb_content ( void );
00022 int show_hex_cb_content_all ( void );
00023 int show_cb_sip ( void );
00024 int show_cb_sip_all ( void );
00025 int show_cb_hex_sip ( void );
00026 int show_rtp_on_call ( void );
00027 int show_call ( void );
00028 int show_hex_call ( void );
00029 int show_cb_rtp ( void );
00030 int show_cb_hex_rtp ( void );
00031 int reset_stats_cks ( void );
00032 int show_cb_stats ( void );
00033 
00034 // zera os contadores de pacotes que resultaram em falha de envio vio ETH
00035 int reset_missed_send_udp ( void );
00036 
00037 // exibe estatisticas de pacotes que resultaram em falha de envio na interface ETH
00038 int show_missed_send_udp_pkg ( void );
00039 
00040 int invite_ack_to_cb_handler ( Vector  * v_cb, Vector  * v_call );
00041 
00042 int check_audio_from_ast ( Vector  * v_cb, Vector  * v_call );
00043 
00044 int wake_up_or_refresh_handler ( Vector  * v_cb );
00045 
00046 int check_sip_messages_from_ast ( Vector  * v_cb, Vector  * v_call );
00047 
00048 /* rotina de verificação de TS's perdidos */
00049 int check_for_runaways_ts ( Vector  * v_cb, Timeslice * ts );
00050 
00051 int show_wdt_status ( void );
00052 
00053 int wdt_update ( void );
00054 
00055 /* rotina "zeradora" de portas RTP */
00056 int check_for_unwanted_rtp_ports ( Vector  * v_cb );
00057 
00058 int process_received_pkg_from_cbx ( void );
00059 
00060 void update_all_cb_timer ( Vector  * v_cb );
00061 
00062 int init_hello ( void );
00063 
00064 void send_hello_to_cbx ( void );
00065 
00066 void show_hello_status_function ( void );
00067 
00068 void show_last_rx_pkg_from_cbx ( void );
00069 
00070 void show_last_tx_pkg_from_cbx ( void );
00071 
00072 void update_config_values ( void );
00073 
00074 char * build_wdt_string ( char * wake_msg, const size_t length );
00075 
00076 Call_Box * try_add_new_cbx ( Vector  * v_cb, const int ext );
00077 
00078 #endif