Hey, I've written a module that allows you to do this:
my $ptr = test_nasty(); # returns the pointer to a C struct of type EventHeader my $struct = Inline::Struct::Nasty->new("EventHeader", $ptr, '#include "saru_api.h"'); print $struct->int_EventType; # prints the value of the member EventType as integer
Is this feasible or will it bite me is the ass?