Skip to content

Commit

Permalink
mods: ucmd: dummy_block: adapt to scan phase cleanup
Browse files Browse the repository at this point in the history
  • Loading branch information
prajnoha committed May 7, 2024
1 parent 59b94aa commit 90910f6
Showing 1 changed file with 11 additions and 11 deletions.
22 changes: 11 additions & 11 deletions src/modules/ucmd/block/dummy_block/dummy_block.c
Original file line number Diff line number Diff line change
Expand Up @@ -42,12 +42,12 @@ static int _dummy_block_reset(sid_res_t *mod_res, struct sid_ucmd_common_ctx *uc
}
SID_UCMD_MOD_RESET(_dummy_block_reset)

static int _dummy_block_ident(sid_res_t *mod_res, struct sid_ucmd_ctx *ucmd_ctx)
static int _dummy_block_scan_ident(sid_res_t *mod_res, struct sid_ucmd_ctx *ucmd_ctx)
{
sid_res_log_debug(mod_res, "ident");
return 0;
}
SID_UCMD_IDENT(_dummy_block_ident)
SID_UCMD_SCAN_IDENT(_dummy_block_scan_ident)

static int _dummy_block_scan_pre(sid_res_t *mod_res, struct sid_ucmd_ctx *ucmd_ctx)
{
Expand Down Expand Up @@ -84,26 +84,26 @@ static int _dummy_block_scan_post_next(sid_res_t *mod_res, struct sid_ucmd_ctx *
}
SID_UCMD_SCAN_POST_NEXT(_dummy_block_scan_post_next)

static int _dummy_block_trigger_action_current(sid_res_t *mod_res, struct sid_ucmd_ctx *ucmd_ctx)
static int _dummy_block_scan_remove(sid_res_t *mod_res, struct sid_ucmd_ctx *ucmd_ctx)
{
sid_res_log_debug(mod_res, "trigger-action-current");
sid_res_log_debug(mod_res, "scan-remove");
return 0;
}
SID_UCMD_TRIGGER_ACTION_CURRENT(_dummy_block_trigger_action_current)
SID_UCMD_SCAN_REMOVE(_dummy_block_scan_remove)

static int _dummy_block_trigger_action_next(sid_res_t *mod_res, struct sid_ucmd_ctx *ucmd_ctx)
static int _dummy_block_scan_action_current(sid_res_t *mod_res, struct sid_ucmd_ctx *ucmd_ctx)
{
sid_res_log_debug(mod_res, "trigger-action-next");
sid_res_log_debug(mod_res, "scan-action-current");
return 0;
}
SID_UCMD_TRIGGER_ACTION_NEXT(_dummy_block_trigger_action_next)
SID_UCMD_SCAN_ACTION_CURRENT(_dummy_block_scan_action_current)

static int _dummy_block_scan_remove(sid_res_t *mod_res, struct sid_ucmd_ctx *ucmd_ctx)
static int _dummy_block_scan_action_next(sid_res_t *mod_res, struct sid_ucmd_ctx *ucmd_ctx)
{
sid_res_log_debug(mod_res, "scan-remove");
sid_res_log_debug(mod_res, "scan-action-next");
return 0;
}
SID_UCMD_SCAN_REMOVE(_dummy_block_scan_remove)
SID_UCMD_SCAN_ACTION_NEXT(_dummy_block_scan_action_next)

static int _dummy_block_error(sid_res_t *mod_res, struct sid_ucmd_ctx *ucmd_ctx)
{
Expand Down

0 comments on commit 90910f6

Please sign in to comment.