Skip to content

Commit

Permalink
Feature: flexible probe module handling (#96)
Browse files Browse the repository at this point in the history
---------

Signed-off-by: aw <aw@pionix.de>
  • Loading branch information
a-w50 authored Aug 29, 2023
1 parent df31276 commit f735192
Show file tree
Hide file tree
Showing 3 changed files with 291 additions and 131 deletions.
3 changes: 3 additions & 0 deletions include/utils/config.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -91,6 +91,8 @@ class Config {
std::unordered_map<std::string, std::string> module_names;
std::unordered_map<std::string, ConfigCache> module_config_cache;

void load_and_validate_manifest(const std::string& module_id, const json& module_config);

public:
std::string get_module_name(const std::string& module_id);
bool module_provides(const std::string& module_name, const std::string& impl_id);
Expand All @@ -115,6 +117,7 @@ class Config {

///
/// \returns a json object that contains the main config
// FIXME (aw): this should be const and return the config by const ref!
json get_main_config();

///
Expand Down
Loading

0 comments on commit f735192

Please sign in to comment.