E-mail aliases
[hcoop/domtool2.git] / src / domain.sig
index 0d74a54..8c79274 100644 (file)
  * You should have received a copy of the GNU General Public License
  * along with this program; if not, write to the Free Software
  * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA  02110-1301, USA.
-*)
+ *)
 
 (* Domain-related primitive actions *)
 
 signature DOMAIN = sig
 
+    val isIdent : char -> bool
+    val validHost : string -> bool
+    val validDomain : string -> bool
+
     val registerBefore : (string -> unit) -> unit
     val registerAfter : (string -> unit) -> unit
     (* Register handlers to run just before and after entering a domain
      * block. *)
 
+    val currentDomain : unit -> string
+
+    val domainFile : string -> TextIO.outstream
+    (* Open one of the current domain's configuration files. *)
+
 end