aboutsummaryrefslogtreecommitdiff
path: root/stm32f091/backlog.h
diff options
context:
space:
mode:
authorlonkaars <loek@pipeframe.xyz>2022-10-19 18:15:36 +0200
committerlonkaars <loek@pipeframe.xyz>2022-10-19 18:15:36 +0200
commit89b8217435286081dc0fe481559da3ee5c20c72a (patch)
tree9be59daf476878a8e55c17776f6c3760d02a27a5 /stm32f091/backlog.h
parente555b5b5e0ad94279ef62d16feacee4976e2970d (diff)
last-records response handler implemented
Diffstat (limited to 'stm32f091/backlog.h')
-rw-r--r--stm32f091/backlog.h4
1 files changed, 3 insertions, 1 deletions
diff --git a/stm32f091/backlog.h b/stm32f091/backlog.h
index 465b3c0..c8ea019 100644
--- a/stm32f091/backlog.h
+++ b/stm32f091/backlog.h
@@ -30,7 +30,7 @@ typedef struct {
#pragma pack(pop)
/** @brief global record backlog database pointer */
-extern ws_s_backlog_database* WS_G_BACKLOG_DATABASE;
+extern ws_s_backlog_database* g_ws_backlog_database;
/**
* @brief add record to database
@@ -55,3 +55,5 @@ ws_s_backlog_record* ws_backlog_get_record(uint16_t record_index);
/** @brief get pointer to last record with offset `record_offset` from the database */
ws_s_backlog_record* ws_backlog_get_last_record(uint16_t record_offset);
+/** @brief return amount of valid records in database */
+uint16_t ws_backlog_get_record_count();