1
1

Fixed declaration of mouse callback type

...and minor indentation.

Signed-off-by: Andrew Borodin <aborodin@vmail.ru>
Этот коммит содержится в:
Andrew Borodin 2010-12-01 14:57:13 +03:00
родитель 31eec9f7ea
Коммит ed87b08a14

Просмотреть файл

@ -37,9 +37,6 @@
#define GPM_B_UP (1 << 4) #define GPM_B_UP (1 << 4)
#endif #endif
/* Mouse callback */
typedef int (*mouse_h) (Gpm_Event *, void *);
/*** enums ***************************************************************************************/ /*** enums ***************************************************************************************/
#ifndef HAVE_LIBGPM #ifndef HAVE_LIBGPM
@ -65,7 +62,10 @@ enum Gpm_Etype
/* Constants returned from the mouse callback */ /* Constants returned from the mouse callback */
enum enum
{ MOU_NORMAL, MOU_REPEAT }; {
MOU_NORMAL,
MOU_REPEAT
};
/* Type of mouse support */ /* Type of mouse support */
typedef enum typedef enum
@ -88,6 +88,8 @@ typedef struct Gpm_Event
} Gpm_Event; } Gpm_Event;
#endif /* !HAVE_LIBGPM */ #endif /* !HAVE_LIBGPM */
/* Mouse callback */
typedef int (*mouse_h) (Gpm_Event *, void *);
/*** global variables defined in .c file *********************************************************/ /*** global variables defined in .c file *********************************************************/