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_events_custom_event_h_
  9. #define dom_events_custom_event_h_
  10.  
  11. #include <stdbool.h>
  12. #include <dom/core/exceptions.h>
  13. #include <dom/core/string.h>
  14.  
  15. typedef struct dom_custom_event dom_custom_event;
  16.  
  17. dom_exception _dom_custom_event_get_detail(dom_custom_event *evt,
  18.                 void **detail);
  19. #define dom_custom_event_get_detail(e, d) \
  20.                 _dom_custom_event_get_detail((dom_custom_event *) (e),\
  21.                 (void **) (d))
  22.  
  23. dom_exception _dom_custom_event_init_ns(dom_custom_event *evt,
  24.                 dom_string *namespace, dom_string *type,
  25.                 bool bubble, bool cancelable, void *detail);
  26. #define dom_custom_event_init_ns(e, n, t, b, c, d) \
  27.                 _dom_custom_event_init_ns((dom_custom_event *) (e), \
  28.                 (dom_string *) (n), (dom_string *) (t), \
  29.                 (bool) (b), (bool) (c), (void *) (d))
  30.  
  31. #endif
  32.