combine all code into a single binary

This commit is contained in:
cuu
2018-12-08 22:43:20 +08:00
parent 1826b16bee
commit 6ef7260d1f
9 changed files with 190 additions and 141 deletions

View File

@@ -4,6 +4,7 @@ import (
"log"
goplugin "plugin"
)
var PluginPool = NewPluginPool()
type PluginInterface interface {
@@ -90,3 +91,10 @@ func RunPlugin(p *goplugin.Plugin, main_screen *MainScreen) {
pi.Run(main_screen)
}
type UIPlugin struct{ //Loadable and injectable
Type int
SoFile string
FolderName string
LabelText string
EmbInterface PluginInterface
}