minor test update
authorRalph Ronnquist <ralph.ronnquist@gmail.com>
Tue, 18 Apr 2023 03:49:12 +0000 (13:49 +1000)
committerRalph Ronnquist <ralph.ronnquist@gmail.com>
Tue, 18 Apr 2023 03:49:12 +0000 (13:49 +1000)
lsp-dbus-test.lsp

index 3482305526c5ea7b6bc6cee82d7575c66ca991bb..dd710834fef5d8f4bbe28af37e372fc503e9f015 100644 (file)
@@ -9,8 +9,8 @@
 
 ;; Request a bus name
 (println (if (:invoke Dbus:ROOT
-                      (print "RequestName(su)")
-                      (println (list (:bus-name au.rrq) 0)))
+                      (print (:m ObjectManager "RequestName(su)"))
+                      (println (list (:%name au.rrq) 0)))
              (!= ($it -1 -1 -1)) ; returns BOOLEAN
            ))
 (Dbus:process-all-pending)
 (println (if (:invoke Dbus:ROOT
                       (print "GetNameOwner(s)")
                       (println (list "org.bluez")))
-             ($it -1 -1 -1) ; Returns value
+             ($it -1 -1 -1) ; Return value
            ))
 (Dbus:process-all-pending)
 
-(setf org.bluez (Dbus "/org/bluez"))
+(println (setf org.bluez (Dbus "/" "org.bluez")))
 (println (if (:invoke org.bluez
-                      (print "/:org.freedesktop.DBus.ObjectManager.GetManagedObjects()")
-                      )
-             ($it -1 -1 -1) ; Returns value
+                      (println (:m ObjectManager "GetManagedObjects()")))
+             ($it -1 -1 -1) ; Return value
            ))