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. typedef unsigned int uint32_t;
  15.  
  16. /**
  17.  * Severity levels for dom_msg function, based on syslog(3)
  18.  */
  19. enum {
  20.         DOM_MSG_DEBUG,
  21.         DOM_MSG_INFO,
  22.         DOM_MSG_NOTICE,
  23.         DOM_MSG_WARNING,
  24.         DOM_MSG_ERROR,
  25.         DOM_MSG_CRITICAL,
  26.         DOM_MSG_ALERT,
  27.         DOM_MSG_EMERGENCY
  28. };
  29.  
  30. /**
  31.  * Type of DOM message function
  32.  */
  33. typedef void (*dom_msg)(uint32_t severity, void *ctx, const char *msg, ...);
  34.  
  35. #endif
  36.