make it fit in allocated space

This commit is contained in:
philippe44
2023-03-27 17:09:27 -07:00
parent 7dfdd7b9e5
commit fc78b36c1f
24 changed files with 421 additions and 230 deletions

View File

@@ -2,12 +2,14 @@
#include <map>
#include <string>
#include <memory>
namespace bell {
class MDNSService {
public:
static void* registerService(
public:
virtual ~MDNSService() { }
static std::unique_ptr<MDNSService> registerService(
const std::string &serviceName,
const std::string &serviceType,
const std::string &serviceProto,
@@ -15,7 +17,7 @@ class MDNSService {
int servicePort,
const std::map<std::string, std::string> txtData
);
static void unregisterService(void* service);
virtual void unregisterService() = 0;
};
} // namespace bell