1
0
mirror of https://github.com/v2fly/v2ray-core.git synced 2024-12-21 17:46:58 -05:00
This commit is contained in:
Darien Raymond 2017-11-22 23:15:14 +01:00
parent 9db6c187c6
commit 40d7c40489
No known key found for this signature in database
GPG Key ID: 7251FFA14BB18169
3 changed files with 11 additions and 2 deletions

View File

@ -1,9 +1,18 @@
package core
// PluginMetadata contains some brief information regarding a plugin.
type PluginMetadata struct {
// Name of the plugin
Name string
}
// GetMetadataFuncName is the name of the function in the plugin to return PluginMetadata.
const GetMetadataFuncName = "GetPluginMetadata"
// GetMetadataFunc is the type of the function in the plugin to return PluginMetadata.
type GetMetadataFunc func() PluginMetadata
// LoadPlugins loads all possible plugins in the 'plugin' directory.
func LoadPlugins() error {
return loadPluginsInternal()
}

View File

@ -12,7 +12,7 @@ import (
"v2ray.com/core/common/platform"
)
func LoadPlugins() error {
func loadPluginsInternal() error {
pluginPath := platform.GetPluginDirectory()
dir, err := os.Open(pluginPath)

View File

@ -2,6 +2,6 @@
package core
func LoadPlugins() error {
func loadPluginsInternal() error {
return nil
}