X-Git-Url: http://git.annexia.org/?p=whenjobs.git;a=blobdiff_plain;f=lib%2Fwhenstate.mli;h=f056c440faa0a7573eb77001f39798af8e6bea69;hp=15df0c15553e2d329d35138a1fbfa50979048766;hb=HEAD;hpb=2f2b5efdf699e4bc0723079dcd2f68a0fd44ce07 diff --git a/lib/whenstate.mli b/lib/whenstate.mli index 15df0c1..f056c44 100644 --- a/lib/whenstate.mli +++ b/lib/whenstate.mli @@ -73,8 +73,8 @@ val get_variable_names : t -> string list val nr_jobs : t -> int (** Returns the number of jobs in the state. *) -val get_dependencies : t -> string -> Whenexpr.job list -(** Return the jobs which depend on the named variable. *) +val get_dependencies : t -> string list -> Whenexpr.job list +(** Return the jobs which depend on the named variables. *) val get_whenjobs : t -> Whenexpr.job list val get_everyjobs : t -> Whenexpr.job list @@ -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.