Return-Path: Delivered-To: apmail-httpd-dev-archive@www.apache.org Received: (qmail 58178 invoked from network); 25 Feb 2005 10:03:33 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (209.237.227.199) by minotaur-2.apache.org with SMTP; 25 Feb 2005 10:03:33 -0000 Received: (qmail 29601 invoked by uid 500); 25 Feb 2005 10:03:30 -0000 Delivered-To: apmail-httpd-dev-archive@httpd.apache.org Received: (qmail 29575 invoked by uid 500); 25 Feb 2005 10:03:30 -0000 Mailing-List: contact dev-help@httpd.apache.org; run by ezmlm Precedence: bulk Reply-To: dev@httpd.apache.org list-help: list-unsubscribe: List-Post: Delivered-To: mailing list dev@httpd.apache.org Received: (qmail 29560 invoked by uid 99); 25 Feb 2005 10:03:30 -0000 X-ASF-Spam-Status: No, hits=2.2 required=10.0 tests=DNS_FROM_RFC_ABUSE,DNS_FROM_RFC_POST,DNS_FROM_RFC_WHOIS X-Spam-Check-By: apache.org Received-SPF: pass (hermes.apache.org: local policy) Received: from smtp12.wanadoo.fr (HELO smtp12.wanadoo.fr) (193.252.22.20) by apache.org (qpsmtpd/0.28) with ESMTP; Fri, 25 Feb 2005 02:03:29 -0800 Received: from me-wanadoo.net (localhost [127.0.0.1]) by mwinf1202.wanadoo.fr (SMTP Server) with ESMTP id 74FE41C000A0 for ; Fri, 25 Feb 2005 11:03:26 +0100 (CET) Received: from doc (AMarseille-152-1-4-62.w81-251.abo.wanadoo.fr [81.251.98.62]) by mwinf1202.wanadoo.fr (SMTP Server) with ESMTP id 07AD71C0009C for ; Fri, 25 Feb 2005 11:03:25 +0100 (CET) X-ME-UUID: 20050225100326315.07AD71C0009C@mwinf1202.wanadoo.fr From: =?iso-8859-1?Q?Fr=E9d=E9ric_Bor?= To: Subject: RE: using apxs Date: Fri, 25 Feb 2005 11:03:42 +0100 MIME-Version: 1.0 Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: quoted-printable X-Mailer: Microsoft Office Outlook, Build 11.0.6353 In-Reply-To: X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2800.1478 Thread-Index: AcUbH3Rb00omk20fRf+djtK+OKP6FwAACykw Message-Id: <20050225100325.07AD71C0009C@mwinf1202.wanadoo.fr> X-Virus-Checked: Checked X-Spam-Rating: minotaur-2.apache.org 1.6.2 0/1000/N In the idea, you have to do something like this: C1_wrappers.h: #ifdef __cplusplus extern "C" { #endif typedef void * C1_OBJECT; C1_OBJECT C1_create(); void C1_destroy(C1_OBJECT p); int C1_func_call(C1_OBJECT p, int param1, const char * param2); #ifdef __cplusplus } #endif C1_wrappers.cpp: extern "C" C1_OBJECT C1_create() { return (C1_OBJECT) new C1; } extern "C" void C1_destroy(C1_OBJECT p) { delete (C1*)p; } extern "C" int C1_func_call(C1_OBJECT p, int param1, const char * = param2) { return ((C1*)p)->func_call(param1, param2); } -----Message d'origine----- De=A0: news [mailto:news@sea.gmane.org] De la part de Laszlo Envoy=E9=A0: vendredi 25 f=E9vrier 2005 10:48 =C0=A0: dev@httpd.apache.org Objet=A0: Re: using apxs Could you give me an example of a wrapper? Thank you. ------ L=E1szl=F3 Graf