C based api for settlers.