From ba9cf13e6dfa85bdb0f99295cbf578f4493ccf05 Mon Sep 17 00:00:00 2001 From: Björn Persson Date: Sun, 17 Feb 2013 17:54:35 +0100 Subject: Made thread wrapping entirely library-controlled. --- milter_api-start_wrapping.on.adb | 20 ++++++++++++++++++++ 1 file changed, 20 insertions(+) create mode 100644 milter_api-start_wrapping.on.adb (limited to 'milter_api-start_wrapping.on.adb') diff --git a/milter_api-start_wrapping.on.adb b/milter_api-start_wrapping.on.adb new file mode 100644 index 0000000..7eb699c --- /dev/null +++ b/milter_api-start_wrapping.on.adb @@ -0,0 +1,20 @@ +-- Ada Milter API, a binding to Libmilter, the Sendmail mail filtering API +-- Copyright 2013 B. Persson, Bjorn@Rombobeorn.se +-- +-- This library is free software: you can redistribute it and/or modify it +-- under the terms of the GNU General Public License version 3, as published +-- by the Free Software Foundation. + + +-- Thread wrapping is enabled when this file is used, so Start_Wrapping calls +-- start_wrapping_threads in libadamilter_thread_wrapper, which must be linked +-- into the main executable. + + +separate(Milter_API) +procedure Start_Wrapping is + procedure start_wrapping_threads; + pragma import(C, start_wrapping_threads); +begin + start_wrapping_threads; +end Start_Wrapping; -- cgit v1.2.3