SyncConfig: allow access to ConfigTree

This will be needed to access other configs in the indirect password
lookup.
This commit is contained in:
Patrick Ohly 2013-07-26 11:58:30 +02:00
parent 059bb0bd6f
commit 1131379cc5

View file

@ -1603,6 +1603,12 @@ class SyncConfig {
/** file layout used by config */
Layout getLayout() const { return m_layout; }
/**
* The storage for the current config and (if the layout is SHARED_LAYOUT)
* also other configs. May be NULL.
*/
boost::shared_ptr<ConfigTree> getConfigTree() const { return m_tree; }
private:
/**
* scans for peer configurations