1
0
mirror of https://github.com/20kdc/OC-KittenOS.git synced 2024-12-25 10:28:06 +11:00

Document svc-virtudev

This commit is contained in:
20kdc 2020-03-28 19:12:31 +00:00
parent fab88f137c
commit 20c016f068
3 changed files with 46 additions and 18 deletions

View File

@ -251,24 +251,6 @@ return {
"docs/repoauthors/app-slaunch"
},
},
["svc-virtudev"] = {
desc = "a clone of vcomponent",
v = 0,
deps = {
"neo",
"zzz-license-pd"
},
dirs = {
"apps",
"docs",
"docs/repoauthors"
},
files = {
"apps/svc-virtudev.lua",
"apps/app-vdrslamp.lua",
"docs/repoauthors/svc-virtudev"
},
},
-- libraries
["lib-knbs"] = {
desc = "NBS reader/writer library",
@ -286,6 +268,25 @@ return {
"docs/repoauthors/lib-knbs"
},
},
["svc-virtudev"] = {
desc = "a clone of vcomponent",
v = 1,
deps = {
"neo",
"zzz-license-pd"
},
dirs = {
"apps",
"docs",
"docs/repoauthors"
},
files = {
"apps/svc-virtudev.lua",
"apps/app-vdrslamp.lua",
"docs/us-virtu",
"docs/repoauthors/svc-virtudev"
},
},
-- licenses (MUST BE IMMUTABLE)
["zzz-license-pd"] = {
desc = "license file 'Public Domain'",

View File

@ -1,3 +1,4 @@
repository/apps/svc-virtudev.lua: 20kdc, Public Domain
repository/apps/app-vdrslamp.lua: 20kdc, Public Domain
repository/docs/us-virtu: 20kdc, Public Domain

26
repository/docs/us-virtu Normal file
View File

@ -0,0 +1,26 @@
The "x.svc.virtudev" service allows
the creation of virtual components.
It provides two functions:
install = function (proxy):
Installs a virtual component.
The provided proxy must have:
address: The address (string)
type: The type (string)
It SHOULD have the 'slot' attribute
that proxies have.
uninstall = function (address):
Uninstalls a component that your
process installed by address.
The service automatically starts
and stops as required.
-- This is released into
the public domain.
-- No warranty is provided,
implied or otherwise.