/* ----------------------------------------------------------------------- * * * 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/. * * ----------------------------------------------------------------------- */ /* * tftpd.h * * Prototypes for various functions that are part of the tftpd server. */ #ifndef TFTPD_TFTPD_H #define TFTPD_TFTPD_H void set_signal(int, void (*)(int), int); void *tfmalloc(size_t); char *tfstrdup(const char *); extern int verbosity; struct formats { const char *f_mode; char *(*f_rewrite) (const struct formats *, char *, int, int, const char **); int (*f_validate) (char *, int, const struct formats *, const char **); void (*f_send) (const struct formats *, struct tftphdr *, int); void (*f_recv) (const struct formats *, struct tftphdr *, int); int f_convert; }; #endif