Modularizando o src

Dependencies:   EALib EthernetInterface_vz mbed-rtos mbed

Fork of header_main_colinas_V0-20-09-14 by VZTECH

Revision:
76:9f5f99dd895a
Parent:
74:81c47fff88a5
Child:
77:e8c0253b57bc
--- a/call_box.cpp	Mon Nov 24 18:57:54 2014 +0000
+++ b/call_box.cpp	Tue Nov 25 17:37:56 2014 +0000
@@ -16,6 +16,24 @@
     sip = new Sip( ext, port );
 }
 
+int Call_Box::get_status( void ){ return this->status; }
+
+void Call_Box::cb_set_status( uint8_t status ){ this->status = status; }
+
+int Call_Box::get_sip_status( void ){
+    if( sip == NULL ) return -1;
+    
+    else return this->sip->get_status();
+}
+
+int Call_Box::set_sip_status( uint8_t status ){
+    if( sip == NULL ) return( -1 );
+    
+    sip->sip_set_status( status );
+    
+    return( 0 );
+}
+
 Call_Box::~Call_Box( void ){
     if( sip != NULL ) delete( sip );   
 }