From 70d696fc371edfc0ce3c526f33c65fe16cc7e5d1 Mon Sep 17 00:00:00 2001 From: Anthony Minessale Date: Thu, 12 Nov 2009 03:47:23 +0000 Subject: [PATCH] add DUMP_EVENT macro git-svn-id: http://svn.freeswitch.org/svn/freeswitch/trunk@15439 d0543943-73ff-0310-b7d9-9358b9ac24b2 --- src/include/switch_utils.h | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/include/switch_utils.h b/src/include/switch_utils.h index 96ff2f1ddc..40699ca8ee 100644 --- a/src/include/switch_utils.h +++ b/src/include/switch_utils.h @@ -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