Reports for figuring out which accounts to freeze or boot; most of new SSL request...
[bpt/portal.git] / poll.sig
index 8111fe9..3542314 100644 (file)
--- a/poll.sig
+++ b/poll.sig
@@ -1,12 +1,12 @@
 signature POLL = sig
-    type poll = {id : int, usr : int, title : string, descr : string, starts : string, ends : string, votes : int}
+    type poll = {id : int, usr : int, title : string, descr : string, starts : string, ends : string, votes : int, official : bool}
 
     val lookupPoll : int -> poll
     val listPolls : unit -> poll list
     val listCurrentPolls : unit -> poll list
     val listPollsLimit : int -> poll list
 
-    val addPoll : int * string * string * string * string * int -> int
+    val addPoll : int * string * string * string * string * int * bool -> int
     val modPoll : poll -> unit
     val deletePoll : int -> unit
 
@@ -41,4 +41,8 @@ signature POLL = sig
     (* These operate on poll IDs. *)
     val countVoters : int -> int
     val listPollVoters : int -> Init.user list
+
+    val votingMembershipRequirement : int
+
+    val membershipLength : int -> int
 end