lkml.org 
[lkml]   [2009]   [Sep]   [19]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
    Patch in this message
    /
    From
    Subject[PATCH 42/79] vt: move kernel stuff out of vt.h
    Date
    From: Alan Cox <alan@linux.intel.com>

    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>
    ---
    include/linux/vt.h | 11 -----------
    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 89c03a1..831daf6 100644
    --- a/include/linux/vt.h
    +++ b/include/linux/vt.h
    @@ -1,17 +1,6 @@
    #ifndef _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
    diff --git a/include/linux/vt_kern.h b/include/linux/vt_kern.h
    index 5b53efe..c0c4e11 100644
    --- a/include/linux/vt_kern.h
    +++ b/include/linux/vt_kern.h
    @@ -13,6 +13,7 @@
    #include <linux/console_struct.h>
    #include <linux/mm.h>
    #include <linux/consolemap.h>
    +#include <linux/notifier.h>

    /*
    * Presently, a lot of graphics programs do not restore the contents of
    @@ -118,4 +119,15 @@ struct vt_spawn_console {
    extern struct vt_spawn_console vt_spawn_con;

    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 */
    --
    1.6.4.2


    \
     
     \ /
      Last update: 2009-09-19 23:57    [W:0.022 / U:152.732 seconds]
    ©2003-2016 Jasper Spaans. hosted at Digital OceanAdvertise on this site