[asterisk-scf-commits] asterisk-scf/integration/sip.git branch "master" updated.
Commits to the Asterisk SCF project code repositories
asterisk-scf-commits at lists.digium.com
Mon Sep 13 09:38:31 CDT 2010
branch "master" has been updated
via ed31cb22af424677435bfd2d5167b9b557336af8 (commit)
from 0366102668eef58a8377ad44d5b5293ff9a184ef (commit)
Summary of changes:
src/CMakeLists.txt | 2 +
src/SipStateReplicator.cpp | 86 ++++++++++++++++++++++++++++++++++++++++++++
src/SipStateReplicator.h | 6 +++-
3 files changed, 93 insertions(+), 1 deletions(-)
create mode 100644 src/SipStateReplicator.cpp
- Log -----------------------------------------------------------------
commit ed31cb22af424677435bfd2d5167b9b557336af8
Author: Mark Michelson <mmichelson at digium.com>
Date: Mon Sep 13 09:36:34 2010 -0500
Start writing the SipStateReplicator implementation.
This does not compile. I'm only pushing this because I need to
pick up work from a different location.
diff --git a/src/CMakeLists.txt b/src/CMakeLists.txt
index 43761c9..6be8437 100644
--- a/src/CMakeLists.txt
+++ b/src/CMakeLists.txt
@@ -52,6 +52,8 @@ hydra_component_add_slice(SipStateReplicator SipStateReplicationIf)
hydra_component_add_slice(SipStateReplicator RoutingIf)
hydra_component_add_file(SipStateReplicator SipStateReplicatorApp.cpp)
+hydra_component_add_file(SipStateReplicator SipStateReplicator.h)
+hydra_component_add_file(SipStateReplicator SipStateReplicator.cpp)
hydra_component_add_ice_libraries(SipStateReplicator IceStorm)
diff --git a/src/SipStateReplicator.cpp b/src/SipStateReplicator.cpp
new file mode 100644
index 0000000..f0ea3c5
--- /dev/null
+++ b/src/SipStateReplicator.cpp
@@ -0,0 +1,86 @@
+/*
+ * Asterisk Scalable Communications Framework
+ *
+ * Copyright (C) 2010 -- Digium, Inc.
+ *
+ * All rights reserved.
+ */
+
+#include "SipStateReplicator.h"
+
+namespace AsteriskSCF
+{
+namespace SipChannelService
+{
+
+using namespace AsteriskSCF::SIP::V1;
+
+struct SipStateReplicatorImpl
+{
+public:
+ SipStateReplicatorImpl()
+ {
+ //stub;
+ }
+ void addListenerImpl(SipStateReplicatorListenerPrx listener)
+ {
+ //stub;
+ }
+ void removeListenerImpl(SipStateReplicatorListenerPrx listener)
+ {
+ //stub;
+ }
+ void setStateImpl(SipStateItemSeq items)
+ {
+ //stub;
+ }
+ void removeStateImpl(SipStateItemSeq items)
+ {
+ //stub;
+ }
+ SipStateItemSeq getStateImpl(Ice::StringSeq itemKeys)
+ {
+ //stub;
+ return SipStateItemSeq(0);
+ }
+ SipStateItemSeq getAllStatesImpl()
+ {
+ //stub;
+ return SipStateItemSeq(0);
+ }
+};
+
+SipStateReplicatorI::SipStateReplicatorI() : mImpl(new SipStateReplicatorImpl) {}
+
+void SipStateReplicatorI::addListener(SipStateReplicatorListenerPrx listener, Ice::Current &)
+{
+ mImpl->addListenerImpl(listener);
+}
+
+void SipStateReplicatorI::removeListener(SipStateReplicatorListenerPrx listener, Ice::Current &)
+{
+ mImpl->removeListenerImpl(listener);
+}
+
+void SipStateReplicatorI::setState(SipStateItemSeq items, Ice::Current &)
+{
+ mImpl->setStateImpl(items);
+}
+
+void SipStateReplicatorI::removeState(SipStateItemSeq items, Ice::Current &)
+{
+ mImpl->removeStateImpl(items);
+}
+
+SipStateItemSeq SipStateReplicatorI::getState(Ice::StringSeq itemKeys, Ice::Current &)
+{
+ return mImpl->getStateImpl(itemKeys);
+}
+
+SipStateItemSeq SipStateReplictorI::getAllStates(Ice::Current &)
+{
+ return mImpl->getAllStatesImpl();
+}
+
+};
+};
diff --git a/src/SipStateReplicator.h b/src/SipStateReplicator.h
index 3ab9e7d..a988085 100644
--- a/src/SipStateReplicator.h
+++ b/src/SipStateReplicator.h
@@ -16,13 +16,17 @@ namespace SipChannelService
using namespace AsteriskSCF::SIP::V1;
class SipStateReplicatorI : public SipStateReplicator
{
- SipStateReplicatorI() {};
+public:
+ SipStateReplicatorI();
void addListener(SipStateReplicatorListenerPrx listener, Ice::Current&);
void removeListener(SipStateReplicatorListenerPrx listener, Ice::Current &);
void setState(SipStateItemSeq items, Ice::Current &);
void removeState(SipStateItemSeq items, Ice::Current &);
SipStateItemSeq getState(Ice::StringSeq itemKeys, Ice::Current &);
SipStateItemSeq getAllStates(Ice::Current &);
+private:
+ struct SipStateReplicatorImpl;
+ struct SipStateReplicatorImpl *mImpl;
};
};
-----------------------------------------------------------------------
--
asterisk-scf/integration/sip.git
More information about the asterisk-scf-commits
mailing list