X-Git-Url: http://git.ozlabs.org/?a=blobdiff_plain;ds=sidebyside;f=discover%2Fplatform.c;h=8ce52fc8c539f8d567581822bc487f1e266121ad;hb=cf9e0cd6f7caf7b171457f7bf9f56f23ec3e478c;hp=237da3a9f0ece3427071844d9e611226da364c9b;hpb=4b906ba9ad0e19e5b9fcafdaa1318f7642e578a1;p=petitboot diff --git a/discover/platform.c b/discover/platform.c index 237da3a..8ce52fc 100644 --- a/discover/platform.c +++ b/discover/platform.c @@ -213,6 +213,19 @@ int platform_get_sysinfo(struct system_info *info) return -1; } +bool platform_restrict_clients(){ + if (platform && platform->restrict_clients) + return platform->restrict_clients(platform); + return false; +} + +int platform_set_password(const char *hash) +{ + if (platform && platform->set_password) + return platform->set_password(platform, hash); + return -1; +} + int config_set(struct config *newconfig) { int rc; @@ -455,7 +468,7 @@ static int read_bootdev(void *ctx, char **pos, struct autoboot_option *opt) return rc; } -static void config_populate_bootdev(struct config *config, +void config_populate_bootdev(struct config *config, const struct param_list *pl) { struct autoboot_option *opt, *new = NULL;