Commit 6fca7f0
committed
vigil: Janet plugin bridge and hooks (slice 4 of 5)
Expose vigil/* Janet functions (live?, emit, list, get, set-state) to
plugins via a process-global OnceLock bridge in the plugin worker, and
register the three vigil lifecycle hooks (on-vigil-event, on-vigil-reap,
on-vigil-observance) in the loader. The keeper's plugin event channel is
installed into the bridge at startup so (vigil/emit ...) reaches the
keeper router across the worker/runtime thread boundary.1 parent 7776140 commit 6fca7f0
3 files changed
Lines changed: 450 additions & 0 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
2138 | 2138 | | |
2139 | 2139 | | |
2140 | 2140 | | |
| 2141 | + | |
| 2142 | + | |
| 2143 | + | |
| 2144 | + | |
| 2145 | + | |
| 2146 | + | |
| 2147 | + | |
| 2148 | + | |
| 2149 | + | |
| 2150 | + | |
| 2151 | + | |
2141 | 2152 | | |
2142 | 2153 | | |
2143 | 2154 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
37 | 37 | | |
38 | 38 | | |
39 | 39 | | |
| 40 | + | |
| 41 | + | |
| 42 | + | |
| 43 | + | |
40 | 44 | | |
41 | 45 | | |
42 | 46 | | |
| |||
0 commit comments