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=-1.3 required=5.0 tests=BAYES_00,INVALID_MSGID autolearn=no autolearn_force=no version=3.4.4 X-Google-Language: ENGLISH,ASCII-7-bit X-Google-Thread: 103376,d5f43eec59cdbb5 X-Google-Attributes: gid103376,public From: Matthew Heaney Subject: Re: Ada address of operator? Date: 1999/02/11 Message-ID: #1/1 X-Deja-AN: 443297693 Sender: matt@mheaney.ni.net References: <36C02FFC.458368B1@aston.ac.uk> NNTP-Posting-Date: Thu, 11 Feb 1999 10:23:48 PDT Newsgroups: comp.lang.ada Date: 1999-02-11T00:00:00+00:00 List-Id: Danny writes: > I'm trying to use a C library in an Ada function and a typical prototype > from this library would be > > struct AType; > struct AnotherType; > > int getObject( AType *pType, AnotherType **ppAnotherType ); If you use Import_Valued_Procedure (in GNAT), then you may not need to use pointers at all: procedure Get_Object (Return_Value : out Int; In_Param : in A_Type; Out_Param : out Another_Type); pragma Import_Valued_Procedure (Get_Object, "getObject"); --or something like that