23 #include "bbsync_plugin.h"
25 #include "sync_thread.h"
45 std::set<std::string> peers;
46 std::set<std::string> ignored_peers;
48 std::string prefix =
"/fawkes/bbsync/";
49 std::string peers_prefix = prefix +
"peers/";
53 std::string peer = std::string(i->
path()).substr(peers_prefix.length());
54 peer = peer.substr(0, peer.find(
"/"));
56 if ((peers.find(peer) == peers.end()) && (ignored_peers.find(peer) == ignored_peers.end())) {
57 std::string peer_prefix = peers_prefix + peer +
"/";
73 ignored_peers.insert(peer);
80 throw Exception(
"No synchronization peers configured, aborting");
84 PLUGIN_DESCRIPTION(
"Synchronize with remote Fawkes BlackBoards")