diff options
-rw-r--r-- | src/state.h | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/src/state.h b/src/state.h index 6b8d8b2..cdab131 100644 --- a/src/state.h +++ b/src/state.h @@ -37,13 +37,17 @@ struct State { void AddRule(const Rule* rule); const Rule* LookupRule(const string& rule_name); + Edge* AddEdge(const Rule* rule); + Node* GetNode(const string& path); Node* LookupNode(const string& path); Node* SpellcheckNode(const string& path); + void AddIn(Edge* edge, const string& path); void AddOut(Edge* edge, const string& path); bool AddDefault(const string& path, string* error); + /// Reset state. Keeps all nodes and edges, but restores them to the /// state where we haven't yet examined the disk for dirty state. void Reset(); |