Return-Path: Delivered-To: apmail-httpd-users-archive@www.apache.org Received: (qmail 37997 invoked from network); 4 May 2006 19:41:49 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (209.237.227.199) by minotaur.apache.org with SMTP; 4 May 2006 19:41:49 -0000 Received: (qmail 72996 invoked by uid 500); 4 May 2006 19:41:37 -0000 Delivered-To: apmail-httpd-users-archive@httpd.apache.org Received: (qmail 72982 invoked by uid 500); 4 May 2006 19:41:37 -0000 Mailing-List: contact users-help@httpd.apache.org; run by ezmlm Precedence: bulk Reply-To: users@httpd.apache.org list-help: list-unsubscribe: List-Post: List-Id: Delivered-To: mailing list users@httpd.apache.org Received: (qmail 72971 invoked by uid 99); 4 May 2006 19:41:37 -0000 Received: from asf.osuosl.org (HELO asf.osuosl.org) (140.211.166.49) by apache.org (qpsmtpd/0.29) with ESMTP; Thu, 04 May 2006 12:41:37 -0700 X-ASF-Spam-Status: No, hits=0.0 required=10.0 tests= X-Spam-Check-By: apache.org Received-SPF: pass (asf.osuosl.org: local policy includes SPF record at spf.trusted-forwarder.org) Received: from [68.142.229.102] (HELO smtp103.sbc.mail.re2.yahoo.com) (68.142.229.102) by apache.org (qpsmtpd/0.29) with SMTP; Thu, 04 May 2006 12:41:36 -0700 Received: (qmail 33651 invoked from network); 4 May 2006 19:41:14 -0000 Received: from unknown (HELO jupiterhost.net) (dan.muey@sbcglobal.net@198.66.78.2 with plain) by smtp103.sbc.mail.re2.yahoo.com with SMTP; 4 May 2006 19:41:14 -0000 Message-ID: <445A58D7.4060106@jupiterhost.net> Date: Thu, 04 May 2006 14:41:11 -0500 From: "JupiterHost.Net" User-Agent: Mozilla/5.0 (Macintosh; U; PPC Mac OS X Mach-O; en-US; rv:1.6b) Gecko/20031205 Thunderbird/0.4 X-Accept-Language: en-us, en MIME-Version: 1.0 To: users@httpd.apache.org Content-Type: text/plain; charset=us-ascii; format=flowed Content-Transfer-Encoding: 7bit X-Virus-Checked: Checked by ClamAV on apache.org Subject: [users@httpd] Apache 1.3 to 2.X module porting: function "name/argument/return/include" changes? X-Spam-Rating: minotaur.apache.org 1.6.2 0/1000/N In porting a module from apache 1.3 to 2.0/2.2 I'm seeing these apache specific elements: request_rec * r: static int foo (request_rec * r) r->uri r->server->server_hostname r->pool ap_getword: w = ap_getword(r->pool, &dnam, '/'); /* previosuly: char *name = r->uri; ... dname = name + 2; */ ap_pstrcat: filename = ap_pstrcat (r->pool, XYZROOT, "/", w, NULL); /* previously: #define BWROOT "/var/cpanel/bwlimited" */ ap_basic_http_header(r) ap_rvputs(r, "text", NULL); ap_rputs("text", r); ap_kill_timeout (r); ap_finalize_request_protocol (r); ap_rflush(r) I can't seem to find the Apache 2.X equivalents for them so my questions would be for each one: a) What are apache 2.0 and 2.2's equivalent name? b) Does it take the same arguments as the examples above? c) Does it return the same things when called with equivalent arguments?? d) Is it still part of one of the following includes or do I need to include a new .h? #include "httpd.h" #include "http_core.h" #include "http_config.h" #include "http_log.h" #include "http_request.h" Any input is greatly appreciated 'cause I am stuck :) !! TIA --------------------------------------------------------------------- The official User-To-User support forum of the Apache HTTP Server Project. See for more info. To unsubscribe, e-mail: users-unsubscribe@httpd.apache.org " from the digest: users-digest-unsubscribe@httpd.apache.org For additional commands, e-mail: users-help@httpd.apache.org