summaryrefslogtreecommitdiff
path: root/src/testing/msg_capture.h
blob: 164e3b1c522c5ab1d7cbd800744c227344efde56 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
#ifndef _MSB_CAPTURE_H_INCLUDED_
#define _MSB_CAPTURE_H_INCLUDED_

/*++
/* NAME
/*	msg_capture 3h
/* SUMMARY
/*	message capture support
/* SYNOPSIS
/*	#include <msg_capture.h>
/* DESCRIPTION
/* .nf

 /*
  * External API.
  */
typedef struct MSG_CAPTURE MSG_CAPTURE;

extern MSG_CAPTURE *msg_capt_create(ssize_t init_size);
extern void msg_capt_start(MSG_CAPTURE *mp);
extern void msg_capt_stop(MSG_CAPTURE *mp);
extern const char *msg_capt_expose(MSG_CAPTURE *mp);
extern void msg_capt_free(MSG_CAPTURE *mp);

/* LICENSE
/* .ad
/* .fi
/*	The Secure Mailer license must be distributed with this software.
/* AUTHOR(S)
/*	Wietse Venema
/*	porcupine.org
/*--*/

#endif