update the c wrapper

Change-Id: I4621c3a2eca2d277d39e92ec78814db71a314396