libdom
Loading...
Searching...
No Matches
mutation_name_event.h
Go to the documentation of this file.
1/*
2 * This file is part of libdom.
3 * Licensed under the MIT License,
4 * http://www.opensource.org/licenses/mit-license.php
5 * Copyright 2009 Bo Yang <struggleyb.nku@gmail.com>
6 */
7
8#ifndef dom_events_mutation_name_event_h_
9#define dom_events_mutation_name_event_h_
10
11#include <stdbool.h>
12#include <dom/core/exceptions.h>
13#include <dom/core/string.h>
14
15struct dom_node;
16
18
20 dom_mutation_name_event *evt, dom_string **namespace);
21#define dom_mutation_name_event_get_prev_namespace(e, n) \
22 _dom_mutation_name_event_get_prev_namespace(\
23 (dom_mutation_name_event *) (e), (dom_string **) (n))
24
27#define dom_mutation_name_event_get_prev_node_name(e, n) \
28 _dom_mutation_name_event_get_prev_node_name(\
29 (dom_mutation_name_event *) (e), (dom_string **) (n))
30
32 dom_string *type, bool bubble, bool cancelable,
33 struct dom_node *node, dom_string *prev_ns,
34 dom_string *prev_name);
35#define dom_mutation_name_event_init(e, t, b, c, n, p, pn) \
36 _dom_mutation_name_event_init((dom_mutation_name_event *) (e), \
37 (dom_string *) (t), (bool) (b), (bool) (c), \
38 (struct dom_node *) (n), (dom_string *) (p), \
39 (dom_string *) (pn))
40
42 dom_string *namespace, dom_string *type,
43 bool bubble, bool cancelable, struct dom_node *node,
44 dom_string *prev_ns, dom_string *prev_name);
45#define dom_mutation_name_event_init_ns(e, n, t, b, c, nv, p, pn) \
46 _dom_mutation_name_event_init_ns(\
47 (dom_mutation_name_event *) (e), (dom_string *) (n),\
48 (dom_string *) (t), (bool) (b), (bool) (c),\
49 (struct dom_node *) (nv), (dom_string *) (p), \
50 (dom_string *) (pn))
51
52#endif
53
54
dom_exception
Definition exceptions.h:24
dom_exception _dom_mutation_name_event_init(dom_mutation_name_event *evt, dom_string *type, bool bubble, bool cancelable, struct dom_node *node, dom_string *prev_ns, dom_string *prev_name)
Definition mutation_name_event.c:114
dom_exception _dom_mutation_name_event_init_ns(dom_mutation_name_event *evt, dom_string *namespace, dom_string *type, bool bubble, bool cancelable, struct dom_node *node, dom_string *prev_ns, dom_string *prev_name)
Definition mutation_name_event.c:143
dom_exception _dom_mutation_name_event_get_prev_node_name(dom_mutation_name_event *evt, dom_string **name)
Definition mutation_name_event.c:93
dom_exception _dom_mutation_name_event_get_prev_namespace(dom_mutation_name_event *evt, dom_string **namespace)
Definition mutation_name_event.c:77
Definition mutation_name_event.h:18
Definition node.h:79
Definition string.h:19