From 13fadb12fb400818e0ccb4c38b3bfce70ccfdad2 Mon Sep 17 00:00:00 2001 From: Bo Yang Date: Thu, 13 Aug 2009 09:33:24 +0000 Subject: Merge the Events module (branches/struggleyb/libdom-events) back to trunk. :) svn path=/trunk/dom/; revision=9236 --- include/dom/events/mutation_name_event.h | 54 ++++++++++++++++++++++++++++++++ 1 file changed, 54 insertions(+) create mode 100644 include/dom/events/mutation_name_event.h (limited to 'include/dom/events/mutation_name_event.h') 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 + */ + +#ifndef dom_events_mutation_name_event_h_ +#define dom_events_mutation_name_event_h_ + +#include +#include + +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 + + -- cgit v1.2.3