reorder parameters of some callback functions
add tool for generating asioc_errors.h