diff options
Diffstat (limited to 'clients/client.h')
| -rw-r--r-- | clients/client.h | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/clients/client.h b/clients/client.h index 9372e72..40a8669 100644 --- a/clients/client.h +++ b/clients/client.h @@ -36,6 +36,10 @@ char *client_rpc(struct client_conn *c, const char *cmd, const char *session, int client_login(struct client_conn *c, const char *user, const char *password, char **session_out, char **err_out); +/* Token login (same contract as client_login). */ +int client_token_login(struct client_conn *c, const char *token, + char **session_out, char **err_out); + /* Convenience: true when the response line has "ok":true. */ int client_ok(const char *response); /* Extract result.session into buf; returns 0 on success. */ |
