xapian-bridge C port

endlessm/eos-sdk#2463
Not strictly necessary because the pointers are all set to `NULL` by `g_malloc0`, but whatever :smile: