diff options
Diffstat (limited to 'services/python/hello-world.py')
-rwxr-xr-x | services/python/hello-world.py | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/services/python/hello-world.py b/services/python/hello-world.py index 92450ea..cbdc222 100755 --- a/services/python/hello-world.py +++ b/services/python/hello-world.py @@ -32,6 +32,16 @@ class Service(dbus.service.Object): def Echo(self, text): return text + @dbus.service.method("com.pengutronix.jdb.Hello", + in_signature='', out_signature='s') + def HelloUser(self): + return "Hello User!" + + @dbus.service.method("com.pengutronix.jdb.Hello", + in_signature='', out_signature='s') + def HelloAdmin(self): + return "Hello Admin!" + dbus.mainloop.glib.DBusGMainLoop(set_as_default=True) object = Service() |