add DUMP_EVENT macro

git-svn-id: http://svn.freeswitch.org/svn/freeswitch/trunk@15439 d0543943-73ff-0310-b7d9-9358b9ac24b2
This commit is contained in:
Anthony Minessale 2009-11-12 03:47:23 +00:00
parent 13b26efba1
commit 70d696fc37
1 changed files with 2 additions and 0 deletions

View File

@ -626,6 +626,8 @@ SWITCH_DECLARE(int) switch_number_cmp(const char *exp, int val);
#endif
#endif
#define DUMP_EVENT(_e) {char *event_str;switch_event_serialize(_e, &event_str, SWITCH_FALSE);printf("DUMP\n%s\n", event_str);free(event_str);}
#ifndef _MSC_VER
#define switch_inet_ntop inet_ntop
#else