mirror of
https://github.com/sle118/squeezelite-esp32.git
synced 2025-12-12 06:27:12 +03:00
23 lines
467 B
C++
23 lines
467 B
C++
#pragma once
|
|
|
|
#include <map>
|
|
#include <string>
|
|
#include <memory>
|
|
|
|
namespace bell {
|
|
|
|
class MDNSService {
|
|
public:
|
|
virtual ~MDNSService() { }
|
|
static std::unique_ptr<MDNSService> registerService(
|
|
const std::string &serviceName,
|
|
const std::string &serviceType,
|
|
const std::string &serviceProto,
|
|
const std::string &serviceHost,
|
|
int servicePort,
|
|
const std::map<std::string, std::string> txtData
|
|
);
|
|
virtual void unregisterService() = 0;
|
|
};
|
|
|
|
} // namespace bell
|