From modules-dev-return-3349-apmail-httpd-modules-dev-archive=httpd.apache.org@httpd.apache.org Sun Mar 27 00:05:14 2011 Return-Path: Delivered-To: apmail-httpd-modules-dev-archive@minotaur.apache.org Received: (qmail 66561 invoked from network); 27 Mar 2011 00:05:14 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (140.211.11.3) by minotaur.apache.org with SMTP; 27 Mar 2011 00:05:14 -0000 Received: (qmail 518 invoked by uid 500); 27 Mar 2011 00:05:13 -0000 Delivered-To: apmail-httpd-modules-dev-archive@httpd.apache.org Received: (qmail 489 invoked by uid 500); 27 Mar 2011 00:05:13 -0000 Mailing-List: contact modules-dev-help@httpd.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: modules-dev@httpd.apache.org Delivered-To: mailing list modules-dev@httpd.apache.org Received: (qmail 481 invoked by uid 99); 27 Mar 2011 00:05:13 -0000 Received: from athena.apache.org (HELO athena.apache.org) (140.211.11.136) by apache.org (qpsmtpd/0.29) with ESMTP; Sun, 27 Mar 2011 00:05:13 +0000 X-ASF-Spam-Status: No, hits=-0.7 required=5.0 tests=RCVD_IN_DNSWL_LOW,SPF_PASS X-Spam-Check-By: apache.org Received-SPF: pass (athena.apache.org: domain of info@bnoordhuis.nl designates 209.85.161.45 as permitted sender) Received: from [209.85.161.45] (HELO mail-fx0-f45.google.com) (209.85.161.45) by apache.org (qpsmtpd/0.29) with ESMTP; Sun, 27 Mar 2011 00:05:07 +0000 Received: by fxm2 with SMTP id 2so2291334fxm.18 for ; Sat, 26 Mar 2011 17:04:46 -0700 (PDT) MIME-Version: 1.0 Received: by 10.223.87.217 with SMTP id x25mr2819168fal.133.1301184286027; Sat, 26 Mar 2011 17:04:46 -0700 (PDT) Received: by 10.223.68.7 with HTTP; Sat, 26 Mar 2011 17:04:45 -0700 (PDT) X-Originating-IP: [87.214.96.125] In-Reply-To: <4D8E756B.4020201@simonecaruso.com> References: <4D8DFCD4.900@simonecaruso.com> <4D8E756B.4020201@simonecaruso.com> Date: Sun, 27 Mar 2011 01:04:45 +0100 Message-ID: Subject: Re: module interaction From: Ben Noordhuis To: modules-dev@httpd.apache.org Content-Type: text/plain; charset=ISO-8859-1 On Sun, Mar 27, 2011 at 00:23, Simone Caruso wrote: > I think provider or apr_optional are what i'm looking for, > i read mod_authnz_ldap for a provider sample and mod_ldap for apr_optional, > maybe i have understood the logic, but... i don't understand the difference > between these two approaches.. > there is a doc or someone can explain it ? Providers are for when you have some common functionality that has more than one implementation. Example: a session cache mechanism with an in-memory and an on-disk implementation. Optional functions let you expose your functions to other modules. Example: mod_foo exports a function get_num_processed_requests() that mod_bar calls when it generates a status page. I wager that optional functions are what you're looking for.