Debian Codegraph @

src/util.h

raw symbols SCIP
1 /*
2 * ezstream - source client for Icecast with external en-/decoder support
3 * Copyright (C) 2003, 2004, 2005, 2006 Ed Zaleski <[email protected]>
4 * Copyright (C) 2007, 2017 Moritz Grimm <[email protected]>
5 *
6 * This program is free software; you can redistribute it and/or modify
7 * it under the terms of the GNU General Public License version 2 as
8 * published by the Free Software Foundation.
9 *
10 * This program is distributed in the hope that it will be useful,
11 * but WITHOUT ANY WARRANTY; without even the implied warranty of
12 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
13 * GNU General Public License for more details.
14 */
15
16 #ifndef __UTIL_H__
17 #define __UTIL_H__
18
19 #ifndef UTIL_DEFAULT_PROGNAME
20 # define UTIL_DEFAULT_PROGNAME "ezstream"
21 #endif /* !UTIL_DEFAULT_PROGNAME */
22
23 struct util_dict {
24 const char *from;
25 const char *to;
26 };
27
28 const char *
29 util_get_progname(const char *);
30 int util_write_pid_file(const char *);
31 int util_strrcmp(const char *, const char *);
32 int util_strrcasecmp(const char *, const char *);
33 char * util_char2utf8(const char *);
34 char * util_utf82char(const char *);
35 char * util_expand_words(const char *, struct util_dict[]);
36 char * util_shellquote(const char *, size_t);
37
38 #endif /* __UTIL_H__ */