summaryrefslogtreecommitdiff
path: root/python
diff options
context:
space:
mode:
authorMagnus Feuer <mfeuer@jaguarlandrover.com>2015-02-12 13:39:39 -0800
committerMagnus Feuer <mfeuer@jaguarlandrover.com>2015-02-12 13:39:39 -0800
commit09c4d5c7b210857dbb87e551602a8d653a02b4b5 (patch)
tree27009d28fb6fd8685ade36b08343f3883a956d53 /python
parent7662cd353f40a79d457a8ef40a3aa070b0c6da96 (diff)
downloadrvi_core-09c4d5c7b210857dbb87e551602a8d653a02b4b5.tar.gz
Simplified
Diffstat (limited to 'python')
-rwxr-xr-xpython/rvi_service.py19
1 files changed, 0 insertions, 19 deletions
diff --git a/python/rvi_service.py b/python/rvi_service.py
index 3c08417..36817ce 100755
--- a/python/rvi_service.py
+++ b/python/rvi_service.py
@@ -49,21 +49,7 @@ def service_invoked(**args):
sys.stdout.flush()
return ['ok']
-def services_available(services):
- print
- print "Services available: ", services
- sys.stdout.write("Press enter to quit: ")
- sys.stdout.flush()
- return ['ok']
-
-def services_unavailable(services):
- print
- print "Services not available: ", services
-
- sys.stdout.write("Press enter to quit: ")
- sys.stdout.flush()
- return ['ok']
if len(sys.argv) != 3:
usage()
@@ -71,7 +57,6 @@ if len(sys.argv) != 3:
# Grab the URL to use
[ progname, rvi_node_url, service_name ] = sys.argv
-
# Setup a connection to the local RVI node
rvi = RVI(rvi_node_url)
@@ -85,10 +70,6 @@ rvi.start_serve_thread()
#
full_service_name = rvi.register_service(service_name, service_invoked)
-# Tie callbacks to be invoked as the RVI node reports to us
-# about other services being available.
-rvi.set_services_available_callback(services_available)
-rvi.set_services_unavailable_callback(services_unavailable)
print "RVI General Service."
print "RVI node URL: ", rvi_node_url