diff options
author | Anderson Toshiyuki Sasaki <ansasaki@redhat.com> | 2020-04-06 12:07:28 +0200 |
---|---|---|
committer | Andreas Schneider <asn@cryptomilk.org> | 2020-04-09 11:25:49 +0200 |
commit | dba2114ed78796caa06fc9d53268cb9cc302699f (patch) | |
tree | c570b67dc5b55a47f9b4ecd2b64f265e5ea08ff5 /include/libssh/priv.h | |
parent | e3e52394c11e7b9bafa3086e7be937388540daeb (diff) | |
download | libssh-dba2114ed78796caa06fc9d53268cb9cc302699f.tar.gz libssh-dba2114ed78796caa06fc9d53268cb9cc302699f.tar.xz libssh-dba2114ed78796caa06fc9d53268cb9cc302699f.zip |
init: Introduce internal is_ssh_initialized()
The introduced function returns whether the library is initialized or
not.
Signed-off-by: Anderson Toshiyuki Sasaki <ansasaki@redhat.com>
Reviewed-by: Andreas Schneider <asn@cryptomilk.org>
Diffstat (limited to 'include/libssh/priv.h')
-rw-r--r-- | include/libssh/priv.h | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/include/libssh/priv.h b/include/libssh/priv.h index 6e7f2de8..3cf2004e 100644 --- a/include/libssh/priv.h +++ b/include/libssh/priv.h @@ -32,6 +32,7 @@ #include <stdint.h> #include <stdlib.h> #include <string.h> +#include <stdbool.h> #if !defined(HAVE_STRTOULL) # if defined(HAVE___STRTOULL) @@ -417,4 +418,6 @@ void explicit_bzero(void *s, size_t n); void ssh_agent_state_free(void *data); +bool is_ssh_initialized(void); + #endif /* _LIBSSH_PRIV_H */ |