xapian-bridge C port

endlessm/eos-sdk#2463
Shouldn't need a cast to `gpointer *`.