Skip to main content
aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
Diffstat (limited to 'python/src/tcf/services/remote/ProcessesV1Proxy.py')
-rw-r--r--python/src/tcf/services/remote/ProcessesV1Proxy.py24
1 files changed, 23 insertions, 1 deletions
diff --git a/python/src/tcf/services/remote/ProcessesV1Proxy.py b/python/src/tcf/services/remote/ProcessesV1Proxy.py
index 883b9d457..2eab77963 100644
--- a/python/src/tcf/services/remote/ProcessesV1Proxy.py
+++ b/python/src/tcf/services/remote/ProcessesV1Proxy.py
@@ -1,5 +1,5 @@
# *****************************************************************************
-# * Copyright (c) 2011, 2013 Wind River Systems, Inc. and others.
+# * Copyright (c) 2011-2014 Wind River Systems, Inc. and others.
# * All rights reserved. This program and the accompanying materials
# * are made available under the terms of the Eclipse Public License v1.0
# * which accompanies this distribution, and is available at
@@ -39,3 +39,25 @@ class ProcessesV1Proxy(ProcessesProxy.ProcessesProxy,
ctx = ProcessesProxy.ProcessContext(service, args[1])
done.doneStart(self.token, error, ctx)
return StartCommand().token
+
+ def getCapabilities(self, contextId, done):
+ done = self._makeCallback(done)
+ service = self
+
+ class GetCapabilitiesCommand(Command):
+
+ def __init__(self):
+ super(GetCapabilitiesCommand,
+ self).__init__(service.channel, service,
+ "getCapabilities", (contextId,))
+
+ def done(self, error, args):
+ capabilityData = None
+ if not error:
+ assert len(args) == 2
+ error = self.toError(args[0])
+ capabilityData = args[1]
+
+ done.doneGetCapabilities(self.token, error, capabilityData)
+
+ return GetCapabilitiesCommand().token

Back to the top