Return-Path: Delivered-To: apmail-httpd-modules-dev-archive@locus.apache.org Received: (qmail 94677 invoked from network); 20 Oct 2006 16:31:25 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (209.237.227.199) by minotaur.apache.org with SMTP; 20 Oct 2006 16:31:25 -0000 Received: (qmail 95692 invoked by uid 500); 20 Oct 2006 16:31:24 -0000 Delivered-To: apmail-httpd-modules-dev-archive@httpd.apache.org Received: (qmail 95679 invoked by uid 500); 20 Oct 2006 16:31:24 -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 95670 invoked by uid 99); 20 Oct 2006 16:31:24 -0000 Received: from asf.osuosl.org (HELO asf.osuosl.org) (140.211.166.49) by apache.org (qpsmtpd/0.29) with ESMTP; Fri, 20 Oct 2006 09:31:24 -0700 X-ASF-Spam-Status: No, hits=0.6 required=10.0 tests=NO_REAL_NAME X-Spam-Check-By: apache.org Received-SPF: neutral (asf.osuosl.org: local policy) Received: from [193.70.193.55] (HELO mail2a.webresidence.it) (193.70.193.55) by apache.org (qpsmtpd/0.29) with ESMTP; Fri, 20 Oct 2006 09:31:22 -0700 Received: from pisa.iol.it (193.70.193.60) by mail2a.webresidence.it (7.2.059.5) id 45003BD70002F5B6 for modules-dev@httpd.apache.org; Fri, 20 Oct 2006 18:31:00 +0200 Date: Fri, 20 Oct 2006 18:30:59 +0200 Message-Id: Subject: Question about ap_get_module_config MIME-Version: 1.0 Content-Type: text/plain Content-Transfer-Encoding: quoted-printable From: "m.spinetti@pisa.iol.it" To: modules-dev@httpd.apache.org X-XaM3-API-Version: 1.1.9.1.25 X-SenderIP: 151.5.148.94 X-Virus-Checked: Checked by ClamAV on apache.org X-Spam-Rating: minotaur.apache.org 1.6.2 0/1000/N Hi all, I have a question about ap_get_module_config. My module has to connect to different url to get the content. So I was thinking to initialize my struct (in which I have different information for example an array with the addresses of the url to get the contents) in the server config. The I wanted in the handler get my struct with ap_get_module_config and then using it. My question is this: each element of the struct has some fields which is filled by each child and it's different from child to child. For example the content of url, the connection time and so on. So if I get the struct with ap_get_module_config, is it safe to modify it? Or it's better to make a copy of it? Best regards, Marco