Thursday, 12 September 2013

Is there a way to load the constant values stored in a header file via ctypes?

Is there a way to load the constant values stored in a header file via
ctypes?

I'm doing a bunch of ctypes calls to the underlying OS libraries. My
progress slows to a crawl anytime the docs reference a constant value
stored in a .h. file somewhere, as I have to go track it down, and figure
out what the actual value is so that I can pass it into the function.
Is there any way to load a .h file with ctypes and get access to all of
the constants?

No comments:

Post a Comment