diff options
Diffstat (limited to 'content/content_protected.h')
-rw-r--r-- | content/content_protected.h | 29 |
1 files changed, 25 insertions, 4 deletions
diff --git a/content/content_protected.h b/content/content_protected.h index f0a95b64d..fb3639c9c 100644 --- a/content/content_protected.h +++ b/content/content_protected.h @@ -37,17 +37,34 @@ struct content_redraw_data; struct http_parameter; struct content_handler { + /** + * content handler finalisation + */ void (*fini)(void); + /** + * create a content + */ nserror (*create)(const struct content_handler *handler, lwc_string *imime_type, const struct http_parameter *params, struct llcache_handle *llcache, - const char *fallback_charset, bool quirks, + const char *fallback_charset, + bool quirks, struct content **c); + /** + * ongoing fetch has received data + */ bool (*process_data)(struct content *c, - const char *data, unsigned int size); + const char *data, + unsigned int size); + + /** + * fetcher has completed retrieving all the data + * + * \param c The completed content. + */ bool (*data_complete)(struct content *c); void (*reformat)(struct content *c, int width, int height); void (*destroy)(struct content *c); @@ -84,10 +101,14 @@ struct content_handler { void (*remove_user)(struct content *c); bool (*exec)(struct content *c, const char *src, size_t srclen); - /** handler dependant content sensitive internal data interface. */ + /** + * handler dependant content sensitive internal data interface. + */ void * (*get_internal)(const struct content *c, void *context); - /** There must be one content per user for this type. */ + /** + * There must be one content per user for this type. + */ bool no_share; }; |