IDL structs in .c file

David Disseldorp ddiss at samba.org
Sat Aug 26 19:37:17 UTC 2017


Hi Dimitris,

On Fri, 25 Aug 2017 22:12:51 +0300, Dimitris Gravanis via samba-technical wrote:

> I use dns_res_rec in my test suites, which is defined in dns.idl. As 
> expected, waf throws an error of "undefined - declared for the first 
> time" etc.
> 
> Is there a way to implement idl definitions in c files?

The idl files are compiled into .h / .c files, which can then
subsequently be used by other source files. If you'd like to use
"struct dns_res_rec", as generated from dns.idl, then it's just a matter
of including librpc/gen_ndr/dns.h, which corresponds to the header file
./bin/default/librpc/gen_ndr/dns.h , generated from dns.idl by pidl.

Cheers, David



More information about the samba-technical mailing list