summaryrefslogtreecommitdiff
path: root/src/tokeniser/tokeniser.h
diff options
context:
space:
mode:
authorVincent Sanders <vince@netsurf-browser.org>2012-07-10 11:23:57 -0600
committerVincent Sanders <vince@netsurf-browser.org>2012-07-10 11:23:57 -0600
commitbdff981eef4a7434291941e6bca662357498bc59 (patch)
tree08a4e4d525f31b7ba87c21404e7e1edef4b01654 /src/tokeniser/tokeniser.h
parentca1f136faae71cd063a264cf45195fb47cdba2ba (diff)
downloadlibhubbub-bdff981eef4a7434291941e6bca662357498bc59.tar.gz
libhubbub-bdff981eef4a7434291941e6bca662357498bc59.tar.bz2
Add ability to pause tokenisation
Diffstat (limited to 'src/tokeniser/tokeniser.h')
-rw-r--r--src/tokeniser/tokeniser.h5
1 files changed, 4 insertions, 1 deletions
diff --git a/src/tokeniser/tokeniser.h b/src/tokeniser/tokeniser.h
index e13a03a..ed46d60 100644
--- a/src/tokeniser/tokeniser.h
+++ b/src/tokeniser/tokeniser.h
@@ -26,7 +26,8 @@ typedef enum hubbub_tokeniser_opttype {
HUBBUB_TOKENISER_TOKEN_HANDLER,
HUBBUB_TOKENISER_ERROR_HANDLER,
HUBBUB_TOKENISER_CONTENT_MODEL,
- HUBBUB_TOKENISER_PROCESS_CDATA
+ HUBBUB_TOKENISER_PROCESS_CDATA,
+ HUBBUB_TOKENISER_PAUSE
} hubbub_tokeniser_opttype;
/**
@@ -48,6 +49,8 @@ typedef union hubbub_tokeniser_optparams {
} content_model; /**< Current content model */
bool process_cdata; /**< Whether to process CDATA sections*/
+
+ bool pause_parse; /**< Pause parsing */
} hubbub_tokeniser_optparams;
/* Create a hubbub tokeniser */