Skip to content
GitLab
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in / Register
Toggle navigation
Menu
Open sidebar
Shawn Webb
libpushover
Commits
6887249b
Unverified
Commit
6887249b
authored
Feb 24, 2020
by
Shawn Webb
Browse files
Support setting the token independently
Signed-off-by:
Shawn Webb
<
shawn.webb@hardenedbsd.org
>
parent
f713a174
Changes
2
Hide whitespace changes
Inline
Side-by-side
libpushover/libpushover.c
View file @
6887249b
...
...
@@ -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
)
...
...
libpushover/libpushover.h
View file @
6887249b
...
...
@@ -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
*
);
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment