summaryrefslogtreecommitdiff
path: root/include/libnsfb.h
diff options
context:
space:
mode:
authorVincent Sanders <vince@netsurf-browser.org>2009-04-15 11:33:03 +0000
committerVincent Sanders <vince@netsurf-browser.org>2009-04-15 11:33:03 +0000
commit2b23052622dc6d4effbeee4f079561343347ebf7 (patch)
treeb411dbb345012196dde7f8b00b143c59427f44c5 /include/libnsfb.h
parentc554e32f8202e6628422cab831c996615911092d (diff)
downloadlibnsfb-2b23052622dc6d4effbeee4f079561343347ebf7.tar.gz
libnsfb-2b23052622dc6d4effbeee4f079561343347ebf7.tar.bz2
add event interface
svn path=/trunk/libnsfb/; revision=7088
Diffstat (limited to 'include/libnsfb.h')
-rw-r--r--include/libnsfb.h11
1 files changed, 6 insertions, 5 deletions
diff --git a/include/libnsfb.h b/include/libnsfb.h
index 8e07c7c..3236ea5 100644
--- a/include/libnsfb.h
+++ b/include/libnsfb.h
@@ -6,6 +6,7 @@
typedef struct nsfb_cursor_s nsfb_cursor_t;
typedef struct nsfb_s nsfb_t;
typedef uint32_t nsfb_colour_t;
+typedef struct nsfb_event_s nsfb_event_t;
/** bounding box for plotting operations */
typedef struct nsfb_bbox_s {
@@ -19,10 +20,10 @@ typedef struct nsfb_bbox_s {
enum nsfb_frontend_e {
NSFB_FRONTEND_NONE = 0, /**< Empty frontend. */
NSFB_FRONTEND_SDL, /**< SDL frontend */
- NSFB_FRONTEND_LINUX,
- NSFB_FRONTEND_VNC,
- NSFB_FRONTEND_ABLE,
- NSFB_FRONTEND_RAM,
+ NSFB_FRONTEND_LINUX, /**< Linux frontend */
+ NSFB_FRONTEND_VNC, /**< VNC frontend */
+ NSFB_FRONTEND_ABLE, /**< ABLE frontend */
+ NSFB_FRONTEND_RAM, /**< RAM frontend */
};
/** Initialise nsfb context.
@@ -57,7 +58,7 @@ enum nsfb_frontend_e nsfb_frontend_from_name(const char *name);
/** Process input from a frontend.
*/
-int nsfb_input(nsfb_t *nsfb);
+bool nsfb_input(nsfb_t *nsfb, nsfb_event_t *event, int timeout);
/** Claim an area of screen to be redrawn.
*