]>
Commit | Line | Data |
---|---|---|
0af7f4fb MB |
1 | /* |
2 | * This file is part of Shairport Sync. | |
dabfee5b | 3 | * Copyright (c) Mike Brady 2020 -- 2023 |
0af7f4fb MB |
4 | * All rights reserved. |
5 | * | |
6 | * Permission is hereby granted, free of charge, to any person | |
7 | * obtaining a copy of this software and associated documentation | |
8 | * files (the "Software"), to deal in the Software without | |
9 | * restriction, including without limitation the rights to use, | |
10 | * copy, modify, merge, publish, distribute, sublicense, and/or | |
11 | * sell copies of the Software, and to permit persons to whom the | |
12 | * Software is furnished to do so, subject to the following conditions: | |
13 | * | |
14 | * The above copyright notice and this permission notice shall be | |
15 | * included in all copies or substantial portions of the Software. | |
16 | * | |
17 | * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, | |
18 | * EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES | |
19 | * OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND | |
20 | * NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT | |
21 | * HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, | |
22 | * WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING | |
23 | * FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR | |
24 | * OTHER DEALINGS IN THE SOFTWARE. | |
25 | */ | |
26 | #ifndef __PTP_UTILITIES_H | |
27 | #define __PTP_UTILITIES_H | |
28 | ||
29 | #include "config.h" | |
fd880056 | 30 | #include "nqptp-shm-structures.h" |
0af7f4fb MB |
31 | #include <stdint.h> |
32 | ||
861455f7 | 33 | int ptp_get_clock_info(uint64_t *actual_clock_id, uint64_t *time_of_sample, uint64_t *raw_offset, |
a109b587 | 34 | uint64_t *mastership_start_time); |
0af7f4fb MB |
35 | |
36 | void ptp_send_control_message_string(const char *msg); | |
37 | ||
322f0772 | 38 | void ptp_shm_interface_init(); |
0af7f4fb | 39 | int ptp_shm_interface_open(); |
dabfee5b | 40 | int ptp_get_clock_version(); |
0af7f4fb MB |
41 | int ptp_shm_interface_close(); |
42 | ||
43 | #endif /* __PTP_UTILITIES_H */ |