Persist variables to file (~/.whenjobs/variables).
[whenjobs.git] / lib / whentools.mli
index f2cefb6..773af14 100644 (file)
@@ -34,7 +34,13 @@ val set_variable_string : string -> string -> unit
 val set_variable_float : string -> float -> unit
 (** Set variable (just a wrapper around {!Whenfile.set_variable}). *)
 
+type preinfo = Whenexpr.preinfo
+
+val max : int -> preinfo -> bool
+val one : unit -> preinfo -> bool
+(** Pre functions to limit number of jobs running. *)
+
 type result = Whenexpr.result
 
 val mailto : ?only_on_failure:bool -> ?from:string -> string -> result -> unit
-(** Cleanup function to send mail. *)
+(** Post function to send mail. *)