comparison libfdproto/messages.c @ 1085:7d7266115a34

Cleaning of the traces in progress
author Sebastien Decugis <sdecugis@freediameter.net>
date Fri, 03 May 2013 19:20:56 +0800
parents 6b7966ea27fb
children e40374ddfeef
comparison
equal deleted inserted replaced
1084:6b7966ea27fb 1085:7d7266115a34
708 708
709 709
710 /***************************************************************************************************************/ 710 /***************************************************************************************************************/
711 /* Debug functions: dumping */ 711 /* Debug functions: dumping */
712 712
713 #warning "todo"
714 DECLARE_FD_DUMP_PROTOTYPE( fd_msg_dump_summary, msg_or_avp *obj, struct dictionary *dict, int force_parsing, int recurse )
715 {
716 return NULL;
717 }
718 /* one-line dump with all the contents of the message */
719 DECLARE_FD_DUMP_PROTOTYPE( fd_msg_dump_full, msg_or_avp *obj, struct dictionary *dict, int force_parsing, int recurse )
720 {
721 return NULL;
722 }
723 /* multi-line human-readable dump similar to wireshark output */
724 DECLARE_FD_DUMP_PROTOTYPE( fd_msg_dump_treeview, msg_or_avp *obj, struct dictionary *dict, int force_parsing, int recurse )
725 {
726 return NULL;
727 }
728
729 #ifndef OLD_CODE_TO_BE_REPLACED
730 void fd_msg_dump_walk ( int level, msg_or_avp *obj )
731 {
732 LOG_D("fd_msg_dump_walk %d, %p is deprecated", level, obj);
733 }
734 void fd_msg_dump_one ( int level, msg_or_avp * obj )
735 {
736 LOG_D("fd_msg_dump_one %d, %p is deprecated", level, obj);
737 }
738 #else /* OLD_CODE_TO_BE_REPLACED */
739
740
713 /* indent inside an object */ 741 /* indent inside an object */
714 #define INOBJHDR "%*s " 742 #define INOBJHDR "%*s "
715 #define INOBJHDRVAL indent<0 ? 1 : indent, indent<0 ? "-" : "|" 743 #define INOBJHDRVAL indent<0 ? 1 : indent, indent<0 ? "-" : "|"
716 744
717 /* Write some debug data in a buffer */ 745 /* Write some debug data in a buffer */
1073 TRACE_DEBUG(level, "%s", outstr); 1101 TRACE_DEBUG(level, "%s", outstr);
1074 TRACE_DEBUG(level, "------ /end of object %p -------", obj); 1102 TRACE_DEBUG(level, "------ /end of object %p -------", obj);
1075 free(outstr); 1103 free(outstr);
1076 } 1104 }
1077 1105
1078 1106 #endif /* OLD_CODE_TO_BE_REPLACED */
1079 /***************************************************************************************************************/ 1107 /***************************************************************************************************************/
1080 /* Simple meta-data management */ 1108 /* Simple meta-data management */
1081 1109
1082 /* Retrieve the model of an object */ 1110 /* Retrieve the model of an object */
1083 int fd_msg_model ( msg_or_avp * reference, struct dict_object ** model ) 1111 int fd_msg_model ( msg_or_avp * reference, struct dict_object ** model )
"Welcome to our mercurial repository"