From ed87b08a1433f37253e6e4681ebfb8ade8ad2d35 Mon Sep 17 00:00:00 2001 From: Andrew Borodin Date: Wed, 1 Dec 2010 14:57:13 +0300 Subject: [PATCH] Fixed declaration of mouse callback type ...and minor indentation. Signed-off-by: Andrew Borodin --- lib/tty/mouse.h | 10 ++++++---- 1 file changed, 6 insertions(+), 4 deletions(-) diff --git a/lib/tty/mouse.h b/lib/tty/mouse.h index 5a66b9376..638eca49d 100644 --- a/lib/tty/mouse.h +++ b/lib/tty/mouse.h @@ -37,9 +37,6 @@ #define GPM_B_UP (1 << 4) #endif -/* Mouse callback */ -typedef int (*mouse_h) (Gpm_Event *, void *); - /*** enums ***************************************************************************************/ #ifndef HAVE_LIBGPM @@ -65,7 +62,10 @@ enum Gpm_Etype /* Constants returned from the mouse callback */ enum -{ MOU_NORMAL, MOU_REPEAT }; +{ + MOU_NORMAL, + MOU_REPEAT +}; /* Type of mouse support */ typedef enum @@ -88,6 +88,8 @@ typedef struct Gpm_Event } Gpm_Event; #endif /* !HAVE_LIBGPM */ +/* Mouse callback */ +typedef int (*mouse_h) (Gpm_Event *, void *); /*** global variables defined in .c file *********************************************************/ -- 2.11.4.GIT