X-Git-Url: http://review.tizen.org/git/?p=platform%2Fcore%2Fuifw%2Fat-spi2-atk.git;a=blobdiff_plain;f=libspi%2Fkeystrokelistener.h;h=7daca1583b1ac8e0d879868a47a9d5210112bbcc;hp=93a15a6cbc7ddfa6d05f1dbdfb4e7a178d111bd6;hb=e5a9e644107d0a366d8f4036fc8d363a4ff82255;hpb=d809d79f978308b8e2039e7958e6b5773950ed69 diff --git a/libspi/keystrokelistener.h b/libspi/keystrokelistener.h index 93a15a6..7daca15 100644 --- a/libspi/keystrokelistener.h +++ b/libspi/keystrokelistener.h @@ -30,15 +30,19 @@ extern "C" { #include #include #include +#include "keymasks.h" #define KEYSTROKE_LISTENER_TYPE (keystroke_listener_get_type ()) #define KEYSTROKE_LISTENER(o) (G_TYPE_CHECK_INSTANCE_CAST ((o), KEYSTROKE_LISTENER_TYPE, KeystrokeListener)) #define KEYSTROKE_LISTENER_CLASS(k) (G_TYPE_CHECK_CLASS_CAST((k), KEYSTROKE_LISTENER_TYPE, KeystrokeListenerClass)) -#define IS_KEYSTROKE_LISTENER(o) (G_TYPE_CHECK__INSTANCE_TYPE ((o), KEYSTROKE_LISTENER_TYPE)) +#define IS_KEYSTROKE_LISTENER(o) (G_TYPE_CHECK_INSTANCE_TYPE ((o), KEYSTROKE_LISTENER_TYPE)) #define IS_KEYSTROKE_LISTENER_CLASS(k) (G_TYPE_CHECK_CLASS_TYPE ((k), KEYSTROKE_LISTENER_TYPE)) +typedef gboolean (*BooleanKeystrokeListenerCB) (void *keystroke_ptr); + typedef struct { BonoboObject parent; + GList *callbacks; } KeystrokeListener; typedef struct { @@ -48,6 +52,11 @@ typedef struct { GType keystroke_listener_get_type (void); KeystrokeListener *keystroke_listener_new (void); +void keystroke_listener_add_callback (KeystrokeListener *listener, + BooleanKeystrokeListenerCB callback); +void keystroke_listener_remove_callback (KeystrokeListener *listener, + BooleanKeystrokeListenerCB callback); + #ifdef __cplusplus }