[asterisk-scf-commits] asterisk-scf/integration/ice-util-cpp.git branch "operation-context-propagation" created.

Commits to the Asterisk SCF project code repositories asterisk-scf-commits at lists.digium.com
Tue Jan 31 09:52:37 CST 2012


branch "operation-context-propagation" has been created
        at  341b917fb666edc302c8ace05a5f402645628347 (commit)

- Log -----------------------------------------------------------------
commit 341b917fb666edc302c8ace05a5f402645628347
Author: Brent Eagles <beagles at digium.com>
Date:   Tue Jan 31 12:22:11 2012 -0330

    Adding a standalone helper function for creating simple operation contexts.

diff --git a/include/AsteriskSCF/Helpers/OperationContext.h b/include/AsteriskSCF/Helpers/OperationContext.h
new file mode 100644
index 0000000..1f4b0ca
--- /dev/null
+++ b/include/AsteriskSCF/Helpers/OperationContext.h
@@ -0,0 +1,34 @@
+/*
+ * Asterisk SCF -- An open-source communications framework.
+ *
+ * Copyright (C) 2011, Digium, Inc.
+ *
+ * See http://www.asterisk.org for more information about
+ * the Asterisk SCF project. Please do not directly contact
+ * any of the maintainers of this project for assistance;
+ * the project provides a web site, mailing lists and IRC
+ * channels for your use.
+ *
+ * This program is free software, distributed under the terms of
+ * the GNU General Public License Version 2. See the LICENSE.txt file
+ * at the top of the source tree.
+ */
+#pragma once
+
+#include <IceUtil/UUID.h>
+#include <AsteriskSCF/System/OperationContextIf.h>
+
+namespace AsteriskSCF
+{
+
+/**
+ * createContext simply creates a new OperationContext instance with the ID set to a UUID.
+ */
+AsteriskSCF::System::V1::OperationContextPtr createContext()
+{
+    AsteriskSCF::System::V1::OperationContextPtr newContext(new AsteriskSCF::System::V1::OperationContext);
+    newContext->id = IceUtil::generateUUID();
+    return newContext;
+}
+
+} /* End of namespace AsteriskSCF */

commit ddcd69645b91e06540d0b44dfe6f3da459db5542
Author: Brent Eagles <beagles at digium.com>
Date:   Tue Jan 24 17:53:04 2012 -0330

    Syncing up test for recent changes to ServiceLocator slice

diff --git a/test/LocatorRegistration/LocatorRegistrationTest.cpp b/test/LocatorRegistration/LocatorRegistrationTest.cpp
index 5ce3370..7f84c58 100644
--- a/test/LocatorRegistration/LocatorRegistrationTest.cpp
+++ b/test/LocatorRegistration/LocatorRegistrationTest.cpp
@@ -181,6 +181,15 @@ public:
         }
     }
 
+    AsteriskSCF::Core::Discovery::V1::ServiceLocatorParamsSeq getLocatorParams(const Ice::Current&)
+    {
+        if (!mData->destroy())
+        {
+            throw Ice::ObjectNotExistException(__FILE__, __LINE__);
+        }
+        return AsteriskSCF::Core::Discovery::V1::ServiceLocatorParamsSeq();
+    }
+
 private:
     IceUtil::Handle<RegistrationData> mData;
 };

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


-- 
asterisk-scf/integration/ice-util-cpp.git



More information about the asterisk-scf-commits mailing list