From c0f4b47c5e6bae646fdae46022643df0694b38de Mon Sep 17 00:00:00 2001 From: "Dolf Schimmel (Freeaqingme)" Date: Mon, 1 Jun 2015 00:04:36 +0200 Subject: [PATCH] Implement stop() --- gomilter.go | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/gomilter.go b/gomilter.go index 3246d2c..1106fee 100644 --- a/gomilter.go +++ b/gomilter.go @@ -339,6 +339,7 @@ func GetSymVal(ctx uintptr, symname string) string { return C.GoString(cval) } +// See also: http://bit.ly/1HVWA9I func SetPriv(ctx uintptr, privatedata interface{}) int { // privatedata seems to work for any data type // Structs must have exported fields @@ -593,6 +594,10 @@ func progress(ctx uintptr) int { // ********* Run the milter ********* +func Stop() { + C.smfi_stop() +} + func Run(amilter Milter) int { milter = amilter if milter.GetDebug() {