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