Implement stop()

This commit is contained in:
Dolf Schimmel (Freeaqingme)
2015-06-01 00:04:36 +02:00
parent 13b82e7dd5
commit c0f4b47c5e

View File

@@ -339,6 +339,7 @@ func GetSymVal(ctx uintptr, symname string) string {
return C.GoString(cval) return C.GoString(cval)
} }
// See also: http://bit.ly/1HVWA9I
func SetPriv(ctx uintptr, privatedata interface{}) int { func SetPriv(ctx uintptr, privatedata interface{}) int {
// privatedata seems to work for any data type // privatedata seems to work for any data type
// Structs must have exported fields // Structs must have exported fields
@@ -593,6 +594,10 @@ func progress(ctx uintptr) int {
// ********* Run the milter ********* // ********* Run the milter *********
func Stop() {
C.smfi_stop()
}
func Run(amilter Milter) int { func Run(amilter Milter) int {
milter = amilter milter = amilter
if milter.GetDebug() { if milter.GetDebug() {