xapian-bridge C port

endlessm/eos-sdk#2463
I'm operating on the assumption that the first place people look when wondering "how do I use this function?" is a comment right above the function definition.