summaryrefslogtreecommitdiff
path: root/include/dom/events/mutation_name_event.h
blob: 13d27a44a1693d76086efc7b1caaa749e3e31211 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
/*
 * This file is part of libdom.
 * Licensed under the MIT License,
 *                http://www.opensource.org/licenses/mit-license.php
 * Copyright 2009 Bo Yang <struggleyb.nku@gmail.com>
 */

#ifndef dom_events_mutation_name_event_h_
#define dom_events_mutation_name_event_h_

#include <stdbool.h>
#include <dom/core/exceptions.h>

struct dom_string;
struct dom_node;

typedef struct dom_mutation_name_event dom_mutation_name_event;

dom_exception _dom_mutation_name_event_get_prev_namespace(
		dom_mutation_name_event *evt, struct dom_string **namespace);
#define dom_mutation_name_event_get_prev_namespace(e, n) \
		_dom_mutation_name_event_get_prev_namespace(\
		(dom_mutation_name_event *) (e), (struct dom_string **) (n))

dom_exception _dom_mutation_name_event_get_prev_node_name(
		dom_mutation_name_event *evt, struct dom_string **name);
#define dom_mutation_name_event_get_prev_node_name(e, n) \
		_dom_mutation_name_event_get_prev_node_name(\
		(dom_mutation_name_event *) (e), (struct dom_string **) (n))

dom_exception _dom_mutation_name_event_init(dom_mutation_name_event *evt, 
		struct dom_string *type, bool bubble, bool cancelable,
		struct dom_node *node, struct dom_string *prev_ns,
		struct dom_string *prev_name); 
#define dom_mutation_name_event_init(e, t, b, c, n, p, pn) \
		_dom_mutation_name_event_init((dom_mutation_name_event *) (e), \
		(struct dom_string *) (t), (bool) (b), (bool) (c), \
		(struct dom_node *) (n), (struct dom_string *) (p), \
		(struct dom_string *) (pn))

dom_exception _dom_mutation_name_event_init_ns(dom_mutation_name_event *evt, 
		struct dom_string *namespace, struct dom_string *type,
		bool bubble, bool cancelable, struct dom_node *node,
		struct dom_string *prev_ns, struct dom_string *prev_name);
#define dom_mutation_name_event_init_ns(e, n, t, b, c, nv, p, pn) \
		_dom_mutation_name_event_init_ns(\
		(dom_mutation_name_event *) (e), (struct dom_string *) (n),\
		(struct dom_string *) (t), (bool) (b), (bool) (c),\
		(struct dom_node *) (nv), (struct dom_string *) (p), \
		(struct dom_string *) (pn))

#endif