mirror of
https://github.com/netsurf-browser/netsurf
synced 2024-11-22 14:31:20 +03:00
fix incorrect content handler function table operations return types
This commit is contained in:
parent
860fbc2f8c
commit
2b8501b342
@ -74,9 +74,9 @@ static void amiga_dt_anim_destroy(struct content *c);
|
||||
static bool amiga_dt_anim_redraw(struct content *c,
|
||||
struct content_redraw_data *data, const struct rect *clip,
|
||||
const struct redraw_context *ctx);
|
||||
static void amiga_dt_anim_open(struct content *c, struct browser_window *bw,
|
||||
static nserror amiga_dt_anim_open(struct content *c, struct browser_window *bw,
|
||||
struct content *page, struct object_params *params);
|
||||
static void amiga_dt_anim_close(struct content *c);
|
||||
static nserror amiga_dt_anim_close(struct content *c);
|
||||
static nserror amiga_dt_anim_clone(const struct content *old, struct content **newc);
|
||||
static content_type amiga_dt_anim_content_type(void);
|
||||
|
||||
@ -290,18 +290,18 @@ bool amiga_dt_anim_redraw(struct content *c,
|
||||
* \param box box containing c, or 0 if not an object
|
||||
* \param params object parameters, or 0 if not an object
|
||||
*/
|
||||
void amiga_dt_anim_open(struct content *c, struct browser_window *bw,
|
||||
nserror amiga_dt_anim_open(struct content *c, struct browser_window *bw,
|
||||
struct content *page, struct object_params *params)
|
||||
{
|
||||
NSLOG(netsurf, INFO, "amiga_dt_anim_open");
|
||||
|
||||
return;
|
||||
return NSERROR_OK;
|
||||
}
|
||||
|
||||
void amiga_dt_anim_close(struct content *c)
|
||||
nserror amiga_dt_anim_close(struct content *c)
|
||||
{
|
||||
NSLOG(netsurf, INFO, "amiga_dt_anim_close");
|
||||
return;
|
||||
return NSERROR_OK;
|
||||
}
|
||||
|
||||
void amiga_dt_anim_reformat(struct content *c, int width, int height)
|
||||
|
@ -58,7 +58,7 @@ static void amiga_dt_sound_destroy(struct content *c);
|
||||
static bool amiga_dt_sound_redraw(struct content *c,
|
||||
struct content_redraw_data *data, const struct rect *clip,
|
||||
const struct redraw_context *ctx);
|
||||
static void amiga_dt_sound_open(struct content *c, struct browser_window *bw,
|
||||
static nserror amiga_dt_sound_open(struct content *c, struct browser_window *bw,
|
||||
struct content *page, struct object_params *params);
|
||||
static nserror amiga_dt_sound_clone(const struct content *old, struct content **newc);
|
||||
static content_type amiga_dt_sound_content_type(void);
|
||||
@ -221,7 +221,7 @@ bool amiga_dt_sound_redraw(struct content *c,
|
||||
}
|
||||
|
||||
|
||||
void amiga_dt_sound_open(struct content *c, struct browser_window *bw,
|
||||
nserror amiga_dt_sound_open(struct content *c, struct browser_window *bw,
|
||||
struct content *page, struct object_params *params)
|
||||
{
|
||||
amiga_dt_sound_content *plugin = (amiga_dt_sound_content *) c;
|
||||
@ -248,7 +248,7 @@ void amiga_dt_sound_open(struct content *c, struct browser_window *bw,
|
||||
if(plugin->dto && (plugin->immediate == true))
|
||||
amiga_dt_sound_play(plugin->dto);
|
||||
|
||||
return;
|
||||
return NSERROR_OK;
|
||||
}
|
||||
|
||||
|
||||
|
@ -53,9 +53,9 @@ static void amiga_plugin_hack_destroy(struct content *c);
|
||||
static bool amiga_plugin_hack_redraw(struct content *c,
|
||||
struct content_redraw_data *data, const struct rect *clip,
|
||||
const struct redraw_context *ctx);
|
||||
static void amiga_plugin_hack_open(struct content *c, struct browser_window *bw,
|
||||
static nserror amiga_plugin_hack_open(struct content *c, struct browser_window *bw,
|
||||
struct content *page, struct object_params *params);
|
||||
static void amiga_plugin_hack_close(struct content *c);
|
||||
static nserror amiga_plugin_hack_close(struct content *c);
|
||||
static nserror amiga_plugin_hack_clone(const struct content *old, struct content **newc);
|
||||
static content_type amiga_plugin_hack_content_type(void);
|
||||
|
||||
@ -186,7 +186,7 @@ bool amiga_plugin_hack_redraw(struct content *c,
|
||||
* object within a page
|
||||
* \param params object parameters, or 0 if not an object
|
||||
*/
|
||||
void amiga_plugin_hack_open(struct content *c, struct browser_window *bw,
|
||||
nserror amiga_plugin_hack_open(struct content *c, struct browser_window *bw,
|
||||
struct content *page, struct object_params *params)
|
||||
{
|
||||
NSLOG(netsurf, INFO, "amiga_plugin_hack_open %s",
|
||||
@ -199,13 +199,13 @@ void amiga_plugin_hack_open(struct content *c, struct browser_window *bw,
|
||||
c->height = 0;
|
||||
}
|
||||
|
||||
return;
|
||||
return NSERROR_OK;
|
||||
}
|
||||
|
||||
void amiga_plugin_hack_close(struct content *c)
|
||||
nserror amiga_plugin_hack_close(struct content *c)
|
||||
{
|
||||
NSLOG(netsurf, INFO, "amiga_plugin_hack_close");
|
||||
return;
|
||||
return NSERROR_OK;
|
||||
}
|
||||
|
||||
void amiga_plugin_hack_reformat(struct content *c, int width, int height)
|
||||
|
Loading…
Reference in New Issue
Block a user