diff options
Diffstat (limited to 'Swiften/LinkLocal/DNSSDService.h')
-rw-r--r-- | Swiften/LinkLocal/DNSSDService.h | 13 |
1 files changed, 8 insertions, 5 deletions
diff --git a/Swiften/LinkLocal/DNSSDService.h b/Swiften/LinkLocal/DNSSDService.h index 0899ffd..3437c58 100644 --- a/Swiften/LinkLocal/DNSSDService.h +++ b/Swiften/LinkLocal/DNSSDService.h @@ -8,7 +8,8 @@ namespace Swift { class DNSSDService { public: - struct DiscoveredService { + struct Service { + Service(const String& name, const String& type, const String& domain, int networkInterface) : name(name), type(type), domain(domain), networkInterface(networkInterface) {} String name; String type; String domain; @@ -17,11 +18,13 @@ namespace Swift { virtual ~DNSSDService(); - virtual void publishService(const std::map<String,String> properties) = 0; + virtual void registerService(const String& name, int port, const std::map<String,String>& properties) = 0; + virtual void unregisterService() = 0; virtual void start() = 0; - boost::signal<void (const DiscoveredService&)> onServiceAdded; - boost::signal<void (const DiscoveredService&)> onServiceRemoved; - boost::signal<void ()> onServiceRegistered; + boost::signal<void (const Service&)> onServiceAdded; + boost::signal<void (const Service&)> onServiceRemoved; + boost::signal<void (const Service&)> onServiceRegistered; + boost::signal<void ()> onError; }; } |