/* * Utility functions to test message handling. * * Copyright 2006, 2007, 2009 * Board of Trustees, Leland Stanford Jr. University * Copyright (c) 2004, 2005, 2006 * by Internet Systems Consortium, Inc. ("ISC") * Copyright (c) 1991, 1994, 1995, 1996, 1997, 1998, 1999, 2000, 2001, * 2002, 2003 by The Internet Software Consortium and Rich Salz * * See LICENSE for licensing terms. */ #ifndef TAP_MESSAGES_H #define TAP_MESSAGES_H 1 #include #include /* A global buffer into which errors_capture stores errors. */ extern char *errors; BEGIN_DECLS /* * Turn on capturing of errors with errors_capture. Errors reported by warn * will be stored in the global errors variable. Turn this off again with * errors_uncapture. Caller is responsible for freeing errors when done. */ void errors_capture(void); void errors_uncapture(void); END_DECLS #endif /* !TAP_MESSAGES_H */