From 13fadb12fb400818e0ccb4c38b3bfce70ccfdad2 Mon Sep 17 00:00:00 2001 From: Bo Yang Date: Thu, 13 Aug 2009 09:33:24 +0000 Subject: Merge the Events module (branches/struggleyb/libdom-events) back to trunk. :) svn path=/trunk/dom/; revision=9236 --- src/core/document.h | 11 ++++++++++- 1 file changed, 10 insertions(+), 1 deletion(-) (limited to 'src/core/document.h') diff --git a/src/core/document.h b/src/core/document.h index 145eddf..ea961a2 100644 --- a/src/core/document.h +++ b/src/core/document.h @@ -21,6 +21,8 @@ #include "utils/resource_mgr.h" #include "utils/list.h" +#include "events/document_event.h" + struct dom_document; struct dom_namednodemap; struct dom_node; @@ -61,12 +63,16 @@ struct dom_document { /**< The deletion pending list */ struct lwc_string_s *id_name; /**< The ID attribute's name */ + + dom_document_event_internal dei; + /**< The DocumentEVent interface */ }; /* Initialise the document */ dom_exception _dom_document_initialise(struct dom_document *doc, struct dom_implementation *impl, dom_alloc alloc, void *pw, - struct lwc_context_s *ctx); + struct lwc_context_s *ctx, + dom_events_default_action_fetcher daf); /* Finalise the document */ bool _dom_document_finalise(struct dom_document *doc); @@ -77,6 +83,9 @@ dom_exception _dom_document_create_string(struct dom_document *doc, /* Create a lwc_string from C string */ dom_exception _dom_document_create_lwcstring(struct dom_document *doc, const uint8_t *data, size_t len, struct lwc_string_s **result); +/* Unref a lwc_string of this document */ +void _dom_document_unref_lwcstring(struct dom_document *doc, + struct lwc_string_s *str); /* Create a dom_string from a lwc_string */ dom_exception _dom_document_create_string_from_lwcstring( struct dom_document *doc, struct lwc_string_s *str, -- cgit v1.2.3