Created
June 1, 2016 17:02
-
-
Save azenla/1fe43a124e6b7f87b02b38a6ad2b0400 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
void on_invoke_updates(struct DSLink *link, ref_t *req_ref, json_t *resp) { | |
(void) link; | |
(void) req_ref; | |
char *data = json_dumps(resp, JSON_INDENT(2)); | |
printf("Got invoke %s\n", data); | |
dslink_free(data); | |
} | |
dslink_requester_invoke(link, "/sys/clearConns", json_object(), on_invoke_updates); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment