SCM Repository
[smlnj] Annotation of /sml/branches/SMLNJ/src/eXene/graph-util/get-dpy-sig.sml
Annotation of /sml/branches/SMLNJ/src/eXene/graph-util/get-dpy-sig.sml
Parent Directory
|
Revision Log
Revision 26 -
(view)
(download)
Original Path: sml/trunk/src/eXene/graph-util/get-dpy-sig.sml
1 : |
monnier |
26 |
(* get-dpy-sig.sml
|
2 : |
|
|
*
|
3 : |
|
|
* COPYRIGHT (c) 1998 Bell Labs, Lucent Technologies.
|
4 : |
|
|
*
|
5 : |
|
|
* Utility code for getting the display name and authentication information.
|
6 : |
|
|
*)
|
7 : |
|
|
|
8 : |
|
|
signature GET_DPY =
|
9 : |
|
|
sig
|
10 : |
|
|
|
11 : |
|
|
(* parse a string specifying a X display into its components. *)
|
12 : |
|
|
val parseDisplay : string -> {
|
13 : |
|
|
host : string,
|
14 : |
|
|
dpy : string,
|
15 : |
|
|
screen : string
|
16 : |
|
|
}
|
17 : |
|
|
|
18 : |
|
|
(* given an optional display name, return the display and authentication
|
19 : |
|
|
* information. If the argument is NONE, then we use the DISPLAY environment
|
20 : |
|
|
* variable if it is defined, and "" if it is not defined.
|
21 : |
|
|
*)
|
22 : |
|
|
val getDpy : string option -> (string * EXeneBase.authentication option)
|
23 : |
|
|
|
24 : |
|
|
end;
|
25 : |
|
|
|