From bdff981eef4a7434291941e6bca662357498bc59 Mon Sep 17 00:00:00 2001 From: Vincent Sanders Date: Tue, 10 Jul 2012 11:23:57 -0600 Subject: Add ability to pause tokenisation --- src/tokeniser/tokeniser.h | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) (limited to 'src/tokeniser/tokeniser.h') 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 */ -- cgit v1.2.3