xref: /netbsd-src/external/bsd/ntp/dist/ntpd/ntp_clockdev.h (revision eabc0478de71e4e011a5b4e0392741e01d491794)
1 /*	$NetBSD: ntp_clockdev.h,v 1.2 2024/08/18 20:47:17 christos Exp $	*/
2 
3 /* ntp_clockdev.h - map clock instances to devices
4  *
5  * Written by Juergen Perlinger (perlinger@ntp.org) for the NTP project.
6  * The contents of 'html/copyright.html' apply.
7  * ---------------------------------------------------------------------
8  * The runtime support for the 'device' configuration statement.  Just a
9  * simple list to map refclock source addresses to the device(s) to use
10  * instead of the builtin names.
11  * ---------------------------------------------------------------------
12  */
13 #ifndef NTP_CLOCKDEV_H
14 #define NTP_CLOCKDEV_H
15 
16 extern void clockdev_clear(void);
17 
18 extern int clockdev_remove(
19 	const sockaddr_u *addr_sock);
20 
21 extern int clockdev_update(
22 	const sockaddr_u *addr_sock, const char *ttyName, const char *ppsName);
23 
24 extern const char *clockdev_lookup(
25 	const sockaddr_u * addr_sock, int getPps);
26 
27 #endif /*!defined(NTP_CLOCKDEV_H)*/
28