confd_init just takes a file descriptor, so it could be an open file. There is an example of this in examples.confd/cdb_subscription/twophase/twophase.c. So you can just do an fopen() on a file, and pass the file descriptor to confd_init.