Add methods to set paths and callbacks from the C binding.