summaryrefslogtreecommitdiffstatsabout
path: root/utility/util.h
blob: 9e3aed3f62d3d3aa8e5a47d072526e14b3e974f3 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
#ifndef UTIL_H_
#define UTIL_H_

#include "apr_pools.h"

#include "config.h"

char *lowerstr(apr_pool_t *pool, const char *input);

/**
 * Chomp new line characters off the end of the line
 */
void line_chomp(char *str);

void logging_init(config_t *cfg);

void logging_log(config_t *cfg, loglevel_e level, const char *fmt, ...)
            __attribute__((format(printf, 3, 4)));

#endif /*UTIL_H_*/