Callback passed to C API must use C calling convention