diff options
author | Vincent Sanders <vince@netsurf-browser.org> | 2009-04-15 11:33:03 +0000 |
---|---|---|
committer | Vincent Sanders <vince@netsurf-browser.org> | 2009-04-15 11:33:03 +0000 |
commit | 2b23052622dc6d4effbeee4f079561343347ebf7 (patch) | |
tree | b411dbb345012196dde7f8b00b143c59427f44c5 /test/frontend.c | |
parent | c554e32f8202e6628422cab831c996615911092d (diff) | |
download | libnsfb-2b23052622dc6d4effbeee4f079561343347ebf7.tar.gz libnsfb-2b23052622dc6d4effbeee4f079561343347ebf7.tar.bz2 |
add event interface
svn path=/trunk/libnsfb/; revision=7088
Diffstat (limited to 'test/frontend.c')
-rw-r--r-- | test/frontend.c | 12 |
1 files changed, 11 insertions, 1 deletions
diff --git a/test/frontend.c b/test/frontend.c index bdc8d67..3d72229 100644 --- a/test/frontend.c +++ b/test/frontend.c @@ -1,8 +1,10 @@ #include <stdio.h> #include <stdbool.h> #include <stdlib.h> +#include <unistd.h> #include "libnsfb.h" + int main(int argc, char **argv) { nsfb_t *nsfb; @@ -27,12 +29,20 @@ int main(int argc, char **argv) return 2; } + if (nsfb_set_geometry(nsfb, 0, 0, 32) == -1) { + fprintf(stderr, "Unable to set geometry\n"); + nsfb_finalise(nsfb); + return 3; + } + if (nsfb_init_frontend(nsfb) == -1) { fprintf(stderr, "Unable to initialise nsfb frontend\n"); nsfb_finalise(nsfb); - return 3; + return 4; } + sleep(2); + nsfb_finalise(nsfb); return 0; } |