]> git.ipfire.org Git - thirdparty/nqptp.git/blob - nqptp-message-handlers.h
Merge pull request #34 from heitbaum/patch-1
[thirdparty/nqptp.git] / nqptp-message-handlers.h
1 /*
2 * This file is part of the nqptp distribution (https://github.com/mikebrady/nqptp).
3 * Copyright (c) 2021-2022 Mike Brady.
4 *
5 * This program is free software: you can redistribute it and/or modify
6 * it under the terms of the GNU General Public License as published by
7 * the Free Software Foundation, version 2.
8 *
9 * This program is distributed in the hope that it will be useful, but
10 * WITHOUT ANY WARRANTY; without even the implied warranty of
11 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
12 * General Public License for more details.
13 *
14 * You should have received a copy of the GNU General Public License
15 * along with this program. If not, see <http://www.gnu.org/licenses/>.
16 *
17 * Commercial licensing is also available.
18 */
19
20 #ifndef NQPTP_MESSAGE_HANDLERS_H
21 #define NQPTP_MESSAGE_HANDLERS_H
22
23 #include "general-utilities.h"
24 #include "nqptp-clock-sources.h"
25 #include <sys/types.h>
26
27 void handle_announce(char *buf, ssize_t recv_len, clock_source_private_data *clock_private_info,
28 uint64_t reception_time);
29
30 void handle_sync(char *buf, ssize_t recv_len, clock_source_private_data *clock_private_info,
31 uint64_t reception_time);
32
33 void handle_follow_up(char *buf, ssize_t recv_len, clock_source_private_data *clock_private_info,
34 uint64_t reception_time);
35
36 void handle_control_port_messages(char *buf, ssize_t recv_len,
37 clock_source_private_data *clock_private_info,
38 uint64_t reception_time);
39
40 #endif