Tim/ffi and capi specs