X-Git-Url: http://git.annexia.org/?p=virt-top.git;a=blobdiff_plain;f=src%2Futils.mli;fp=src%2Futils.mli;h=3c966f87b05c1a55112d59bbc0561b5b3215d174;hp=6e81215003452a59371b9d6c7cfe55f928cc6b60;hb=c513d05fd4e85953701b1023bef71af62613cf79;hpb=4f3794d5718249238a74b614a6b486465bc4315d diff --git a/src/utils.mli b/src/utils.mli index 6e81215..3c966f8 100644 --- a/src/utils.mli +++ b/src/utils.mli @@ -25,6 +25,9 @@ val (//) : string -> string -> string (* failwithf is a printf-like version of failwith. *) val failwithf : ('a, unit, string, 'b) format4 -> 'a +(* Return the list of integers [a..b] (inclusive). *) +val range : int -> int -> int list + (* Read a configuration file as a list of (lineno, key, value) pairs. * If the config file is missing this returns an empty list. *)