From mboxrd@z Thu Jan 1 00:00:00 1970 X-Spam-Checker-Version: SpamAssassin 3.4.4 (2020-01-24) on polar.synack.me X-Spam-Level: X-Spam-Status: No, score=0.4 required=5.0 tests=BAYES_00,FORGED_MUA_MOZILLA autolearn=no autolearn_force=no version=3.4.4 X-Google-Thread: 103376,5526cbaedf4542a4 X-Google-NewGroupId: yes X-Google-Attributes: gida07f3367d7,domainid0,public,usenet X-Google-Language: ENGLISH,ASCII-7-bit Received: by 10.68.135.231 with SMTP id pv7mr13092499pbb.8.1330966697906; Mon, 05 Mar 2012 08:58:17 -0800 (PST) Path: h9ni42693pbe.0!nntp.google.com!news1.google.com!goblin3!goblin2!goblin1!goblin.stu.neva.ru!noris.net!newsfeed.arcor.de!newsspool1.arcor-online.net!news.arcor.de.POSTED!not-for-mail Date: Mon, 05 Mar 2012 17:58:16 +0100 From: Georg Bauhaus User-Agent: Mozilla/5.0 (Macintosh; Intel Mac OS X 10.6; rv:10.0.2) Gecko/20120216 Thunderbird/10.0.2 MIME-Version: 1.0 Newsgroups: comp.lang.ada Subject: Re: ADTs C to Ada References: <28640131.3602.1330956581432.JavaMail.geo-discussion-forums@vbw15> In-Reply-To: <28640131.3602.1330956581432.JavaMail.geo-discussion-forums@vbw15> Message-ID: <4f54f0a8$0$6583$9b4e6d93@newsspool3.arcor-online.net> Organization: Arcor NNTP-Posting-Date: 05 Mar 2012 17:58:16 CET NNTP-Posting-Host: c12727ee.newsspool3.arcor-online.net X-Trace: DXC=ZSKfFPf9Uo2gP]QSEBQ^d4McF=Q^Z^V384Fo<]lROoR18kFfN6nc\616M64>:Lh>_cHTX3j=:OACgVZS7S? X-Complaints-To: usenet-abuse@arcor.de Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit Date: 2012-03-05T17:58:16+01:00 List-Id: On 05.03.12 15:09, Patrick wrote: > I am studying Ada and making progress. The C interface seems straight forward enough for functions, strings pointers and such but I am having trouble finding any information on how to interface with stucts that contain functions. > Is there any documentation on how to do this? Do I need to write a full thin binding to a library and interface each data type and function seperately? I am interested in gstreamer right now about there are several C libraries I would like to interface with. At the moment I would like too create a gstreamer instance and then play, pause and seek an audio recording. In case you want to map Ada's O-O model to that of gstreamer, which seems to be based on glib, a look at GtkAda can show a way of how to do it, I think. Side note: One could imagine the O-O design of the GNU Network *Object* Model Environment, or whatever modernization it has turned into, to use an O-O data model / ABI that is easily used with O-O languages. Instead, we are charged with working around home brew style look-I-can-write-fnatastic-O-O-in-C-too, just like in real ADT languages...