X-Git-Url: http://git.meshlink.io/?a=blobdiff_plain;f=src%2Fmeshlink%2B%2B.h;h=4d900448baae145a0b91616190d09c8e5766328e;hb=d65ff28f38ba779fbd6f970fb3c84b0ed98daa28;hp=6374a86d3b3725920c4b464da91afb6dbfaa744c;hpb=be83b0af60449c7b35d17d97f2e6dc12f611e831;p=meshlink diff --git a/src/meshlink++.h b/src/meshlink++.h index 6374a86d..4d900448 100644 --- a/src/meshlink++.h +++ b/src/meshlink++.h @@ -1019,6 +1019,17 @@ public: meshlink_set_dev_class_fast_retry_period(handle, devclass, fast_retry_period); } + /// Set which order invitations are committed + /** This determines in which order configuration files are written to disk during an invitation. + * By default, the invitee saves the configuration to disk first, then the inviter. + * By calling this function with @a inviter_commits_first set to true, the order is reversed. + * + * @param inviter_commits_first If true, then the node that invited a peer will commit data to disk first. + */ + void set_inviter_commits_first(bool inviter_commits_first) { + meshlink_set_inviter_commits_first(handle, inviter_commits_first); + } + private: // non-copyable: mesh(const mesh &) /* TODO: C++11: = delete */;