Modularizando o src

Dependencies:   EALib EthernetInterface_vz mbed-rtos mbed

Fork of header_main_colinas_V0-20-09-14 by VZTECH

Revision:
132:05cd37f7e007
Parent:
121:ee02790d00b7
Child:
135:2f4290590e51
--- a/rtp.cpp	Tue Jul 21 20:03:35 2015 +0000
+++ b/rtp.cpp	Tue Sep 01 17:21:11 2015 +0000
@@ -68,8 +68,8 @@
     if( rtp_header == NULL )
     {
         memory_is_over = true;
-        if( debug_rtp == true ) send_msg("[%d] RTP_HEADER allocation failed", ext );
-        if( debug_memory ) debug_msg("[%d] RTP_Header allocation fail", ext );
+        if( debug_rtp == true ) vz_printf ("[%d] RTP_HEADER allocation failed", ext );
+        if( debug_memory ) vz_debug ("[%d] RTP_Header allocation fail", ext );
     }
         else
     {
@@ -80,8 +80,8 @@
     if( rtp_body == NULL )
     {
         memory_is_over = true;
-        if( debug_rtp == true ) send_msg("[%d] RTP_BODY allocation failed", ext );
-        if( debug_memory ) debug_msg("[%d ]RTP_Body allocation fail", ext );
+        if( debug_rtp == true ) vz_printf ("[%d] RTP_BODY allocation failed", ext );
+        if( debug_memory ) vz_debug ("[%d ]RTP_Body allocation fail", ext );
     }
         else
     {
@@ -115,19 +115,19 @@
 
 int RTP::print_yourself ( void )
 {
-    send_msg("buffer :: %p", ( void * ) buffer );
-    send_msg("pkg :: %p", ( void * ) pkg );
-    send_msg("rtp_header :: %p", ( void * ) rtp_header );
-    send_msg("rtp_body :: %p", ( void * ) rtp_body );
+    vz_printf ("buffer :: %p", ( void * ) buffer );
+    vz_printf ("pkg :: %p", ( void * ) pkg );
+    vz_printf ("rtp_header :: %p", ( void * ) rtp_header );
+    vz_printf ("rtp_body :: %p", ( void * ) rtp_body );
     if ( rtp_header != NULL )
     {
-        send_msg("ss_id :: %d", rtp_header -> get_ss_id () );
-        send_msg("seq_number :: %d", rtp_header -> get_seq_number () );
-        send_msg("timestamp :: %d", rtp_header -> get_timestamp () );
+        vz_printf ("ss_id :: %d", rtp_header -> get_ss_id () );
+        vz_printf ("seq_number :: %d", rtp_header -> get_seq_number () );
+        vz_printf ("timestamp :: %d", rtp_header -> get_timestamp () );
     }
         else
     {
-        send_msg("Objeto rtp_header nao vinculado");    
+        vz_printf ("Objeto rtp_header nao vinculado");    
     }
     return ( sizeof( RTP ) );    
 }
\ No newline at end of file