Subversion Repositories Kolibri OS

Rev

Go to most recent revision | Blame | Last modification | View Log | Download | RSS feed

  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_interntal_events_mutation_event_h_
  9. #define dom_interntal_events_mutation_event_h_
  10.  
  11. #include <dom/events/mutation_event.h>
  12.  
  13. #include "events/event.h"
  14.  
  15. /**
  16.  * The MutationEvent
  17.  */
  18. struct dom_mutation_event {
  19.         struct dom_event base;
  20.  
  21.         struct dom_node *related_node;
  22.         dom_string *prev_value;
  23.         dom_string *new_value;
  24.         dom_string *attr_name;
  25.         dom_mutation_type change;
  26. };
  27.  
  28. /* Constructor */
  29. dom_exception _dom_mutation_event_create(struct dom_document *doc,
  30.                 struct dom_mutation_event **evt);
  31.  
  32. /* Destructor */
  33. void _dom_mutation_event_destroy(struct dom_mutation_event *evt);
  34.  
  35. /* Initialise function */
  36. dom_exception _dom_mutation_event_initialise(struct dom_document *doc,
  37.                 struct dom_mutation_event *evt);
  38.  
  39. /* Finalise function */
  40. void _dom_mutation_event_finalise(struct dom_mutation_event *evt);
  41.  
  42. #endif
  43.  
  44.