34 lines
871 B
C
34 lines
871 B
C
/*
|
|
* This file is part of the zlog Library.
|
|
*
|
|
* Copyright (C) 2011 by Hardy Simpson <HardySimpson1984@gmail.com>
|
|
*
|
|
* Licensed under the LGPL v2.1, see the file COPYING in base directory.
|
|
*/
|
|
|
|
#ifndef __zlog_level_list_h
|
|
#define __zlog_level_list_h
|
|
|
|
#include "zc_defs.h"
|
|
#include "level.h"
|
|
|
|
zc_arraylist_t *zlog_level_list_new(void);
|
|
void zlog_level_list_del(zc_arraylist_t *levels);
|
|
void zlog_level_list_profile(zc_arraylist_t *levels, int flag);
|
|
|
|
/* conf init use, slow */
|
|
/* if l is wrong or str=="", return -1 */
|
|
int zlog_level_list_set(zc_arraylist_t *levels, char *line);
|
|
|
|
/* spec output use, fast */
|
|
/* rule output use, fast */
|
|
/* if not found, return levels[254] */
|
|
zlog_level_t *zlog_level_list_get(zc_arraylist_t *levels, int l);
|
|
|
|
/* rule init use, slow */
|
|
/* if not found, return -1 */
|
|
int zlog_level_list_atoi(zc_arraylist_t *levels, char *str);
|
|
|
|
|
|
#endif
|