Cron and FTP queries
[hcoop/domtool2.git] / src / msgTypes.sml
index 480c905..f51e780 100644 (file)
 
 structure MsgTypes = struct
 
+datatype query =
+        QApt of string
+       (* Is this apt package installed? *)
+       | QCron of string
+       (* Is this user allowed to use cron? *)
+       | QFtp of string
+       (* Is this user allowed to use FTP? *)
+
 datatype msg =
         MsgOk
        (* Your request was processed successfully. *)
@@ -86,7 +94,7 @@ datatype msg =
        | MsgYes
        | MsgNo
        (* Answers to boolean queries *)
-       | MsgApt of string
-       (* Is this apt package installed on your host? *)
+       | MsgQuery of query
+       (* Ask for host-specific information *)
 
 end