gecko-dev/media/mtransport/mdns_service/mdns_service.h

29 строки
754 B
C++

#include <cstdarg>
#include <cstdint>
#include <cstdlib>
#include <new>
struct MDNSService;
extern "C" {
void mdns_service_register_hostname(MDNSService* serv, const char* hostname,
const char* addr);
MDNSService* mdns_service_start(const char* ifaddr);
void mdns_service_stop(MDNSService* serv);
void mdns_service_query_hostname(
MDNSService* serv, void* data,
void (*resolved)(void* data, const char* hostname, const char* address),
void (*timedout)(void* data, const char* hostname), const char* hostname);
void mdns_service_unregister_hostname(MDNSService* serv, const char* hostname);
const char* mdns_service_generate_uuid();
void mdns_service_free_uuid(const char* uuid);
} // extern "C"