Implement stop()
This commit is contained in:
@@ -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() {
|
||||||
|
|||||||
Reference in New Issue
Block a user