aboutsummaryrefslogtreecommitdiff
path: root/hal.h
diff options
context:
space:
mode:
authorRob Austein <sra@hactrn.net>2015-12-24 13:55:55 -0500
committerRob Austein <sra@hactrn.net>2015-12-24 13:55:55 -0500
commit1a7b3c31095762afebeab1cc1717259c0e3c5cc9 (patch)
tree77753c21bf6510ccadcb96684004a9808f6f9ae6 /hal.h
parent7dfad9f2b40f32fb2f2d38c4637ae9faad4228d9 (diff)
hal_rpc_logout_all(), hal_rpc_is_logged_in().
Diffstat (limited to 'hal.h')
-rw-r--r--hal.h6
1 files changed, 6 insertions, 0 deletions
diff --git a/hal.h b/hal.h
index 36b69dc..bf5ca6f 100644
--- a/hal.h
+++ b/hal.h
@@ -124,6 +124,7 @@
DEFINE_HAL_ERROR(HAL_ERROR_NO_KEY_SLOTS_AVAILABLE, "No key slots available") \
DEFINE_HAL_ERROR(HAL_ERROR_PIN_INCORRECT, "PIN incorrect") \
DEFINE_HAL_ERROR(HAL_ERROR_NO_CLIENT_SLOTS_AVAILABLE, "No client slots available") \
+ DEFINE_HAL_ERROR(HAL_ERROR_FORBIDDEN, "Forbidden") \
END_OF_HAL_ERROR_LIST
/* Marker to forestall silly line continuation errors */
@@ -554,6 +555,11 @@ extern hal_error_t hal_rpc_login(const hal_client_handle_t client,
extern hal_error_t hal_rpc_logout(const hal_client_handle_t client);
+extern hal_error_t hal_rpc_logout_all(void);
+
+extern hal_error_t hal_rpc_is_logged_in(const hal_client_handle_t client,
+ const hal_user_t user);
+
/*
* Get random bytes.
*/