summaryrefslogtreecommitdiff
path: root/content/content_protected.h
diff options
context:
space:
mode:
authorVincent Sanders <vince@kyllikki.org>2019-07-10 16:42:52 +0100
committerVincent Sanders <vince@kyllikki.org>2019-07-10 16:42:52 +0100
commitc2fa6af0ff4098501560bd48f78dfbf9173f4021 (patch)
treeffceab0862b8c5e59c74a5ef26b38e051ec0ce50 /content/content_protected.h
parentf46b77160a0244b83ccd486df82ce14f7a4df59e (diff)
downloadnetsurf-c2fa6af0ff4098501560bd48f78dfbf9173f4021.tar.gz
netsurf-c2fa6af0ff4098501560bd48f78dfbf9173f4021.tar.bz2
make content close check the content status itself
make content handler open and close return error status
Diffstat (limited to 'content/content_protected.h')
-rw-r--r--content/content_protected.h4
1 files changed, 2 insertions, 2 deletions
diff --git a/content/content_protected.h b/content/content_protected.h
index 0101790d1..0358269f2 100644
--- a/content/content_protected.h
+++ b/content/content_protected.h
@@ -60,9 +60,9 @@ struct content_handler {
bool (*redraw)(struct content *c, struct content_redraw_data *data,
const struct rect *clip,
const struct redraw_context *ctx);
- void (*open)(struct content *c, struct browser_window *bw,
+ nserror (*open)(struct content *c, struct browser_window *bw,
struct content *page, struct object_params *params);
- void (*close)(struct content *c);
+ nserror (*close)(struct content *c);
void (*clear_selection)(struct content *c);
char * (*get_selection)(struct content *c);
nserror (*get_contextual_content)(struct content *c, int x, int y,