From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Andy Wingo Newsgroups: gmane.lisp.guile.user Subject: Re: FFI kick start Date: Tue, 14 Oct 2008 21:47:05 +0200 Message-ID: References: <65c49e430810140243n8fa2c42udc236cbef8bbd2b7@mail.gmail.com> NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Trace: ger.gmane.org 1224054064 9996 80.91.229.12 (15 Oct 2008 07:01:04 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Wed, 15 Oct 2008 07:01:04 +0000 (UTC) Cc: guile-user@gnu.org To: john Original-X-From: guile-user-bounces+guile-user=m.gmane.org@gnu.org Wed Oct 15 09:01:53 2008 Return-path: Envelope-to: guile-user@m.gmane.org Original-Received: from lists.gnu.org ([199.232.76.165]) by lo.gmane.org with esmtp (Exim 4.50) id 1Kq0OG-0005Yz-53 for guile-user@m.gmane.org; Wed, 15 Oct 2008 09:01:53 +0200 Original-Received: from localhost ([127.0.0.1]:48347 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1Kq0N4-0004xQ-0A for guile-user@m.gmane.org; Wed, 15 Oct 2008 03:00:38 -0400 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1Kq0N0-0004wr-Bf for guile-user@gnu.org; Wed, 15 Oct 2008 03:00:34 -0400 Original-Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1Kq0Mv-0004ts-Vi for guile-user@gnu.org; Wed, 15 Oct 2008 03:00:33 -0400 Original-Received: from [199.232.76.173] (port=43369 helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1Kq0Mv-0004tp-Pl for guile-user@gnu.org; Wed, 15 Oct 2008 03:00:29 -0400 Original-Received: from mx20.gnu.org ([199.232.41.8]:35551) by monty-python.gnu.org with esmtps (TLS-1.0:RSA_AES_256_CBC_SHA1:32) (Exim 4.60) (envelope-from ) id 1Kq0Mu-000833-Lg for guile-user@gnu.org; Wed, 15 Oct 2008 03:00:29 -0400 Original-Received: from a-sasl-fastnet.sasl.smtp.pobox.com ([207.106.133.19] helo=sasl.smtp.pobox.com) by mx20.gnu.org with esmtp (Exim 4.60) (envelope-from ) id 1Kq0LH-0002q3-G8 for guile-user@gnu.org; Wed, 15 Oct 2008 02:58:47 -0400 Original-Received: from localhost.localdomain (localhost [127.0.0.1]) by a-sasl-fastnet.sasl.smtp.pobox.com (Postfix) with ESMTP id 4F6976FCF7; Wed, 15 Oct 2008 02:57:02 -0400 (EDT) Original-Received: from unquote (117.Red-79-156-146.staticIP.rima-tde.net [79.156.146.117]) (using TLSv1 with cipher DHE-RSA-AES256-SHA (256/256 bits)) (No client certificate requested) by a-sasl-fastnet.sasl.smtp.pobox.com (Postfix) with ESMTPSA id 55F7A6FCF6; Wed, 15 Oct 2008 02:57:00 -0400 (EDT) In-Reply-To: <65c49e430810140243n8fa2c42udc236cbef8bbd2b7@mail.gmail.com> (john's message of "Tue, 14 Oct 2008 10:43:52 +0100") User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/23.0.60 (gnu/linux) X-Pobox-Relay-ID: 78274D40-9A86-11DD-B2B2-1E1F86D30F62-02397024!a-sasl-fastnet.pobox.com X-detected-kernel: by mx20.gnu.org: Solaris 10 (beta) X-detected-operating-system: by monty-python.gnu.org: GNU/Linux 2.6, seldom 2.4 (older, 4) X-BeenThere: guile-user@gnu.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: General Guile related discussions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Original-Sender: guile-user-bounces+guile-user=m.gmane.org@gnu.org Errors-To: guile-user-bounces+guile-user=m.gmane.org@gnu.org Xref: news.gmane.org gmane.lisp.guile.user:6828 Archived-At: On Tue 14 Oct 2008 11:43, john writes: > I am trying to get to grips with manually wrapping C functions but > need some pointers. I have a C function: > > packedEncode *initializeEncode(char *pdu, int size) You need to create a smob type for the packedEncode data structure. Make sure that if C has a reference to it, that Scheme does also. Check the section of the manual about "SMOBs". Andy -- http://wingolog.org/