Modularizando o src

Dependencies:   EALib EthernetInterface_vz mbed-rtos mbed

Fork of header_main_colinas_V0-20-09-14 by VZTECH

main_app_functions.h

Committer:
klauss
Date:
2015-11-24
Revision:
137:32dd35a6dbc9
Parent:
135:2f4290590e51

File content as of revision 137:32dd35a6dbc9:

#ifndef __MAIN_APP_FUNCTIONS_H__
#define __MAIN_APP_FUNCTIONS_H__

#include "main_app_var_configs.h"

void check_power_source ( void );
int header_app_init ( void );
int try_reconnect_with_eth ( void );
int show_stats ( void );
int reset_stats ( void );
int show_cb_list ( Vector * v_cb );
int show_cb_long_list ( Vector * v_cb, bool show_time = false, bool show_invites = false );
int show_cb ( Vector * v_cb );
int show_cb_sip ( Vector * v_cb );
int show_sizes ( void );
int check_udp_packages_pending ( Vector * v_cb );
int show_cb_content ( void );
int show_cb_content_all ( void );
int show_rtp ( void );
int fuck_rtp ( Vector * v_cb );
int show_hex_cb_content ( void );
int show_hex_cb_content_all ( void );
int show_cb_sip ( void );
int show_cb_sip_all ( void );
int show_cb_hex_sip ( void );
int show_rtp_on_call ( void );
int show_call ( void );
int show_hex_call ( void );
int show_cb_rtp ( void );
int show_cb_hex_rtp ( void );
int reset_stats_cks ( void );
int show_cb_stats ( void );

// zera os contadores de pacotes que resultaram em falha de envio vio ETH
int reset_missed_send_udp ( void );

// exibe estatisticas de pacotes que resultaram em falha de envio na interface ETH
int show_missed_send_udp_pkg ( void );

int invite_ack_to_cb_handler ( Vector * v_cb, Vector * v_call );

int check_audio_from_ast ( Vector * v_cb, Vector * v_call );

int wake_up_or_refresh_handler ( Vector * v_cb );

int check_sip_messages_from_ast ( Vector * v_cb, Vector * v_call );

/* rotina de verificação de TS's perdidos */
int check_for_runaways_ts ( Vector * v_cb, Timeslice * ts );

int show_wdt_status ( void );

int wdt_update ( void );

/* rotina "zeradora" de portas RTP */
int check_for_unwanted_rtp_ports ( Vector * v_cb );

int process_received_pkg_from_cbx ( void );

void update_all_cb_timer ( Vector * v_cb );

int init_hello ( void );

void send_hello_to_cbx ( void );

void show_hello_status_function ( void );

void show_last_rx_pkg_from_cbx ( void );

void show_last_tx_pkg_from_cbx ( void );

void update_config_values ( void );

char * build_wdt_string ( char * wake_msg, const size_t length );

Call_Box * try_add_new_cbx ( Vector * v_cb, const int ext );

#endif