xapian-bridge C port

endlessm/eos-sdk#2463
style nitpicks: no space after `*`; be consistent with either blank lines in between definitions or no blank lines