From mboxrd@z Thu Jan 1 00:00:00 1970 Path: main.gmane.org!not-for-mail From: Matthias Koeppe Newsgroups: gmane.lisp.guile.user Subject: Re: A couple of general-ish questions Date: Wed, 23 Apr 2003 10:08:15 +0200 Sender: guile-user-bounces+guile-user=m.gmane.org@gnu.org Message-ID: References: <1050674570.613.9.camel@zuul> NNTP-Posting-Host: main.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=iso-8859-1 Content-Transfer-Encoding: quoted-printable X-Trace: main.gmane.org 1051085366 18274 80.91.224.249 (23 Apr 2003 08:09:26 GMT) X-Complaints-To: usenet@main.gmane.org NNTP-Posting-Date: Wed, 23 Apr 2003 08:09:26 +0000 (UTC) Cc: guile-user@gnu.org Original-X-From: guile-user-bounces+guile-user=m.gmane.org@gnu.org Wed Apr 23 10:09:17 2003 Return-path: Original-Received: from monty-python.gnu.org ([199.232.76.173]) by main.gmane.org with esmtp (Exim 3.35 #1 (Debian)) id 198FJd-0004jZ-00 for ; Wed, 23 Apr 2003 10:09:17 +0200 Original-Received: from localhost ([127.0.0.1] helo=monty-python.gnu.org) by monty-python.gnu.org with esmtp (Exim 4.10.13) id 198FJT-0000nG-0B for guile-user@m.gmane.org; Wed, 23 Apr 2003 04:09:07 -0400 Original-Received: from list by monty-python.gnu.org with tmda-scanned (Exim 4.10.13) id 198FIo-0000gg-00 for guile-user@gnu.org; Wed, 23 Apr 2003 04:08:26 -0400 Original-Received: from mail by monty-python.gnu.org with spam-scanned (Exim 4.10.13) id 198FIk-0000XK-00 for guile-user@gnu.org; Wed, 23 Apr 2003 04:08:25 -0400 Original-Received: from merkur.math.uni-magdeburg.de ([141.44.75.40]) by monty-python.gnu.org with esmtp (Exim 4.10.13) id 198FIj-0000P1-00 for guile-user@gnu.org; Wed, 23 Apr 2003 04:08:21 -0400 Original-Received: from lambda ([141.44.75.79] helo=lambda.math.uni-magdeburg.de) by merkur.math.uni-magdeburg.de with esmtp (Exim 4.10) id 198FIg-0001Xl-00; Wed, 23 Apr 2003 10:08:18 +0200 Original-Received: (from mkoeppe@localhost) by lambda.math.uni-magdeburg.de (8.11.6+Sun/8.10.2) id h3N88F413638; Wed, 23 Apr 2003 10:08:15 +0200 (MEST) X-Authentication-Warning: lambda.math.uni-magdeburg.de: mkoeppe set sender to mkoeppe@mail.math.uni-magdeburg.de using -f Original-To: Robert Marlow In-Reply-To: <1050674570.613.9.camel@zuul> (Robert Marlow's message of "18 Apr 2003 22:02:46 +0800") Original-Lines: 23 User-Agent: Gnus/5.090004 (Oort Gnus v0.04) Emacs/21.3.50 (sparc-sun-solaris2.8) X-Warning: no 'abuse'-account in domain mail.math.uni-magdeburg.de (cf. RFC2142/4.) X-BeenThere: guile-user@gnu.org X-Mailman-Version: 2.1b5 Precedence: list List-Id: General Guile related discussions List-Help: List-Post: List-Subscribe: , List-Archive: List-Unsubscribe: , Errors-To: guile-user-bounces+guile-user=m.gmane.org@gnu.org Xref: main.gmane.org gmane.lisp.guile.user:1810 X-Report-Spam: http://spam.gmane.org/gmane.lisp.guile.user:1810 Robert Marlow writes: > Firstly, I'm starting out writing guile bindings to LDAP and was wanting > to check if anybody was already working on this before I duplicate their > effort. > > Secondly, I've been trying to do this with g-wrap but I'm completely new > to g-wrap. Specifically, LDAP has some struct types containing structs > (containing structs etc etc) and I was unsure how I should represent > such a nested type using g-wrap (see the LDAP struct typedef for > example). Does anyone have a clean solution to this? > > Or should I not use g-wrap and instead use something else (eg ffcall)? You could also use SWIG 1.3 (http://www.swig.org) for generating Guile bindings. SWIG reads (annotated) C header files, wraps functions and also creates getters and setters for structs (and classes) automatically. --=20 Matthias K=F6ppe -- http://www.math.uni-magdeburg.de/~mkoeppe SWIG makes Guile wrappers for C/C++ libs -- http://www.swig.org ILISP does module-aware Emacs/Guile interaction -- http://sf.net/projects/i= lisp _______________________________________________ Guile-user mailing list Guile-user@gnu.org http://mail.gnu.org/mailman/listinfo/guile-user