update

Signed-off-by: yayanyang <yayanyang@gmail.com>
refactor c apis