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_custom_event_h_
  9. #define dom_interntal_events_custom_event_h_
  10.  
  11. #include <dom/events/custom_event.h>
  12.  
  13. #include "events/event.h"
  14.  
  15. struct dom_custom_event {
  16.         struct dom_event base;
  17.         void *detail;
  18. };
  19.  
  20. /* Constructor */
  21. dom_exception _dom_custom_event_create(struct dom_document *doc,
  22.                 struct dom_custom_event **evt);
  23.  
  24. /* Destructor */
  25. void _dom_custom_event_destroy(struct dom_custom_event *evt);
  26.  
  27. /* Initialise function */
  28. dom_exception _dom_custom_event_initialise(struct dom_document *doc,
  29.                 struct dom_custom_event *evt);
  30.  
  31. /* Finalise function */
  32. void _dom_custom_event_finalise(struct dom_custom_event *evt);
  33.  
  34. #endif
  35.