summaryrefslogtreecommitdiff
path: root/units/bluetooth
diff options
Diffstat (limited to 'units/bluetooth')
-rw-r--r--units/bluetooth/jobs.pxu13
-rw-r--r--units/bluetooth/manifest.pxu5
2 files changed, 18 insertions, 0 deletions
diff --git a/units/bluetooth/jobs.pxu b/units/bluetooth/jobs.pxu
index 7ab5243..3b71e70 100644
--- a/units/bluetooth/jobs.pxu
+++ b/units/bluetooth/jobs.pxu
@@ -1,3 +1,16 @@
+unit: job
+id: bluetooth/detect
+category_id: com.canonical.plainbox::bluetooth
+_summary: Make sure at least one bluetooth device is detected
+plugin: shell
+command:
+ bt_list_adapters.py
+estimated_duration: 2s
+flags: preserve-locale
+requires: manifest.has_bt_adapter
+imports: from com.canonical.plainbox import manifest
+
+
plugin: shell
category_id: com.canonical.plainbox::bluetooth
id: bluetooth/detect-output
diff --git a/units/bluetooth/manifest.pxu b/units/bluetooth/manifest.pxu
index ebf5874..576f7a8 100644
--- a/units/bluetooth/manifest.pxu
+++ b/units/bluetooth/manifest.pxu
@@ -1,4 +1,9 @@
unit: manifest entry
+id: has_bt_adapter
+_name: A Bluetooth Adapter
+value-type: bool
+
+unit: manifest entry
id: has_bt_smart
_name: Bluetooth Smart (4.0 or later) Support
value-type: bool