forked from mirrors/tftp-hpa-google
28 lines
754 B
C
28 lines
754 B
C
/* $Id$ */
|
|
/* ----------------------------------------------------------------------- *
|
|
*
|
|
* Copyright 2001 H. Peter Anvin - All Rights Reserved
|
|
*
|
|
* This program is free software available under the same license
|
|
* as the "OpenBSD" operating system, distributed at
|
|
* http://www.openbsd.org/.
|
|
*
|
|
* ----------------------------------------------------------------------- */
|
|
|
|
/*
|
|
* remap.h
|
|
*
|
|
* Prototypes for regular-expression based filename remapping.
|
|
*/
|
|
|
|
#include <stdlib.h>
|
|
#include <stdio.h>
|
|
|
|
/* Opaque type */
|
|
struct rule;
|
|
|
|
/* 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);
|