in reply to Re: Automatically Import XS struct
in thread Automatically Import XS struct

it means that if I have my XS code,
including the SDR header, how can I access the various struct elements? regards

Replies are listed 'Best First'.
Re^3: Automatically Import XS struct
by dave_the_m (Monsignor) on Feb 03, 2021 at 14:10 UTC
    Are you talking about accessing the struct elements from within XS code, or from within perl code?

    Dave.

      within XS code.

        The leading section of XS files is expected to be arbitrary C code. The CODE and PPCODE sections of XS files can be any valid C statement sequence. As such, you would do it exactly as you would in C.

        dev.xfer_buf_num // If dev is a struct rtlsdr_dev
        or
        dev->xfer_buf_num // If dev is a struct rtlsdr_dev*

        Seeking work! You can reach me at ikegami@adaelis.com