summaryrefslogtreecommitdiff
path: root/README.md
diff options
context:
space:
mode:
authorJoseph Henry <[email protected]>2021-01-14 22:12:20 -0800
committerJoseph Henry <[email protected]>2021-01-14 22:12:20 -0800
commitf463d6c69fb70c14be528603f2bb4cc0f7efc131 (patch)
tree7508ba9f97a62e8b3e1ffc47ced699ac40f97065 /README.md
parent115a241807b1e9f7b526c406ff7e9d4dd027ddee (diff)
Minor tweak to callback function name for clarity (in code and documentation)
Diffstat (limited to 'README.md')
-rw-r--r--README.md6
1 files changed, 3 insertions, 3 deletions
diff --git a/README.md b/README.md
index 5511226..92a027d 100644
--- a/README.md
+++ b/README.md
@@ -66,7 +66,7 @@ At this stage, if a cryptographic identity for this node does not already exist
bool networkReady = false;
-void myZeroTierEventCallback(struct zts_callback_msg *msg)
+void on_zts_event(struct zts_callback_msg *msg)
{
if (msg->eventCode == ZTS_EVENT_NODE_ONLINE) {
printf("ZTS_EVENT_NODE_ONLINE, nodeId=%llx\n", msg->node->address);
@@ -77,7 +77,7 @@ void myZeroTierEventCallback(struct zts_callback_msg *msg)
int main()
{
- zts_start("configPath", &myZeroTierEventCallback, 9994);
+ zts_start("configPath", &on_zts_event, 9994);
uint64_t nwid = 0x0123456789abcdef;
while (!networkReady) { sleep(1); }
zts_join(nwid);
@@ -138,7 +138,7 @@ struct zts_callback_msg
Here's an example of a callback function:
```
-void myZeroTierEventCallback(struct zts_callback_msg *msg)
+void on_zts_event(struct zts_callback_msg *msg)
{
if (msg->eventCode == ZTS_EVENT_NODE_ONLINE) {
printf("ZTS_EVENT_NODE_ONLINE, node=%llx\n", msg->node->address);