Changed the directory structure, added a build script
[theodwalha.git] / theodwalha / include / module_manager.hpp
blob8de79691378fec628cea1b7fb3c88c6867cc59d4
1 #pragma once
3 #include <string>
4 #include <vector>
5 #include <ail/module.hpp>
6 #include <theodwalha/module.hpp>
8 struct module_entry
10 std::string name;
11 ail::dynamic_module * module_pointer;
12 request_handler_function handler;
15 class module_manager
17 public:
18 bool load_modules(std::string const & directory);
19 bool process_request(http_request & request, module_result & result);
21 private:
22 std::vector<module_entry> module_entries;