diff options
author | Vincent Sanders <vince@netsurf-browser.org> | 2009-04-09 15:26:51 +0000 |
---|---|---|
committer | Vincent Sanders <vince@netsurf-browser.org> | 2009-04-09 15:26:51 +0000 |
commit | 6e4ab5b91771e516b3fb80f5692f31a23001d72c (patch) | |
tree | d36c59986fa08d01e0efbec0d4cb66c5f7ffc904 /include/frontend.h | |
parent | e136ab597105dcbe211ce0a1f49113b4cb14b1ca (diff) | |
download | libnsfb-6e4ab5b91771e516b3fb80f5692f31a23001d72c.tar.gz |
add frontend selection and fix finalisation support
svn path=/trunk/libnsfb/; revision=7072
Diffstat (limited to 'include/frontend.h')
-rw-r--r-- | include/frontend.h | 9 |
1 files changed, 7 insertions, 2 deletions
diff --git a/include/frontend.h b/include/frontend.h index ee76632..5590543 100644 --- a/include/frontend.h +++ b/include/frontend.h @@ -1,4 +1,6 @@ -#include "libnsfb.h" /* exported interface */ +/* libnsfb framebuffer frontend support */ + +#include "libnsfb.h" #include "nsfb.h" /* frontend default options */ @@ -25,7 +27,6 @@ typedef struct nsfb_frontend_rtns_s { void _nsfb_register_frontend(const enum nsfb_frontend_e type, const nsfb_frontend_rtns_t *rtns, const char *name); -nsfb_frontend_rtns_t *nsfb_frontend_get_rtns(enum nsfb_frontend_e type); /* macro which adds a builtin command with no argument limits */ #define NSFB_FRONTEND_DEF(__name, __type, __rtns) \ @@ -33,3 +34,7 @@ nsfb_frontend_rtns_t *nsfb_frontend_get_rtns(enum nsfb_frontend_e type); 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); + |