Use static plugin features in libcharon to define essential dependencies

This commit is contained in:
Tobias Brunner
2012-06-27 11:31:16 +02:00
parent ec3b332bf8
commit aa54ecef44
2 changed files with 11 additions and 1 deletions
+1
View File
@@ -167,6 +167,7 @@ void nm_backend_register()
static plugin_feature_t features[] = {
PLUGIN_CALLBACK((plugin_feature_callback_t)nm_backend_cb, NULL),
PLUGIN_PROVIDE(CUSTOM, "NetworkManager backend"),
PLUGIN_DEPENDS(CUSTOM, "libcharon"),
};
lib->plugins->add_static_features(lib->plugins, "nm-backend", features,
countof(features), TRUE);