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