/
vpn_provider.cljs
37 lines (24 loc) · 1.38 KB
/
vpn_provider.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.ext.vpn-provider (:require-macros [chromex.ext.vpn-provider :refer [gen-wrap]])
(:require [chromex.core]))
; -- functions --------------------------------------------------------------------------------------------------------------
(defn create-config* [config name]
(gen-wrap :function ::create-config config name))
(defn destroy-config* [config id]
(gen-wrap :function ::destroy-config config id))
(defn set-parameters* [config parameters]
(gen-wrap :function ::set-parameters config parameters))
(defn send-packet* [config data]
(gen-wrap :function ::send-packet config data))
(defn notify-connection-state-changed* [config state]
(gen-wrap :function ::notify-connection-state-changed config state))
; -- events -----------------------------------------------------------------------------------------------------------------
(defn on-platform-message* [config channel & args]
(gen-wrap :event ::on-platform-message config channel args))
(defn on-packet-received* [config channel & args]
(gen-wrap :event ::on-packet-received config channel args))
(defn on-config-removed* [config channel & args]
(gen-wrap :event ::on-config-removed config channel args))
(defn on-config-created* [config channel & args]
(gen-wrap :event ::on-config-created config channel args))
(defn on-ui-event* [config channel & args]
(gen-wrap :event ::on-ui-event config channel args))