selection.h: add tty_struct forward declaration
[safe/jmp/linux-2.6] / include / linux / selection.h
1 /*
2  * selection.h
3  *
4  * Interface between console.c, tty_io.c, vt.c, vc_screen.c and selection.c
5  */
6
7 #ifndef _LINUX_SELECTION_H_
8 #define _LINUX_SELECTION_H_
9
10 #include <linux/tiocl.h>
11 #include <linux/vt_buffer.h>
12
13 struct tty_struct;
14
15 extern struct vc_data *sel_cons;
16
17 extern void clear_selection(void);
18 extern int set_selection(const struct tiocl_selection __user *sel, struct tty_struct *tty);
19 extern int paste_selection(struct tty_struct *tty);
20 extern int sel_loadlut(char __user *p);
21 extern int mouse_reporting(void);
22 extern void mouse_report(struct tty_struct * tty, int butt, int mrx, int mry);
23
24 extern int console_blanked;
25
26 extern unsigned char color_table[];
27 extern int default_red[];
28 extern int default_grn[];
29 extern int default_blu[];
30
31 extern unsigned short *screen_pos(struct vc_data *vc, int w_offset, int viewed);
32 extern u16 screen_glyph(struct vc_data *vc, int offset);
33 extern void complement_pos(struct vc_data *vc, int offset);
34 extern void invert_screen(struct vc_data *vc, int offset, int count, int shift);
35
36 extern void getconsxy(struct vc_data *vc, unsigned char *p);
37 extern void putconsxy(struct vc_data *vc, unsigned char *p);
38
39 extern u16 vcs_scr_readw(struct vc_data *vc, const u16 *org);
40 extern void vcs_scr_writew(struct vc_data *vc, u16 val, u16 *org);
41
42 #endif