diff options
author | Daniel Silverstone <dsilvers@digital-scurf.org> | 2019-08-04 09:36:49 +0100 |
---|---|---|
committer | Daniel Silverstone <dsilvers@digital-scurf.org> | 2019-08-04 11:22:40 +0100 |
commit | b48e462f0f542f82db95d9b8613339a9b748808e (patch) | |
tree | e83ed0450419f5dbc831523924fa3b19d7391d5d /content/content.h | |
parent | f59a726f6899bd970ab5c1b853323442a6a9e473 (diff) | |
download | netsurf-b48e462f0f542f82db95d9b8613339a9b748808e.tar.gz netsurf-b48e462f0f542f82db95d9b8613339a9b748808e.tar.bz2 |
content, hlcache: Propagate query events upward
Signed-off-by: Daniel Silverstone <dsilvers@digital-scurf.org>
Diffstat (limited to 'content/content.h')
-rw-r--r-- | content/content.h | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/content/content.h b/content/content.h index 2d0646dab..304384b8f 100644 --- a/content/content.h +++ b/content/content.h @@ -43,6 +43,7 @@ struct hlcache_handle; struct object_params; struct rect; struct redraw_context; +struct llcache_query_msg; /** Status of a content */ typedef enum { @@ -58,6 +59,8 @@ typedef enum { /** Used in callbacks to indicate what has occurred. */ typedef enum { CONTENT_MSG_LOG, /**< Content wishes to log something */ + CONTENT_MSG_QUERY, /**< Something under the content has a query */ + CONTENT_MSG_QUERY_FINISHED, /**< Something under the content finished its query */ CONTENT_MSG_LOADING, /**< fetching or converting */ CONTENT_MSG_READY, /**< may be displayed */ CONTENT_MSG_DONE, /**< finished */ @@ -105,6 +108,10 @@ union content_msg_data { size_t msglen; /**< The length of that message */ browser_window_console_flags flags; /**< The flags of the logging */ } log; + /** CONTENT_MSG_QUERY - Query from underlying object somewhere */ + const struct llcache_query_msg *query_msg; + /** CONTENT_MSG_QUERY_FINISHED - Query from underlying object finished */ + void *query_finished_pw; /** CONTENT_MSG_ERROR - Error message */ const char *error; /** CONTENT_MSG_ERRORCODE - Error code */ |