From: Niklas Holsti <niklas.holsti@tidorum.invalid>
Subject: Re: Coding access to a C's pointer - pointer
Date: Sat, 6 Jun 2020 19:59:08 +0300
Date: 2020-06-06T19:59:08+03:00 [thread overview]
Message-ID: <hk20atFd05uU1@mid.individual.net> (raw)
In-Reply-To: <dc1dd87e-c7dd-4ed8-a3eb-918362a8f9feo@googlegroups.com>
On 2020-06-06 19:23, Bob Goddard wrote:
> I'm trying to shoehorn net-snmp into an Ada conversion and I've hit a roadblock.
>
> snmp_synch_response requires a pointer to a pointer:
> snmp_synch_response(netsnmp_session *, netsnmp_pdu *, netsnmp_pdu **)
>
> Just how the heck do you code that? You can't just declare a System.Address.
Declare the parameter type as "access netsnmp_pdu" and its mode as
"access" or "in out" or "out", depending on what snmp_synch_response
actually does with the parameter. The mode gets you one C '*' and the
access type gets you the second '*'.
See RM B.3(68).
--
Niklas Holsti
niklas holsti tidorum fi
. @ .
next prev parent reply other threads:[~2020-06-06 16:59 UTC|newest]
Thread overview: 10+ messages / expand[flat|nested] mbox.gz Atom feed top
2020-06-06 16:23 Coding access to a C's pointer - pointer Bob Goddard
2020-06-06 16:50 ` Luke A. Guest
2020-06-06 16:59 ` Niklas Holsti [this message]
2020-06-06 17:01 ` Dmitry A. Kazakov
2020-06-06 17:34 ` Bob Goddard
2020-06-06 18:48 ` Dmitry A. Kazakov
2020-06-06 20:20 ` Jeffrey R. Carter
2020-06-06 20:51 ` Björn Lundin
2020-06-06 20:55 ` Jeffrey R. Carter
2020-06-07 7:29 ` Dmitry A. Kazakov
replies disabled
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox