level.h 600 B

123456789101112131415161718192021222324252627
  1. /*
  2. * This file is part of the zlog Library.
  3. *
  4. * Copyright (C) 2011 by Hardy Simpson <HardySimpson1984@gmail.com>
  5. *
  6. * Licensed under the LGPL v2.1, see the file COPYING in base directory.
  7. */
  8. #ifndef __zlog_level_h
  9. #define __zlog_level_h
  10. #include "zc_defs.h"
  11. typedef struct zlog_level_s {
  12. int int_level;
  13. char str_uppercase[MAXLEN_PATH + 1];
  14. char str_lowercase[MAXLEN_PATH + 1];
  15. size_t str_len;
  16. int syslog_level;
  17. } zlog_level_t;
  18. zlog_level_t *zlog_level_new(char *line);
  19. void zlog_level_del(zlog_level_t *a_level);
  20. void zlog_level_profile(zlog_level_t *a_level, int flag);
  21. #endif