/
hid.cljs
37 lines (24 loc) · 1.44 KB
/
hid.cljs
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
(ns chromex.app.hid (:require-macros [chromex.app.hid :refer [gen-wrap]])
(:require [chromex.core]))
; -- functions --------------------------------------------------------------------------------------------------------------
(defn get-devices* [config options]
(gen-wrap :function ::get-devices config options))
(defn get-user-selected-devices* [config options]
(gen-wrap :function ::get-user-selected-devices config options))
(defn connect* [config device-id]
(gen-wrap :function ::connect config device-id))
(defn disconnect* [config connection-id]
(gen-wrap :function ::disconnect config connection-id))
(defn receive* [config connection-id]
(gen-wrap :function ::receive config connection-id))
(defn send* [config connection-id report-id data]
(gen-wrap :function ::send config connection-id report-id data))
(defn receive-feature-report* [config connection-id report-id]
(gen-wrap :function ::receive-feature-report config connection-id report-id))
(defn send-feature-report* [config connection-id report-id data]
(gen-wrap :function ::send-feature-report config connection-id report-id data))
; -- events -----------------------------------------------------------------------------------------------------------------
(defn on-device-added* [config channel & args]
(gen-wrap :event ::on-device-added config channel args))
(defn on-device-removed* [config channel & args]
(gen-wrap :event ::on-device-removed config channel args))