xapian-bridge C port

endlessm/eos-sdk#2463
Me too usually... I used an emacs macro to generate this boilerplate that uses this format instead and I did not bother reindenting... Will do though.