summaryrefslogtreecommitdiff
path: root/include
diff options
context:
space:
mode:
Diffstat (limited to 'include')
-rw-r--r--include/hubbub/functypes.h6
-rw-r--r--include/hubbub/parser.h6
-rw-r--r--include/hubbub/types.h11
3 files changed, 1 insertions, 22 deletions
diff --git a/include/hubbub/functypes.h b/include/hubbub/functypes.h
index 0d45e6a..c6dbee2 100644
--- a/include/hubbub/functypes.h
+++ b/include/hubbub/functypes.h
@@ -23,12 +23,6 @@ typedef void *(*hubbub_alloc)(void *ptr, size_t size, void *pw);
typedef void (*hubbub_token_handler)(const hubbub_token *token, void *pw);
/**
- * Type of document buffer handling function
- */
-typedef void (*hubbub_buffer_handler)(const uint8_t *data,
- size_t len, void *pw);
-
-/**
* Type of parse error handling function
*/
typedef void (*hubbub_error_handler)(uint32_t line, uint32_t col,
diff --git a/include/hubbub/parser.h b/include/hubbub/parser.h
index f7d8e1e..4249426 100644
--- a/include/hubbub/parser.h
+++ b/include/hubbub/parser.h
@@ -22,7 +22,6 @@ typedef struct hubbub_parser hubbub_parser;
*/
typedef enum hubbub_parser_opttype {
HUBBUB_PARSER_TOKEN_HANDLER,
- HUBBUB_PARSER_BUFFER_HANDLER,
HUBBUB_PARSER_ERROR_HANDLER,
HUBBUB_PARSER_CONTENT_MODEL,
HUBBUB_PARSER_TREE_HANDLER,
@@ -39,11 +38,6 @@ typedef union hubbub_parser_optparams {
} token_handler;
struct {
- hubbub_buffer_handler handler;
- void *pw;
- } buffer_handler;
-
- struct {
hubbub_error_handler handler;
void *pw;
} error_handler;
diff --git a/include/hubbub/types.h b/include/hubbub/types.h
index 5b49786..42d1460 100644
--- a/include/hubbub/types.h
+++ b/include/hubbub/types.h
@@ -70,16 +70,7 @@ typedef enum hubbub_ns {
* Tokeniser string type
*/
typedef struct hubbub_string {
- enum {
- HUBBUB_STRING_OFF,
- HUBBUB_STRING_PTR
- } type;
-
- union {
- const uint8_t *ptr; /**< Pointer to data */
- uint32_t off; /**< Byte offset of string start */
- } data;
-
+ const uint8_t *ptr; /**< Pointer to data */
size_t len; /**< Byte length of string */
} hubbub_string;