Unverified Commit a92d2ab8 authored by Shawn Webb's avatar Shawn Webb
Browse files

Keep track of libpushover version



We may want to keep track of the version of libpushover in code (for
ABI/API changes, backwards compatibility, etc.)
Signed-off-by: Shawn Webb's avatarShawn Webb <shawn.webb@hardenedbsd.org>
parent d61ef265
......@@ -57,6 +57,8 @@ pushover_init_ctx(const char *token)
if (token != NULL)
res->psh_token = strdup(token);
res->psh_version = LIBPUSHOVER_VERSION;
out:
return (res);
}
......
......@@ -5,6 +5,8 @@
#include <curl/curl.h>
#define LIBPUSHOVER_VERSION 20200428001UL
#define EXPORTED_SYM __attribute__((visibility("default")))
#define PUSHOVER_URI "https://api.pushover.net/1/messages.json"
......@@ -20,6 +22,7 @@ typedef enum _pushover_priority {
} pushover_priority_t;
typedef struct _pushover_ctx {
uint64_t psh_version;
char *psh_token;
char *psh_uri;
} pushover_ctx_t;
......
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