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 2007 John-Mark Bell <jmb@netsurf-browser.org>
  6.  */
  7.  
  8. #ifndef dom_functypes_h_
  9. #define dom_functypes_h_
  10.  
  11. #include <stddef.h>
  12. #include <inttypes.h>
  13.  
  14. /**
  15.  * Severity levels for dom_msg function, based on syslog(3)
  16.  */
  17. enum {
  18.         DOM_MSG_DEBUG,
  19.         DOM_MSG_INFO,
  20.         DOM_MSG_NOTICE,
  21.         DOM_MSG_WARNING,
  22.         DOM_MSG_ERROR,
  23.         DOM_MSG_CRITICAL,
  24.         DOM_MSG_ALERT,
  25.         DOM_MSG_EMERGENCY
  26. };
  27.  
  28. /**
  29.  * Type of DOM message function
  30.  */
  31. typedef void (*dom_msg)(uint32_t severity, void *ctx, const char *msg, ...);
  32.  
  33. #endif
  34.