diff options
Diffstat (limited to 'src/core/pi.h')
-rw-r--r-- | src/core/pi.h | 22 |
1 files changed, 19 insertions, 3 deletions
diff --git a/src/core/pi.h b/src/core/pi.h index 4dca989..3f6d46c 100644 --- a/src/core/pi.h +++ b/src/core/pi.h @@ -13,12 +13,28 @@ struct dom_document; struct dom_processing_instruction; struct dom_string; +struct lwc_string_s; -dom_exception dom_processing_instruction_create(struct dom_document *doc, - struct dom_string *name, struct dom_string *value, +dom_exception _dom_processing_instruction_create(struct dom_document *doc, + struct lwc_string_s *name, struct dom_string *value, struct dom_processing_instruction **result); -void dom_processing_instruction_destroy(struct dom_document *doc, +void _dom_processing_instruction_destroy(struct dom_document *doc, struct dom_processing_instruction *pi); +#define _dom_processing_instruction_initialise _dom_node_initialise +#define _dom_processing_instruction_finalise _dom_node_finalise + +/* Following comes the protected vtable */ +void _dom_pi_destroy(struct dom_node_internal *node); +dom_exception _dom_pi_alloc(struct dom_document *doc, + struct dom_node_internal *n, struct dom_node_internal **ret); +dom_exception _dom_pi_copy(struct dom_node_internal *new, + struct dom_node_internal *old); + +#define DOM_PI_PROTECT_VTABLE \ + _dom_pi_destroy, \ + _dom_pi_alloc, \ + _dom_pi_copy + #endif |