X-Git-Url: http://git.meshlink.io/?a=blobdiff_plain;f=src%2Fdevtools.h;h=2981d6d3d20311bfdbd9844df80bb4bca3b33166;hb=5d583af29b3ba76f9acaeb77c0e0457268776dcb;hp=56b2afa4f3c6830b5afec674ee6f6a9e4bf1a0da;hpb=282b99f3c71705bd6e34d4e4f9e8369ea63c87ed;p=meshlink diff --git a/src/devtools.h b/src/devtools.h index 56b2afa4..2981d6d3 100644 --- a/src/devtools.h +++ b/src/devtools.h @@ -166,4 +166,25 @@ extern void (*devtool_trybind_probe)(void); */ extern void (*devtool_keyrotate_probe)(int stage); +/// Debug function pointer variable for asynchronous DNS resolving +extern void (*devtool_adns_resolve_probe)(void); + +/// Debug function pointer variable for SPTPS key renewal +/** This function pointer variable is a userspace tracepoint or debugger callback for + * SPTPS key renewal. + * + * @param node The node whose SPTPS key(s) are being renewed + */ +extern void (*devtool_sptps_renewal_probe)(meshlink_node_t *node); + +/// Debug function pointer variable for asserting inviter/invitee committing sequence +/** This function pointer variable is a userspace tracepoint or debugger callback which + * invokes either after inviter writing invitees host file into the disk + * or after invitee writing it's main config file and host config files that inviter sent into + * the disk. + * + * @param inviter_commited_first true if inviter committed first else false if invitee committed first the other host file into the disk. + */ +extern void (*devtool_set_inviter_commits_first)(bool inviter_commited_first); + #endif