X-Git-Url: http://git.annexia.org/?a=blobdiff_plain;f=lib%2Fwhenstate.mli;h=f056c440faa0a7573eb77001f39798af8e6bea69;hb=8582d10e7b131ffbfe1d92352e7df39230ce1124;hp=d9df5a92d5a58019b1e9b0fa2d8ccdb061fd4930;hpb=57d21a4a716b513d93790262db4a663c169814bd;p=whenjobs.git diff --git a/lib/whenstate.mli b/lib/whenstate.mli index d9df5a9..f056c44 100644 --- a/lib/whenstate.mli +++ b/lib/whenstate.mli @@ -83,6 +83,9 @@ val get_everyjobs : t -> Whenexpr.job list val get_job : t -> string -> Whenexpr.job (** Return the named job, or raise [Not_found]. *) +val get_job_names : t -> string list +(** Return the names of all jobs (running or not). *) + val evaluate_whenjob : ?onload:bool -> t -> Whenexpr.job -> bool * t (** This evaluates the whenjob and returns [true] iff the whenjob should be run now.