automotive-message-broker
0.14.803
Main Page
Related Pages
Modules
Namespaces
Classes
Files
Examples
File List
File Members
All
Classes
Namespaces
Files
Functions
Variables
Typedefs
Enumerations
Enumerator
Groups
Pages
plugins
chrony
chrony.h
1
/*
2
Copyright (C) 2012 Intel Corporation
3
Copyright (C) 2015 AWTC Europe
4
5
This library is free software; you can redistribute it and/or
6
modify it under the terms of the GNU Lesser General Public
7
License as published by the Free Software Foundation; either
8
version 2.1 of the License, or (at your option) any later version.
9
10
This library is distributed in the hope that it will be useful,
11
but WITHOUT ANY WARRANTY; without even the implied warranty of
12
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
13
Lesser General Public License for more details.
14
15
You should have received a copy of the GNU Lesser General Public
16
License along with this library; if not, write to the Free Software
17
Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA
18
*/
19
20
21
#ifndef CHRONYSINK_H
22
#define CHRONYSINK_H
23
24
#include "ambpluginimpl.h"
25
26
#define CHRONYD_SOCKET "/tmp/chrony.gps.sock"
27
28
struct
chrony_sock_sample
{
29
struct
timeval tv;
30
double
offset;
31
int
pulse;
32
int
leap;
33
int
_pad;
34
int
magic;
35
};
36
37
class
ChronySink
:
public
AmbPluginImpl
38
{
39
40
public
:
41
ChronySink
(
AbstractRoutingEngine
* re,
const
std::map<std::string, std::string>& config,
AbstractSource
& parent);
42
~
ChronySink
() { };
43
const
std::string
uuid
()
const
{
return
"35324592-db72-11e4-b432-0022684a4a24"
; }
44
virtual
void
init
();
45
virtual
PropertyList subscriptions();
46
virtual
void
propertyChanged
(
AbstractPropertyType
*
value
);
47
48
};
49
50
#endif // CHRONYSINK_H
Generated by
1.8.2