-
Notifications
You must be signed in to change notification settings - Fork 23
/
Copy pathnqptp-message-handlers.h
40 lines (33 loc) · 1.52 KB
/
nqptp-message-handlers.h
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
35
36
37
38
39
40
/*
* This file is part of the nqptp distribution (https://github.com/mikebrady/nqptp).
* Copyright (c) 2021-2022 Mike Brady.
*
* This program is free software: you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
* the Free Software Foundation, version 2.
*
* This program is distributed in the hope that it will be useful, but
* WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
* General Public License for more details.
*
* You should have received a copy of the GNU General Public License
* along with this program. If not, see <http://www.gnu.org/licenses/>.
*
* Commercial licensing is also available.
*/
#ifndef NQPTP_MESSAGE_HANDLERS_H
#define NQPTP_MESSAGE_HANDLERS_H
#include "general-utilities.h"
#include "nqptp-clock-sources.h"
#include <sys/types.h>
void handle_announce(char *buf, ssize_t recv_len, clock_source_private_data *clock_private_info,
uint64_t reception_time);
void handle_sync(char *buf, ssize_t recv_len, clock_source_private_data *clock_private_info,
uint64_t reception_time);
void handle_follow_up(char *buf, ssize_t recv_len, clock_source_private_data *clock_private_info,
uint64_t reception_time);
void handle_control_port_messages(char *buf, ssize_t recv_len,
clock_source_private_data *clock_private_info,
uint64_t reception_time);
#endif