An attempt at writing an interface for dns_sd.h