Beefy Boxes and Bandwidth Generously Provided by pair Networks
P is for Practical
 
PerlMonks  

Re^3: Automatically Import XS struct

by dave_the_m (Monsignor)
on Feb 03, 2021 at 14:10 UTC ( #11127854=note: print w/replies, xml ) Need Help??


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

Are you talking about accessing the struct elements from within XS code, or from within perl code?

Dave.

Replies are listed 'Best First'.
Re^4: Automatically Import XS struct
by Bpl (Scribe) on Feb 03, 2021 at 14:19 UTC
    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

Log In?
Username:
Password:

What's my password?
Create A New User
Domain Nodelet?
Node Status?
node history
Node Type: note [id://11127854]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this? | Other CB clients
Other Users?
Others chilling in the Monastery: (6)
As of 2022-01-24 16:39 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?
    In 2022, my preferred method to securely store passwords is:












    Results (64 votes). Check out past polls.

    Notices?