source: web/old/remctl-2.14/tests/tap/messages.h @ f6f3e91

web
Last change on this file since f6f3e91 was f6f3e91, checked in by Jessica B. Hamrick <jhamrick@…>, 15 years ago

Preserve directory hierarchy (not sure what happened to it)

  • Property mode set to 100644
File size: 936 bytes
Line 
1/*
2 * Utility functions to test message handling.
3 *
4 * Copyright 2006, 2007, 2009
5 *     Board of Trustees, Leland Stanford Jr. University
6 * Copyright (c) 2004, 2005, 2006
7 *     by Internet Systems Consortium, Inc. ("ISC")
8 * Copyright (c) 1991, 1994, 1995, 1996, 1997, 1998, 1999, 2000, 2001,
9 *     2002, 2003 by The Internet Software Consortium and Rich Salz
10 *
11 * See LICENSE for licensing terms.
12 */
13
14#ifndef TAP_MESSAGES_H
15#define TAP_MESSAGES_H 1
16
17#include <config.h>
18#include <portable/macros.h>
19
20/* A global buffer into which errors_capture stores errors. */
21extern char *errors;
22
23BEGIN_DECLS
24
25/*
26 * Turn on capturing of errors with errors_capture.  Errors reported by warn
27 * will be stored in the global errors variable.  Turn this off again with
28 * errors_uncapture.  Caller is responsible for freeing errors when done.
29 */
30void errors_capture(void);
31void errors_uncapture(void);
32
33END_DECLS
34
35#endif /* !TAP_MESSAGES_H */
Note: See TracBrowser for help on using the repository browser.