Unverified Commit 6887249b authored by Shawn Webb's avatar Shawn Webb
Browse files

Support setting the token independently


Signed-off-by: Shawn Webb's avatarShawn Webb <shawn.webb@hardenedbsd.org>
parent f713a174
......@@ -69,6 +69,18 @@ pushover_set_uri(pushover_ctx_t *ctx, const char *uri)
return (ctx->psh_uri != NULL);
}
EXPORTED_SYM
bool
pushover_set_token(pushover_ctx_t *ctx, const char *token)
{
assert(ctx != NULL);
assert(token != NULL);
ctx->psh_token = strdup(token);
return (ctx->psh_token != NULL);
}
EXPORTED_SYM
pushover_message_t *
pushover_init_message(pushover_message_t *msg)
......
......@@ -31,6 +31,7 @@ typedef struct _pushover_message {
pushover_ctx_t *pushover_init_ctx(const char *);
bool pushover_set_uri(pushover_ctx_t *, const char *);
bool pushover_set_token(pushover_ctx_t *, const char *);
pushover_message_t *pushover_init_message(pushover_message_t *);
bool pushover_message_set_msg(pushover_message_t *, char *);
bool pushover_message_set_user(pushover_message_t *, char *);
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment