xapian-bridge C port

endlessm/eos-sdk#2463
libsoup uses a completely different indentation style anyway, so I'll leave it as-is :)