Cron and FTP queries
[hcoop/domtool2.git] / src / msgTypes.sml
index 3003a39..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. *)
@@ -83,5 +91,10 @@ datatype msg =
        (* Change a DBMS user's password *)
        | MsgShutdown
        (* Halt the server *)
+       | MsgYes
+       | MsgNo
+       (* Answers to boolean queries *)
+       | MsgQuery of query
+       (* Ask for host-specific information *)
 
 end