From c4dfdfab5affe73d97d08d6f5d30840a16c3484b Mon Sep 17 00:00:00 2001 From: Siddharth Chandrasekaran Date: Wed, 13 Mar 2024 23:27:18 +0100 Subject: [PATCH] api: Fixup comamnd queue flush function name Signed-off-by: Siddharth Chandrasekaran --- include/osdp.h | 2 +- src/osdp_cp.c | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/include/osdp.h b/include/osdp.h index 1326814..15543b8 100644 --- a/include/osdp.h +++ b/include/osdp.h @@ -958,7 +958,7 @@ int osdp_cp_send_command(osdp_t *ctx, int pd, const struct osdp_cmd *cmd); * osdp_cp_setup() * @return int Count of events dequeued */ -int osdp_cp_flush_events(osdp_t *ctx, int pd); +int osdp_cp_flush_commands(osdp_t *ctx, int pd); /** * @brief Get PD ID information as reported by the PD. Calling this method diff --git a/src/osdp_cp.c b/src/osdp_cp.c index 47dce51..68c4f4d 100644 --- a/src/osdp_cp.c +++ b/src/osdp_cp.c @@ -1471,7 +1471,7 @@ int osdp_cp_send_command(osdp_t *ctx, int pd_idx, const struct osdp_cmd *cmd) } OSDP_EXPORT -int osdp_cp_flush_events(osdp_t *ctx, int pd_idx) +int osdp_cp_flush_commands(osdp_t *ctx, int pd_idx) { input_check(ctx, pd_idx); struct osdp_pd *pd = osdp_to_pd(ctx, pd_idx);