summaryrefslogtreecommitdiff
path: root/include/dom/events/mutation_name_event.h
diff options
context:
space:
mode:
Diffstat (limited to 'include/dom/events/mutation_name_event.h')
-rw-r--r--include/dom/events/mutation_name_event.h54
1 files changed, 54 insertions, 0 deletions
diff --git a/include/dom/events/mutation_name_event.h b/include/dom/events/mutation_name_event.h
new file mode 100644
index 0000000..13d27a4
--- /dev/null
+++ b/include/dom/events/mutation_name_event.h
@@ -0,0 +1,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
+
+