Commit a5eb5624 authored by Alan Cox's avatar Alan Cox Committed by Live-CD User

vt: move kernel stuff out of vt.h

We have vt_kern.h for this
Signed-off-by: default avatarAlan Cox <alan@linux.intel.com>
Signed-off-by: default avatarGreg Kroah-Hartman <gregkh@suse.de>
parent 8d233558
#ifndef _LINUX_VT_H #ifndef _LINUX_VT_H
#define _LINUX_VT_H #define _LINUX_VT_H
#ifdef __KERNEL__
struct notifier_block;
struct vt_notifier_param {
struct vc_data *vc; /* VC on which the update happened */
unsigned int c; /* Printed char */
};
extern int register_vt_notifier(struct notifier_block *nb);
extern int unregister_vt_notifier(struct notifier_block *nb);
#endif
/* /*
* These constants are also useful for user-level apps (e.g., VC * These constants are also useful for user-level apps (e.g., VC
......
...@@ -13,6 +13,7 @@ ...@@ -13,6 +13,7 @@
#include <linux/console_struct.h> #include <linux/console_struct.h>
#include <linux/mm.h> #include <linux/mm.h>
#include <linux/consolemap.h> #include <linux/consolemap.h>
#include <linux/notifier.h>
/* /*
* Presently, a lot of graphics programs do not restore the contents of * Presently, a lot of graphics programs do not restore the contents of
...@@ -118,4 +119,15 @@ struct vt_spawn_console { ...@@ -118,4 +119,15 @@ struct vt_spawn_console {
extern struct vt_spawn_console vt_spawn_con; extern struct vt_spawn_console vt_spawn_con;
extern int vt_move_to_console(unsigned int vt, int alloc); extern int vt_move_to_console(unsigned int vt, int alloc);
/* Interfaces for VC notification of character events (for accessibility etc) */
struct vt_notifier_param {
struct vc_data *vc; /* VC on which the update happened */
unsigned int c; /* Printed char */
};
extern int register_vt_notifier(struct notifier_block *nb);
extern int unregister_vt_notifier(struct notifier_block *nb);
#endif /* _VT_KERN_H */ #endif /* _VT_KERN_H */
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment