xref: /netbsd-src/external/bsd/ntp/dist/ntpd/ntp_clockdev.h (revision eabc0478de71e4e011a5b4e0392741e01d491794)
1*eabc0478Schristos /*	$NetBSD: ntp_clockdev.h,v 1.2 2024/08/18 20:47:17 christos Exp $	*/
2897be3a4Schristos 
3897be3a4Schristos /* ntp_clockdev.h - map clock instances to devices
4897be3a4Schristos  *
5897be3a4Schristos  * Written by Juergen Perlinger (perlinger@ntp.org) for the NTP project.
6897be3a4Schristos  * The contents of 'html/copyright.html' apply.
7897be3a4Schristos  * ---------------------------------------------------------------------
8897be3a4Schristos  * The runtime support for the 'device' configuration statement.  Just a
9897be3a4Schristos  * simple list to map refclock source addresses to the device(s) to use
10897be3a4Schristos  * instead of the builtin names.
11897be3a4Schristos  * ---------------------------------------------------------------------
12897be3a4Schristos  */
13897be3a4Schristos #ifndef NTP_CLOCKDEV_H
14897be3a4Schristos #define NTP_CLOCKDEV_H
15897be3a4Schristos 
16897be3a4Schristos extern void clockdev_clear(void);
17897be3a4Schristos 
18897be3a4Schristos extern int clockdev_remove(
19897be3a4Schristos 	const sockaddr_u *addr_sock);
20897be3a4Schristos 
21897be3a4Schristos extern int clockdev_update(
22897be3a4Schristos 	const sockaddr_u *addr_sock, const char *ttyName, const char *ppsName);
23897be3a4Schristos 
24897be3a4Schristos extern const char *clockdev_lookup(
25897be3a4Schristos 	const sockaddr_u * addr_sock, int getPps);
26897be3a4Schristos 
27897be3a4Schristos #endif /*!defined(NTP_CLOCKDEV_H)*/
28