export the function to a separate header file

Signed-off-by: zwliew <zhaoweiliew@gmail.com>