From: Lucretia <laguest9000@googlemail.com>
Subject: Re: Interface To C Struct That Includes An Array
Date: Mon, 17 Sep 2018 08:24:07 -0700 (PDT)
Date: 2018-09-17T08:24:07-07:00 [thread overview]
Message-ID: <a3f03045-061e-4a75-b7e9-ad8a40184d47@googlegroups.com> (raw)
In-Reply-To: <b3f11b70-002a-490b-8a67-9df4b2aeecb8@googlegroups.com>
On Monday, 17 September 2018 13:01:43 UTC+1, rog...@iinet.net.au wrote:
> I'm having problems interfacing the following record to C.
>
> type API_String is record
> Length : Interfaces.C.size_t := 0;
> Data : API_String_Data_Array := (others => Interfaces.C.char'Val (0));
> end record;
> pragma Convention (C_Pass_By_Copy, API_String);
Variable length things in Ada are problematic no matter what really.
What does the type definition of API_String_Data_Array look like? Is it also Convention => C?
next prev parent reply other threads:[~2018-09-17 15:24 UTC|newest]
Thread overview: 22+ messages / expand[flat|nested] mbox.gz Atom feed top
2018-09-17 12:01 Interface To C Struct That Includes An Array rogermc
2018-09-17 12:11 ` rogermc
2018-09-17 15:25 ` Lucretia
2018-09-17 22:35 ` Roger
2018-09-18 0:45 ` Roger
2018-09-18 1:19 ` rogermc
2018-09-17 12:26 ` gautier_niouzes
2018-09-17 13:28 ` Roger
2018-09-17 13:55 ` gautier_niouzes
2018-09-17 14:03 ` Roger
2018-09-17 15:24 ` Lucretia [this message]
2018-09-17 23:06 ` Roger
2018-09-17 16:29 ` Jeffrey R. Carter
2018-09-17 22:57 ` Roger
2018-09-18 0:53 ` Roger
2018-09-18 4:18 ` Roger
2018-09-18 8:19 ` rakusu_klein
2018-09-18 11:54 ` rogermc
2018-09-18 12:21 ` Egil H H
2018-09-18 12:24 ` rogermc
2018-09-18 18:55 ` rakusu_klein
2018-09-18 21:28 ` rogermc
replies disabled
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox