How do I use a C struct foo, defined in a header file as a datatype in my Python code?
(This document does not seem to address the issue.)
typedef struct {
PyObject_HEAD
/* Type-specific fields go here. */
struct api_query query; /* instead of PyObject * type here */
} api_Request;