Commit bb574b46 authored by Christian Kellner's avatar Christian Kellner
Browse files

common: bolt_status_is_connected helper

parent aebeeeb6
......@@ -32,6 +32,12 @@ bolt_status_is_authorized (BoltStatus status)
status == BOLT_STATUS_AUTHORIZED_NEWKEY;
}
gboolean
bolt_status_is_connected (BoltStatus status)
{
return status > BOLT_STATUS_DISCONNECTED;
}
BoltSecurity
bolt_security_from_string (const char *str)
{
......
......@@ -57,6 +57,7 @@ typedef enum {
} BoltStatus;
gboolean bolt_status_is_authorized (BoltStatus status);
gboolean bolt_status_is_connected (BoltStatus status);
/**
* BoltDatabase:
......
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