Switched API numbering from (error-prone) defines to enum.