xapian-bridge C port

endlessm/eos-sdk#2463
Same comment as above, consider `g_propagate_prefixed_error()`.