[asterisk-scf-commits] asterisk-scf/release/sip.git branch "authexten" updated.

Commits to the Asterisk SCF project code repositories asterisk-scf-commits at lists.digium.com
Tue Feb 15 15:10:54 CST 2011


branch "authexten" has been updated
       via  18220a9ec61fbb51381e8405c4b9c7e0e1c785a8 (commit)
      from  f63d75ebd26753eed1a2733ecbd21fe8f2a58044 (commit)

Summary of changes:
 src/AuthManager.cpp  |    4 ++--
 src/AuthManager.h    |    2 +-
 src/PJSipManager.cpp |    4 ++--
 src/PJSipManager.h   |    4 ++--
 src/PJSipModule.cpp  |    4 ++--
 src/PJSipModule.h    |    4 ++--
 6 files changed, 11 insertions(+), 11 deletions(-)


- Log -----------------------------------------------------------------
commit 18220a9ec61fbb51381e8405c4b9c7e0e1c785a8
Author: Mark Michelson <mmichelson at digium.com>
Date:   Tue Feb 15 15:10:36 2011 -0600

    Add some more constness in places.

diff --git a/src/AuthManager.cpp b/src/AuthManager.cpp
index b74db56..659b67b 100644
--- a/src/AuthManager.cpp
+++ b/src/AuthManager.cpp
@@ -32,7 +32,7 @@ class AuthHookData
 {
 public:
     AuthHookData(int priority, const AsteriskSCF::SIP::ExtensionPoint::V1::AuthHookPrx &hook,
-            AsteriskSCF::SIP::ExtensionPoint::V1::RequestTypeSeq &types)
+            const AsteriskSCF::SIP::ExtensionPoint::V1::RequestTypeSeq &types)
         : mPriority(priority), mHook(hook), mTypes(types) { }
 
     bool operator< (const AuthHookData &rhs) const
@@ -390,7 +390,7 @@ void AuthManager::authTimeout(pj_timer_heap_t *timer_heap, pj_timer_entry *entry
 }
 
 void AuthManager::addAuthHook(const AsteriskSCF::SIP::ExtensionPoint::V1::AuthHookPrx &hook,
-        int priority, AsteriskSCF::SIP::ExtensionPoint::V1::RequestTypeSeq &types)
+        int priority, const AsteriskSCF::SIP::ExtensionPoint::V1::RequestTypeSeq &types)
 {
     boost::shared_ptr<AuthHookData> hookData(new AuthHookData(priority, hook, types));
     boost::lock_guard<boost::mutex> lock(mImpl->mHooksLock);
diff --git a/src/AuthManager.h b/src/AuthManager.h
index 57b1333..d70dc77 100644
--- a/src/AuthManager.h
+++ b/src/AuthManager.h
@@ -162,7 +162,7 @@ public:
     /**
      * Register a new authentication hook with the AuthManager
      */
-    void addAuthHook(const AsteriskSCF::SIP::ExtensionPoint::V1::AuthHookPrx &hook, int priority, AsteriskSCF::SIP::ExtensionPoint::V1::RequestTypeSeq &types);
+    void addAuthHook(const AsteriskSCF::SIP::ExtensionPoint::V1::AuthHookPrx &hook, int priority, const AsteriskSCF::SIP::ExtensionPoint::V1::RequestTypeSeq &types);
     /**
      * Remove a registered authentication hook from the AuthManager
      */
diff --git a/src/PJSipManager.cpp b/src/PJSipManager.cpp
index d81fb40..ce36bec 100644
--- a/src/PJSipManager.cpp
+++ b/src/PJSipManager.cpp
@@ -35,7 +35,7 @@ namespace AsteriskSCF
 namespace SipSessionManager
 {
 
-void PJSipManager::addAuthHook(AuthHookPrx hook, int priority, RequestTypeSeq types)
+void PJSipManager::addAuthHook(const AuthHookPrx &hook, int priority, const RequestTypeSeq &types)
 {
     if (mSessionModule)
     {
@@ -47,7 +47,7 @@ void PJSipManager::addAuthHook(AuthHookPrx hook, int priority, RequestTypeSeq ty
     }
 }
 
-void PJSipManager::removeAuthHook(const AuthHookPrx hook)
+void PJSipManager::removeAuthHook(const AuthHookPrx &hook)
 {
     if (mSessionModule)
     {
diff --git a/src/PJSipManager.h b/src/PJSipManager.h
index 4cf385d..016af2a 100644
--- a/src/PJSipManager.h
+++ b/src/PJSipManager.h
@@ -82,8 +82,8 @@ public:
      * for logging incoming and outgoing SIP messages
      */
     void registerLoggingModule();
-    void addAuthHook(AsteriskSCF::SIP::ExtensionPoint::V1::AuthHookPrx hook, int priority, AsteriskSCF::SIP::ExtensionPoint::V1::RequestTypeSeq types);
-    void removeAuthHook(const AsteriskSCF::SIP::ExtensionPoint::V1::AuthHookPrx hook);
+    void addAuthHook(const AsteriskSCF::SIP::ExtensionPoint::V1::AuthHookPrx &hook, int priority, const AsteriskSCF::SIP::ExtensionPoint::V1::RequestTypeSeq &types);
+    void removeAuthHook(const AsteriskSCF::SIP::ExtensionPoint::V1::AuthHookPrx &hook);
     void clearAuthHooks();
 private:
     static PJSipManager *mInstance;
diff --git a/src/PJSipModule.cpp b/src/PJSipModule.cpp
index 2e837ee..c8ab351 100644
--- a/src/PJSipModule.cpp
+++ b/src/PJSipModule.cpp
@@ -154,12 +154,12 @@ TransactionState PJSipTransactionModInfo::transactionStateTranslate(pjsip_tsx_st
     return retState;
 }
 
-void PJSipModule::addAuthHook(AsteriskSCF::SIP::ExtensionPoint::V1::AuthHookPrx hook, int priority, AsteriskSCF::SIP::ExtensionPoint::V1::RequestTypeSeq types)
+void PJSipModule::addAuthHook(const AsteriskSCF::SIP::ExtensionPoint::V1::AuthHookPrx &hook, int priority, const AsteriskSCF::SIP::ExtensionPoint::V1::RequestTypeSeq &types)
 {
     mAuthManager->addAuthHook(hook, priority, types);
 }
 
-void PJSipModule::removeAuthHook(AsteriskSCF::SIP::ExtensionPoint::V1::AuthHookPrx hook)
+void PJSipModule::removeAuthHook(const AsteriskSCF::SIP::ExtensionPoint::V1::AuthHookPrx &hook)
 {
     mAuthManager->removeAuthHook(hook);
 }
diff --git a/src/PJSipModule.h b/src/PJSipModule.h
index 076ce6f..b403aa2 100644
--- a/src/PJSipModule.h
+++ b/src/PJSipModule.h
@@ -49,8 +49,8 @@ public:
     virtual pj_status_t on_tx_response(pjsip_tx_data *tdata) = 0;
     virtual void on_tsx_state(pjsip_transaction *tsx, pjsip_event *event) = 0;
     pjsip_module &getModule() { return mModule; };
-    void addAuthHook(AsteriskSCF::SIP::ExtensionPoint::V1::AuthHookPrx hook, int priority, AsteriskSCF::SIP::ExtensionPoint::V1::RequestTypeSeq types);
-    void removeAuthHook(AsteriskSCF::SIP::ExtensionPoint::V1::AuthHookPrx hook);
+    void addAuthHook(const AsteriskSCF::SIP::ExtensionPoint::V1::AuthHookPrx &hook, int priority, const AsteriskSCF::SIP::ExtensionPoint::V1::RequestTypeSeq &types);
+    void removeAuthHook(const AsteriskSCF::SIP::ExtensionPoint::V1::AuthHookPrx &hook);
     void clearAuthHooks();
 protected:
     PJSipModule() { }

-----------------------------------------------------------------------


-- 
asterisk-scf/release/sip.git



More information about the asterisk-scf-commits mailing list