diff options
author | Alan Cox <alan@linux.intel.com> | 2009-09-19 16:13:25 -0400 |
---|---|---|
committer | Live-CD User <linux@linux.site> | 2009-09-19 16:13:25 -0400 |
commit | a5eb56242d1e2d82938a066219ac1cdf0d68adc8 (patch) | |
tree | 09e72d0ac44e7494499936fea0ad3fe1b5ce5633 | |
parent | 8d233558cd99a888571bb5a88a74970879e0aba4 (diff) |
vt: move kernel stuff out of vt.h
We have vt_kern.h for this
Signed-off-by: Alan Cox <alan@linux.intel.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
-rw-r--r-- | include/linux/vt.h | 11 | ||||
-rw-r--r-- | include/linux/vt_kern.h | 12 |
2 files changed, 12 insertions, 11 deletions
diff --git a/include/linux/vt.h b/include/linux/vt.h index 89c03a11e193..831daf64b90c 100644 --- a/include/linux/vt.h +++ b/include/linux/vt.h | |||
@@ -1,17 +1,6 @@ | |||
1 | #ifndef _LINUX_VT_H | 1 | #ifndef _LINUX_VT_H |
2 | #define _LINUX_VT_H | 2 | #define _LINUX_VT_H |
3 | 3 | ||
4 | #ifdef __KERNEL__ | ||
5 | struct notifier_block; | ||
6 | |||
7 | struct vt_notifier_param { | ||
8 | struct vc_data *vc; /* VC on which the update happened */ | ||
9 | unsigned int c; /* Printed char */ | ||
10 | }; | ||
11 | |||
12 | extern int register_vt_notifier(struct notifier_block *nb); | ||
13 | extern int unregister_vt_notifier(struct notifier_block *nb); | ||
14 | #endif | ||
15 | 4 | ||
16 | /* | 5 | /* |
17 | * These constants are also useful for user-level apps (e.g., VC | 6 | * These constants are also useful for user-level apps (e.g., VC |
diff --git a/include/linux/vt_kern.h b/include/linux/vt_kern.h index 5b53efe41b5c..c0c4e1103a73 100644 --- a/include/linux/vt_kern.h +++ b/include/linux/vt_kern.h | |||
@@ -13,6 +13,7 @@ | |||
13 | #include <linux/console_struct.h> | 13 | #include <linux/console_struct.h> |
14 | #include <linux/mm.h> | 14 | #include <linux/mm.h> |
15 | #include <linux/consolemap.h> | 15 | #include <linux/consolemap.h> |
16 | #include <linux/notifier.h> | ||
16 | 17 | ||
17 | /* | 18 | /* |
18 | * Presently, a lot of graphics programs do not restore the contents of | 19 | * Presently, a lot of graphics programs do not restore the contents of |
@@ -118,4 +119,15 @@ struct vt_spawn_console { | |||
118 | extern struct vt_spawn_console vt_spawn_con; | 119 | extern struct vt_spawn_console vt_spawn_con; |
119 | 120 | ||
120 | extern int vt_move_to_console(unsigned int vt, int alloc); | 121 | extern int vt_move_to_console(unsigned int vt, int alloc); |
122 | |||
123 | /* Interfaces for VC notification of character events (for accessibility etc) */ | ||
124 | |||
125 | struct vt_notifier_param { | ||
126 | struct vc_data *vc; /* VC on which the update happened */ | ||
127 | unsigned int c; /* Printed char */ | ||
128 | }; | ||
129 | |||
130 | extern int register_vt_notifier(struct notifier_block *nb); | ||
131 | extern int unregister_vt_notifier(struct notifier_block *nb); | ||
132 | |||
121 | #endif /* _VT_KERN_H */ | 133 | #endif /* _VT_KERN_H */ |