From 909a38fcc0bc2fab196bafb7246c9f2ca864c231 Mon Sep 17 00:00:00 2001
From: Anthony Minessale <anthony.minessale@gmail.com>
Date: Wed, 12 Nov 2008 19:45:12 +0000
Subject: [PATCH] move macro

git-svn-id: http://svn.freeswitch.org/svn/freeswitch/trunk@10364 d0543943-73ff-0310-b7d9-9358b9ac24b2
---
 src/include/switch_loadable_module.h   | 3 +--
 src/include/switch_module_interfaces.h | 3 +++
 2 files changed, 4 insertions(+), 2 deletions(-)

diff --git a/src/include/switch_loadable_module.h b/src/include/switch_loadable_module.h
index 9a0fc6fd18..42a34d6541 100644
--- a/src/include/switch_loadable_module.h
+++ b/src/include/switch_loadable_module.h
@@ -392,8 +392,7 @@ SWITCH_DECLARE(uint32_t) switch_core_codec_next_id(void);
 	}
 
 
-#define PROTECT_INTERFACE(_it) switch_thread_rwlock_rdlock(_it->parent->rwlock); switch_thread_rwlock_rdlock(_it->rwlock)
-#define UNPROTECT_INTERFACE(_it) switch_thread_rwlock_unlock(_it->rwlock); switch_thread_rwlock_unlock(_it->parent->rwlock); _it = NULL
+
 
 
 
diff --git a/src/include/switch_module_interfaces.h b/src/include/switch_module_interfaces.h
index a144c333fb..adfce928eb 100644
--- a/src/include/switch_module_interfaces.h
+++ b/src/include/switch_module_interfaces.h
@@ -620,6 +620,9 @@ struct switch_api_interface {
 	struct switch_api_interface *next;
 };
 
+#define PROTECT_INTERFACE(_it) switch_thread_rwlock_rdlock(_it->parent->rwlock); switch_thread_rwlock_rdlock(_it->rwlock)
+#define UNPROTECT_INTERFACE(_it) switch_thread_rwlock_unlock(_it->rwlock); switch_thread_rwlock_unlock(_it->parent->rwlock); _it = NULL
+
 SWITCH_END_EXTERN_C
 #endif
 /* For Emacs: