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

tiagofrepereira2012/bob.learn.linear,tiagofrepereira2012/bob.learn.linear,tiagofrepereira2012/bob.learn.linear