A generalized Bondi accretion model for the galactic centre