Updated api

@WalterBright would be good if we can get this in asap, the bindings are 5month behind.