Return-Path: Delivered-To: apmail-httpd-apreq-dev-archive@httpd.apache.org Received: (qmail 20650 invoked by uid 500); 13 Apr 2002 17:08:58 -0000 Mailing-List: contact apreq-dev-help@httpd.apache.org; run by ezmlm Precedence: bulk List-Post: List-Help: List-Unsubscribe: List-Subscribe: Delivered-To: mailing list apreq-dev@httpd.apache.org Delivered-To: moderator for apreq-dev@httpd.apache.org Received: (qmail 38378 invoked from network); 13 Apr 2002 05:48:01 -0000 Date: Sat, 13 Apr 2002 14:48:11 +0900 (JST) Message-Id: <20020413.144811.104053917.hanai@imgsrc.co.jp> To: apreq-dev@httpd.apache.org Cc: hanai@imgsrc.co.jp Subject: using libapreq with C++ From: hiroyuki hanai X-Mailer: Mew version 3.0.54 on Emacs 21.2 / Mule 5.0 (SAKAKI) Mime-Version: 1.0 Content-Type: Multipart/Mixed; boundary="--Next_Part(Sat_Apr_13_14:48:11_2002_994)--" Content-Transfer-Encoding: 7bit X-Spam-Rating: daedalus.apache.org 1.6.2 0/1000/N ----Next_Part(Sat_Apr_13_14:48:11_2002_994)-- Content-Type: Text/Plain; charset=us-ascii Content-Transfer-Encoding: 7bit hello, I'm writing an apache module with C++, which use libapreq to parse data from http clients. Then, I now have a linkage problem because there's no `extern "C"' wrapper in apache_cookie.h. I'm very glad if you include attached patch. cheers, . _ . _ . _ . _ . _ . hiro hanai IMG SRC, Inc., Shioirikoji 1F hanai@imgsrc.co.jp 5-2 Shinsen-cho, Shibuya-ku hanai@FreeBSD.org Toyko, JAPAN ----Next_Part(Sat_Apr_13_14:48:11_2002_994)-- Content-Type: Text/Plain; charset=us-ascii Content-Transfer-Encoding: 7bit Content-Disposition: inline; filename=diff --- apache_cookie.h.org Wed Jan 27 10:33:20 1999 +++ apache_cookie.h Sat Apr 13 14:32:38 2002 @@ -34,11 +34,19 @@ #define ApacheCookieAddLen(c,val,len) \ ApacheCookieAddn(c, ap_pstrndup(c->r->pool, val, len)) +#ifdef __cplusplus + extern "C" { +#endif + ApacheCookie *ApacheCookie_new(request_rec *r, ...); ApacheCookieJar *ApacheCookie_parse(request_rec *r, const char *data); char *ApacheCookie_as_string(ApacheCookie *c); char *ApacheCookie_attr(ApacheCookie *c, char *key, char *val); char *ApacheCookie_expires(ApacheCookie *c, char *time_str); void ApacheCookie_bake(ApacheCookie *c); + +#ifdef __cplusplus + } +#endif #define APC_ERROR APLOG_MARK, APLOG_NOERRNO|APLOG_ERR, c->r ----Next_Part(Sat_Apr_13_14:48:11_2002_994)----