1 #ifndef _STATEFS_PRIVATE_CONFIG_HPP_
2 #define _STATEFS_PRIVATE_CONFIG_HPP_
4 #include <statefs/config.hpp>
6 #include <cor/inotify.hpp>
7 #include <cor/options.hpp>
12 #include <boost/filesystem.hpp>
23 typedef std::shared_ptr<config::Library> lib_ptr;
24 typedef std::map<std::string, lib_ptr> config_map_type;
33 void lib_add(std::string
const &cfg_path, lib_ptr p);
34 void lib_rm(std::string
const &name);
36 cor::inotify::Handle inotify_;
41 std::unique_ptr<cor::inotify::Watch> watch_;
42 std::array<pollfd, 2> fds_;
43 std::thread mon_thread_;
45 config_map_type files_libs_;
48 bool check_name_load(std::string
const &, config_receiver_fn);
50 std::string dump(std::string
const&, std::ostream &
51 , std::string
const&, std::string
const&);
53 void save(std::string
const&, std::string
const&, std::string
const&);
57 #endif // _STATEFS_PRIVATE_CONFIG_HPP_