Skip to content

Commit

Permalink
api: Fixup comamnd queue flush function name
Browse files Browse the repository at this point in the history
Signed-off-by: Siddharth Chandrasekaran <[email protected]>
  • Loading branch information
sidcha committed Mar 13, 2024
1 parent 38ca881 commit c4dfdfa
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion include/osdp.h
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
2 changes: 1 addition & 1 deletion src/osdp_cp.c
Original file line number Diff line number Diff line change
Expand Up @@ -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);
Expand Down

0 comments on commit c4dfdfa

Please sign in to comment.