[asterisk-scf-commits] asterisk-scf/integration/servicediscovery.git branch "master" updated.
Commits to the Asterisk SCF project code repositories
asterisk-scf-commits at lists.digium.com
Sat Sep 11 15:46:33 CDT 2010
branch "master" has been updated
via 6fbd03b807c867086ae0bdf5db62bfa434368a9f (commit)
from e8d0807e05da99e7183bae3feab488bb5ee41430 (commit)
Summary of changes:
src/ServiceManagement.cpp | 6 ++++++
1 files changed, 6 insertions(+), 0 deletions(-)
- Log -----------------------------------------------------------------
commit 6fbd03b807c867086ae0bdf5db62bfa434368a9f
Author: Joshua Colp <jcolp at digium.com>
Date: Sat Sep 11 17:52:54 2010 -0300
Add the ability to get all services using locateAll by passing an empty category to the service locator.
diff --git a/src/ServiceManagement.cpp b/src/ServiceManagement.cpp
index 3283725..de7da38 100644
--- a/src/ServiceManagement.cpp
+++ b/src/ServiceManagement.cpp
@@ -179,6 +179,12 @@ bool ServiceManagementImpl::isSupported(const ServiceLocatorParamsPtr& params)
*/
bool ServiceLocatorParamsSpec::isSupported(const ServiceLocatorParamsPtr& params)
{
+ // If no category is passed to us then the component doing the locate wants everything/anything, so give it to them
+ if (params->category.empty())
+ {
+ return true;
+ }
+
/* This is just a simple comparison that acts as a preliminary, and perhaps final, check */
if (mParams->category != params->category)
{
-----------------------------------------------------------------------
--
asterisk-scf/integration/servicediscovery.git
More information about the asterisk-scf-commits
mailing list