From 1af72288d15ef6773bd8bc04bb867dd532b2d256 Mon Sep 17 00:00:00 2001 From: Anthony Minessale Date: Mon, 23 Dec 2013 22:43:06 +0500 Subject: [PATCH] FS-6061 --resolve --- src/switch_cpp.cpp | 2 +- swig_common.i | 5 +++++ 2 files changed, 6 insertions(+), 1 deletion(-) diff --git a/src/switch_cpp.cpp b/src/switch_cpp.cpp index 27d6dc68b6..85fc978a6f 100644 --- a/src/switch_cpp.cpp +++ b/src/switch_cpp.cpp @@ -1306,7 +1306,7 @@ SWITCH_DECLARE(bool) email(char *to, char *from, char *headers, char *body, char return false; } -SWITCH_DECLARE(void) msleep(unsigned ms) +SWITCH_DECLARE(void) switch_msleep(unsigned ms) { switch_sleep(ms * 1000); return; diff --git a/swig_common.i b/swig_common.i index 617b97551a..d64642027a 100644 --- a/swig_common.i +++ b/swig_common.i @@ -1,2 +1,7 @@ %typemap(newfree) char * "free($1);"; %newobject getGlobalVariable; +%rename(msleep) switch_msleep; + + + +