]> git.ipfire.org Git - thirdparty/freeswitch.git/commitdiff
add DUMP_EVENT macro
authorAnthony Minessale <anthony.minessale@gmail.com>
Thu, 12 Nov 2009 03:47:23 +0000 (03:47 +0000)
committerAnthony Minessale <anthony.minessale@gmail.com>
Thu, 12 Nov 2009 03:47:23 +0000 (03:47 +0000)
git-svn-id: http://svn.freeswitch.org/svn/freeswitch/trunk@15439 d0543943-73ff-0310-b7d9-9358b9ac24b2

src/include/switch_utils.h

index 96ff2f1ddceb0d01db6a10e7edef80707c4f0f69..40699ca8ee19295952a4ff3e37f7fa499a410f00 100644 (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