mirror of
https://github.com/sle118/squeezelite-esp32.git
synced 2025-12-10 13:37:03 +03:00
new cspot/bell
This commit is contained in:
@@ -1,23 +1,19 @@
|
||||
#pragma once
|
||||
|
||||
#include <map>
|
||||
#include <string>
|
||||
#include <memory>
|
||||
#include <map> // for map
|
||||
#include <memory> // for unique_ptr
|
||||
#include <string> // for string
|
||||
|
||||
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;
|
||||
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
|
||||
} // namespace bell
|
||||
Reference in New Issue
Block a user