/
display_source.cljs
28 lines (18 loc) · 1.12 KB
/
display_source.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
(ns chromex.ext.display-source (:require-macros [chromex.ext.display-source :refer [gen-wrap]])
(:require [chromex.core]))
; -- functions --------------------------------------------------------------------------------------------------------------
(defn get-available-sinks* [config]
(gen-wrap :function ::get-available-sinks config))
(defn request-authentication* [config sink-id]
(gen-wrap :function ::request-authentication config sink-id))
(defn start-session* [config session-info]
(gen-wrap :function ::start-session config session-info))
(defn terminate-session* [config sink-id]
(gen-wrap :function ::terminate-session config sink-id))
; -- events -----------------------------------------------------------------------------------------------------------------
(defn on-sinks-updated* [config channel & args]
(gen-wrap :event ::on-sinks-updated config channel args))
(defn on-session-terminated* [config channel & args]
(gen-wrap :event ::on-session-terminated config channel args))
(defn on-session-error-occured* [config channel & args]
(gen-wrap :event ::on-session-error-occured config channel args))