Add Capi wrapper controlled by enable-capi

remove this since c api do not need namespace.