]> git.meshlink.io Git - meshlink/blobdiff - src/devtools.h
Add a probe point for async DNS resolving.
[meshlink] / src / devtools.h
index 56b2afa4f3c6830b5afec674ee6f6a9e4bf1a0da..79aef33a365dd01be4c06668414106dac8106cf4 100644 (file)
@@ -166,4 +166,17 @@ 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 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