diff options
| author | Carl Hetherington <cth@carlh.net> | 2014-02-19 10:47:11 +0000 |
|---|---|---|
| committer | Carl Hetherington <cth@carlh.net> | 2014-02-19 10:47:11 +0000 |
| commit | b5b20f829ed95febe7aba55ebe3679c998b35b5e (patch) | |
| tree | fa4013a9646aee272ac8e7474275e2ad07cfec3e /src/lib/job.h | |
| parent | 6a15d65585af0e19b72200d1fd67e256cd1a7c6c (diff) | |
Add some basic JSON stuff.
Diffstat (limited to 'src/lib/job.h')
| -rw-r--r-- | src/lib/job.h | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/src/lib/job.h b/src/lib/job.h index 6310da32a..489464558 100644 --- a/src/lib/job.h +++ b/src/lib/job.h @@ -43,6 +43,7 @@ public: /** @return user-readable name of this job */ virtual std::string name () const = 0; + virtual std::string json_name () const = 0; /** Run this job in the current thread. */ virtual void run () = 0; @@ -64,6 +65,7 @@ public: int elapsed_time () const; virtual std::string status () const; + std::string json_status () const; std::string sub_name () const { return _sub_name; } |
