summaryrefslogtreecommitdiff
path: root/task.h
diff options
context:
space:
mode:
Diffstat (limited to 'task.h')
-rw-r--r--task.h2
1 files changed, 2 insertions, 0 deletions
diff --git a/task.h b/task.h
index f7a4758..9c2d622 100644
--- a/task.h
+++ b/task.h
@@ -31,6 +31,8 @@ public:
virtual std::vector<std::string> depends() const = 0;
virtual std::string target() const = 0;
+ virtual std::string toJSON() const { return {}; };
+
protected:
std::atomic<State> task_state{State::Unknown};
virtual int runInner() { return 0; };