forked from mirrors/tftp-hpa-google
Actually integrate the regex rewriting stuff
This commit is contained in:
parent
7b993e8186
commit
428ecab386
2 changed files with 50 additions and 10 deletions
|
@ -17,12 +17,17 @@
|
|||
|
||||
#include <stdlib.h>
|
||||
#include <stdio.h>
|
||||
#include "../config.h"
|
||||
|
||||
/* Opaque type */
|
||||
struct rule;
|
||||
|
||||
#ifdef WITH_REGEX
|
||||
|
||||
/* Read a rule file */
|
||||
struct rule *parserulefile(FILE *);
|
||||
|
||||
/* Execute a rule set on a string; returns a malloc'd new string. */
|
||||
char *rewrite_string(const char *input, const struct rule *rules, int is_put);
|
||||
char *rewrite_string(const char *, const struct rule *, int);
|
||||
|
||||
#endif
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue