summaryrefslogtreecommitdiff
path: root/content
diff options
context:
space:
mode:
authorDaniel Silverstone <dsilvers@digital-scurf.org>2019-08-04 09:36:18 +0100
committerDaniel Silverstone <dsilvers@digital-scurf.org>2019-08-04 11:22:40 +0100
commitf59a726f6899bd970ab5c1b853323442a6a9e473 (patch)
tree659f7c36bddaae80d9e7e19e02510e155ce9eb16 /content
parent386d803371c94a4b10154fa544374dc7b09fb14a (diff)
downloadnetsurf-f59a726f6899bd970ab5c1b853323442a6a9e473.tar.gz
netsurf-f59a726f6899bd970ab5c1b853323442a6a9e473.tar.bz2
llcache.h: Migrate query event to own struct type
Signed-off-by: Daniel Silverstone <dsilvers@digital-scurf.org>
Diffstat (limited to 'content')
-rw-r--r--content/llcache.h15
1 files changed, 10 insertions, 5 deletions
diff --git a/content/llcache.h b/content/llcache.h
index 762edf060..dd2dadc72 100644
--- a/content/llcache.h
+++ b/content/llcache.h
@@ -117,6 +117,15 @@ typedef enum {
} llcache_event_type;
/**
+ * Low-level cache query message
+ */
+typedef struct llcache_query_msg {
+ llcache_query *query; /**< Query information */
+ llcache_query_response cb; /**< Response callback */
+ void *cb_pw; /**< Response callback private word */
+} llcache_query_msg;
+
+/**
* Low-level cache events.
*
* Lifetime of contained information is only for the duration of the event
@@ -134,11 +143,7 @@ typedef struct {
nsurl *from; /**< Redirect origin */
nsurl *to; /**< Redirect target */
} redirect; /**< Fetch URL redirect occured */
- struct {
- llcache_query *query; /**< Query information */
- llcache_query_response cb; /**< Response callback */
- void *cb_pw; /**< Response callback private word */
- } query; /**< Query event */
+ llcache_query_msg query;/**< Query event */
} data; /**< Event data */
} llcache_event;