php-internal-docs 8.4.8
Unofficial docs for php/php-src
Loading...
Searching...
No Matches
event_target.c
Go to the documentation of this file.
1/*
2 * Copyright (C) 2018 Alexander Borisov
3 *
4 * Author: Alexander Borisov <borisov@lexbor.com>
5 */
6
9
10
13{
15
16 element = lexbor_mraw_calloc(document->mraw,
18 if (element == NULL) {
19 return NULL;
20 }
21
23
24 return element;
25}
26
29 lxb_dom_document_t *document)
30{
31 return lexbor_mraw_free(document->mraw, event_target);
32}
struct lxb_dom_document lxb_dom_document_t
Definition interface.h:41
struct lxb_dom_event_target lxb_dom_event_target_t
Definition interface.h:37
#define lxb_dom_interface_node(obj)
Definition interface.h:31
@ LXB_DOM_NODE_TYPE_UNDEF
Definition node.h:24
lxb_dom_event_target_t * lxb_dom_event_target_destroy(lxb_dom_event_target_t *event_target, lxb_dom_document_t *document)
lxb_dom_event_target_t * lxb_dom_event_target_create(lxb_dom_document_t *document)
#define NULL
Definition gdcache.h:45
void * lexbor_mraw_free(lexbor_mraw_t *mraw, void *data)
Definition mraw.c:392
void * lexbor_mraw_calloc(lexbor_mraw_t *mraw, size_t size)
Definition mraw.c:227
lexbor_mraw_t * mraw
Definition document.h:53