diff options
author | Vincent Sanders <vince@netsurf-browser.org> | 2011-11-21 08:44:10 +0000 |
---|---|---|
committer | Vincent Sanders <vince@netsurf-browser.org> | 2011-11-21 08:44:10 +0000 |
commit | 2dd32c7adb7116f1ad9ab2632d9fcf57a31e9fa2 (patch) | |
tree | 3528ebeb39ee0aadaf7faf0259b583b26172ed5c /include/frontend.h | |
parent | 81ad700162a2fa639a69c1c6e3969ed8f7b3f63b (diff) | |
download | libnsfb-2dd32c7adb7116f1ad9ab2632d9fcf57a31e9fa2.tar.gz libnsfb-2dd32c7adb7116f1ad9ab2632d9fcf57a31e9fa2.tar.bz2 |
Improve API to allow for RAM surfaces instead of direct blitting
Improve and update tests
Fix RAM surface
Fix VNC surface
svn path=/trunk/libnsfb/; revision=13158
Diffstat (limited to 'include/frontend.h')
-rw-r--r-- | include/frontend.h | 47 |
1 files changed, 0 insertions, 47 deletions
diff --git a/include/frontend.h b/include/frontend.h deleted file mode 100644 index fba407f..0000000 --- a/include/frontend.h +++ /dev/null @@ -1,47 +0,0 @@ -/* libnsfb framebuffer frontend support */ - -#include "libnsfb.h" -#include "libnsfb_plot.h" -#include "nsfb.h" - -/* frontend default options */ -typedef int (nsfb_fendfn_defaults_t)(nsfb_t *nsfb); -/* frontend init */ -typedef int (nsfb_fendfn_init_t)(nsfb_t *nsfb); -/* frontend finalise */ -typedef int (nsfb_fendfn_fini_t)(nsfb_t *nsfb); -/* frontend set geometry */ -typedef int (nsfb_fendfn_geometry_t)(nsfb_t *nsfb, int width, int height, int bpp); -/* frontend input */ -typedef bool (nsfb_fendfn_input_t)(nsfb_t *nsfb, nsfb_event_t *event, int timeout); -/* frontend area claim */ -typedef int (nsfb_fendfn_claim_t)(nsfb_t *nsfb, nsfb_bbox_t *box); -/* frontend area update */ -typedef int (nsfb_fendfn_update_t)(nsfb_t *nsfb, nsfb_bbox_t *box); -/* frontend cursor display */ -typedef int (nsfb_fendfn_cursor_t)(nsfb_t *nsfb, struct nsfb_cursor_s *cursor); - -typedef struct nsfb_frontend_rtns_s { - nsfb_fendfn_defaults_t *defaults; - nsfb_fendfn_init_t *initialise; - nsfb_fendfn_fini_t *finalise; - nsfb_fendfn_geometry_t *geometry; - nsfb_fendfn_input_t *input; - nsfb_fendfn_claim_t *claim; - nsfb_fendfn_update_t *update; - nsfb_fendfn_cursor_t *cursor; -} nsfb_frontend_rtns_t; - -void _nsfb_register_frontend(const enum nsfb_frontend_e type, const nsfb_frontend_rtns_t *rtns, const char *name); - - -/* macro which adds a builtin command with no argument limits */ -#define NSFB_FRONTEND_DEF(__name, __type, __rtns) \ - static void __name##_register_frontend(void) __attribute__((constructor)); \ - void __name##_register_frontend(void) { \ - _nsfb_register_frontend(__type, __rtns, #__name); \ - } - -/* Obtain routines for a frontend */ -nsfb_frontend_rtns_t *nsfb_frontend_get_rtns(enum nsfb_frontend_e type); - |