Files
libreoffice/sd/source/ui/remotecontrol/WINNetworkService.cxx
Stephan Bergmann 480e84d88d clang-cl loplugin: sd
Change-Id: I26a1e20a3b811aea535994cda2e49a9c39df64b7
Reviewed-on: https://gerrit.libreoffice.org/29855
Tested-by: Jenkins <ci@libreoffice.org>
Reviewed-by: Stephan Bergmann <sbergman@redhat.com>
2016-10-16 14:18:17 +00:00

20 lines
480 B
C++

#include <string>
#include <iostream>
#include "WINNetworkService.hxx"
#include <sal/log.hxx>
void sd::WINNetworkService::setup()
{
DNSServiceErrorType err = DNSServiceRegister(&client, 0, 0, nullptr, kREG_TYPE, "local", nullptr, 1599, 1, "", nullptr, this );
if (kDNSServiceErr_NoError != err)
SAL_WARN("sdremote.wifi", "DNSServiceRegister failed: " << err);
// Fail silently
}
void sd::WINNetworkService::clear()
{
DNSServiceRefDeallocate(client);
}