File: zeroconf.hpp

package info (click to toggle)
opencpn 5.2.4%2Bdfsg-1
  • links: PTS, VCS
  • area: main
  • in suites: bullseye
  • size: 101,540 kB
  • sloc: ansic: 414,598; cpp: 253,008; xml: 83,748; sh: 409; python: 353; makefile: 110; javascript: 87; perl: 83
file content (34 lines) | stat: -rw-r--r-- 881 bytes parent folder | download
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
#ifndef ZEROCONF_HPP
#define ZEROCONF_HPP

//////////////////////////////////////////////////////////////////////////
// zeroconf.hpp

// (C) Copyright 2016 Yuri Yakovlev <yvzmail@gmail.com>
// Use, modification and distribution is subject to the GNU General Public License

#include <ctime>
#include <string>
#include <vector>

#include "zeroconf-util.hpp"
#include "zeroconf-detail.hpp"

namespace Zeroconf
{    
    typedef Detail::Log::LogLevel LogLevel;
    typedef Detail::Log::LogCallback LogCallback;
    typedef Detail::mdns_responce mdns_responce;

    inline bool Resolve(const std::string& serviceName, time_t scanTime, std::vector<mdns_responce>* result)
    {
        return Detail::Resolve(serviceName, scanTime, result);
    }

    inline void SetLogCallback(LogCallback callback)
    {
        Detail::Log::SetLogCallback(callback);
    }
}

#endif // ZEROCONF_HPP