1. LogCallback should have the "c" calling convention and takes a
userdata pointer like other callbacks.
2. DevicePoll's wrappedSubmissionIndex argument is an optional in/out
parameter. The previous wrapper method was broken since it passed a
non-nil structure to the underlying API with invalid members.