"Hayhurst, Lyle" <[EMAIL PROTECTED]> wrote: :I am working with a C library (call it 'LibX') that I want to use in :Perl. The C-Cookbook describes this use case, but only gives an example :for importing one single function from the library. : :What I want to do is programatically bulk import not just every function :but every constant and enumerated type using Inline::C.
C::Scan was enhanced to make the information available so that h2xs could do exactly this for XS modules. I'd suggest looking at the relevant extracts of the h2xs code, but be warned that it may not be pretty. The main options of interest here are C<-a>, C<-m> and C<-x>. An alternative may be just to use XS in this case. Hugo