The C function is supposed to take a pointer and return the next object in the list. I guess an iterator should be provided instead? Could change the original back to using pointers or something, or just not expose it all. See: https://www.tilengine.org/doc/group__objects.html#ga6962097130de32a6c186cca3510eb773