summaryrefslogtreecommitdiff
path: root/src/testing/msg_capture.h
diff options
context:
space:
mode:
authorbeatrice <beatrice@dangofactory.net>2026-11-22 19:19:03 +0900
committerbeatrice <beatrice@dangofactory.net>2026-11-22 19:19:03 +0900
commitbd4611555e18fca7c66afaef0f094e15038b0459 (patch)
tree1b1a9109567b61ac259ead146f4bef21a0f886df /src/testing/msg_capture.h
parent2324a9e97a727bf95690c9fb8fdca0f52301940e (diff)
downloadpostfix-master.tar.gz
postfix-master.zip
Release tarball postfix-3.11.7.tar.gz (dist-generated files / local differences from tag)HEADlocal/postfixmaster
Diffstat (limited to 'src/testing/msg_capture.h')
-rw-r--r--src/testing/msg_capture.h34
1 files changed, 34 insertions, 0 deletions
diff --git a/src/testing/msg_capture.h b/src/testing/msg_capture.h
new file mode 100644
index 000000000..164e3b1c5
--- /dev/null
+++ b/src/testing/msg_capture.h
@@ -0,0 +1,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