class foo(Structure):
    _fields_ = [('i', c_int), ('b1', POINTER(c_int)), ('w1', POINTER(c_float))]
myclib = cdll.LoadLibrary('./libexample.so')
temp_foo = foo(1, None, None)
foovar = myclib.bar(temp_foo.i)
Как вернуть указатель на структуру в ctypes?