1
0
mirror of https://gitlab.xiph.org/xiph/icecast-server.git synced 2024-06-23 06:25:24 +00:00
icecast-server/src/matchfile.h

24 lines
746 B
C

/* Icecast
*
* This program is distributed under the GNU General Public License, version 2.
* A copy of this license is included with this source.
*
* Copyright 2015, Philipp "ph3-der-loewe" Schafft <lion@lion.leolix.org>
*/
#ifndef __MATCHFILE_H__
#define __MATCHFILE_H__
struct matchfile_tag;
typedef struct matchfile_tag matchfile_t;
matchfile_t *matchfile_new(const char *filename);
int matchfile_addref(matchfile_t *file);
int matchfile_release(matchfile_t *file);
int matchfile_match(matchfile_t *file, const char *key);
/* returns 1 for allow or pass and 0 for deny */
int matchfile_match_allow_deny(matchfile_t *allow, matchfile_t *deny, const char *key);
#endif /* __MATCHFILE_H__ */