xref: /onnv-gate/usr/src/uts/common/sys/vtdaemon.h (revision 7688:2757e6e1bb2a)
1*7688SAaron.Zang@Sun.COM /*
2*7688SAaron.Zang@Sun.COM  * CDDL HEADER START
3*7688SAaron.Zang@Sun.COM  *
4*7688SAaron.Zang@Sun.COM  * The contents of this file are subject to the terms of the
5*7688SAaron.Zang@Sun.COM  * Common Development and Distribution License (the "License").
6*7688SAaron.Zang@Sun.COM  * You may not use this file except in compliance with the License.
7*7688SAaron.Zang@Sun.COM  *
8*7688SAaron.Zang@Sun.COM  * You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE
9*7688SAaron.Zang@Sun.COM  * or http://www.opensolaris.org/os/licensing.
10*7688SAaron.Zang@Sun.COM  * See the License for the specific language governing permissions
11*7688SAaron.Zang@Sun.COM  * and limitations under the License.
12*7688SAaron.Zang@Sun.COM  *
13*7688SAaron.Zang@Sun.COM  * When distributing Covered Code, include this CDDL HEADER in each
14*7688SAaron.Zang@Sun.COM  * file and include the License file at usr/src/OPENSOLARIS.LICENSE.
15*7688SAaron.Zang@Sun.COM  * If applicable, add the following below this CDDL HEADER, with the
16*7688SAaron.Zang@Sun.COM  * fields enclosed by brackets "[]" replaced with your own identifying
17*7688SAaron.Zang@Sun.COM  * information: Portions Copyright [yyyy] [name of copyright owner]
18*7688SAaron.Zang@Sun.COM  *
19*7688SAaron.Zang@Sun.COM  * CDDL HEADER END
20*7688SAaron.Zang@Sun.COM  */
21*7688SAaron.Zang@Sun.COM 
22*7688SAaron.Zang@Sun.COM /*
23*7688SAaron.Zang@Sun.COM  * Copyright 2008 Sun Microsystems, Inc.  All rights reserved.
24*7688SAaron.Zang@Sun.COM  * Use is subject to license terms.
25*7688SAaron.Zang@Sun.COM  */
26*7688SAaron.Zang@Sun.COM 
27*7688SAaron.Zang@Sun.COM #ifndef _SYS_VTDAEMON_H
28*7688SAaron.Zang@Sun.COM #define	_SYS_VTDAEMON_H
29*7688SAaron.Zang@Sun.COM 
30*7688SAaron.Zang@Sun.COM #ifdef __cplusplus
31*7688SAaron.Zang@Sun.COM extern "C" {
32*7688SAaron.Zang@Sun.COM #endif
33*7688SAaron.Zang@Sun.COM 
34*7688SAaron.Zang@Sun.COM #define	VT_DAEMON_DOOR_FILE	"/var/run/vt/vtdaemon_door"
35*7688SAaron.Zang@Sun.COM 
36*7688SAaron.Zang@Sun.COM #define	VT_EV_X_EXIT	0	/* <vt_num> */
37*7688SAaron.Zang@Sun.COM #define	VT_EV_HOTKEYS	1	/* <vt_num> */
38*7688SAaron.Zang@Sun.COM 
39*7688SAaron.Zang@Sun.COM /*
40*7688SAaron.Zang@Sun.COM  * The structure of a request to vtdaemon.
41*7688SAaron.Zang@Sun.COM  */
42*7688SAaron.Zang@Sun.COM typedef struct vt_cmd_arg {
43*7688SAaron.Zang@Sun.COM 	uchar_t		vt_ev;
44*7688SAaron.Zang@Sun.COM 	uint32_t	vt_num;
45*7688SAaron.Zang@Sun.COM } vt_cmd_arg_t;
46*7688SAaron.Zang@Sun.COM 
47*7688SAaron.Zang@Sun.COM #ifdef __cplusplus
48*7688SAaron.Zang@Sun.COM }
49*7688SAaron.Zang@Sun.COM #endif
50*7688SAaron.Zang@Sun.COM 
51*7688SAaron.Zang@Sun.COM #endif /* _SYS_VTDAEMON_H */
52