OpenCPN Partial API docs
Loading...
Searching...
No Matches
zeroconf.hpp
1#ifndef ZEROCONF_HPP
2#define ZEROCONF_HPP
3
5// zeroconf.hpp
6
7// (C) Copyright 2016 Yuri Yakovlev <yvzmail@gmail.com>
8// Use, modification and distribution is subject to the GNU General Public
9// License
10
11#include <ctime>
12#include <string>
13#include <vector>
14
15#include "zeroconf-util.hpp"
16#include "zeroconf-detail.hpp"
17
18namespace Zeroconf {
19typedef Detail::Log::LogLevel LogLevel;
20typedef Detail::Log::LogCallback LogCallback;
21typedef Detail::mdns_responce mdns_responce;
22
23inline bool Resolve(const std::string& serviceName, time_t scanTime,
24 std::vector<mdns_responce>* result) {
25 return Detail::Resolve(serviceName, scanTime, result);
26}
27
28inline void SetLogCallback(LogCallback callback) {
29 Detail::Log::SetLogCallback(callback);
30}
31} // namespace Zeroconf
32
33#endif // ZEROCONF_HPP