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