diff options
author | Bo Yang <struggleyb.nku@gmail.com> | 2009-08-13 09:33:24 +0000 |
---|---|---|
committer | Bo Yang <struggleyb.nku@gmail.com> | 2009-08-13 09:33:24 +0000 |
commit | 13fadb12fb400818e0ccb4c38b3bfce70ccfdad2 (patch) | |
tree | 19c55b39d97567a37b88b49aaaac13b21b9f24ee /src/core/document.h | |
parent | bf6bc398bd40e39a016725550f5b8446a01ee2d1 (diff) | |
download | libdom-13fadb12fb400818e0ccb4c38b3bfce70ccfdad2.tar.gz libdom-13fadb12fb400818e0ccb4c38b3bfce70ccfdad2.tar.bz2 |
Merge the Events module (branches/struggleyb/libdom-events) back to trunk. :)
svn path=/trunk/dom/; revision=9236
Diffstat (limited to 'src/core/document.h')
-rw-r--r-- | src/core/document.h | 11 |
1 files changed, 10 insertions, 1 deletions
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, |