diff options
author | Vincent Sanders <vince@kyllikki.org> | 2018-07-29 14:30:59 +0100 |
---|---|---|
committer | Vincent Sanders <vince@kyllikki.org> | 2018-07-29 14:30:59 +0100 |
commit | b2bb565402143c2b63d00ac8c89e3197ffe5354f (patch) | |
tree | 7f48272de45d93f689fb09bf01ca998a9901432c /src/surface/able.c | |
parent | 51d3ee85de73949483af79671fe9075a10e405e3 (diff) | |
download | libnsfb-b2bb565402143c2b63d00ac8c89e3197ffe5354f.tar.gz libnsfb-b2bb565402143c2b63d00ac8c89e3197ffe5354f.tar.bz2 |
remove broken surface handlers for ABLE and linux framebuffer interface
Diffstat (limited to 'src/surface/able.c')
-rw-r--r-- | src/surface/able.c | 59 |
1 files changed, 0 insertions, 59 deletions
diff --git a/src/surface/able.c b/src/surface/able.c deleted file mode 100644 index dd4c340..0000000 --- a/src/surface/able.c +++ /dev/null @@ -1,59 +0,0 @@ -/* - * Copyright 2009 Vincent Sanders <vince@simtec.co.uk> - * - * This file is part of libnsfb, http://www.netsurf-browser.org/ - * Licenced under the MIT License, - * http://www.opensource.org/licenses/mit-license.php - */ - -#include <stdbool.h> -#include <stdio.h> - -#include "libnsfb.h" -#include "libnsfb_plot.h" -#include "libnsfb_event.h" -#include "nsfb.h" -#include "surface.h" - -#define UNUSED(x) ((x) = (x)) - -static int able_set_geometry(nsfb_t *nsfb, int width, int height, enum nsfb_format_e format) -{ - if (nsfb->surface_priv != NULL) - return -1; /* if were already initialised fail */ - - nsfb->width = width; - nsfb->height = height; - nsfb->format = format; - - return 0; -} - -static int able_initialise(nsfb_t *nsfb) -{ - UNUSED(nsfb); - return 0; -} - -static int able_finalise(nsfb_t *nsfb) -{ - UNUSED(nsfb); - return 0; -} - -static bool able_input(nsfb_t *nsfb, nsfb_event_t *event, int timeout) -{ - UNUSED(nsfb); - UNUSED(event); - UNUSED(timeout); - return false; -} - -const nsfb_surface_rtns_t able_rtns = { - .initialise = able_initialise, - .finalise = able_finalise, - .input = able_input, - .geometry = able_set_geometry, -}; - -NSFB_SURFACE_DEF(able, NSFB_SURFACE_ABLE, &able_rtns) |