slotmap: Add "DELETE_REQ" state
Change-Id: I953e72e304d6403b2e47f7546a36abfdf246e44b
diff --git a/src/slotmap.c b/src/slotmap.c
index 12d7777..a8874fb 100644
--- a/src/slotmap.c
+++ b/src/slotmap.c
@@ -17,6 +17,7 @@
{ SLMAP_S_NEW, "NEW" },
{ SLMAP_S_UNACKNOWLEDGED, "UNACKNOWLEDGED" },
{ SLMAP_S_ACTIVE, "ACTIVE" },
+ { SLMAP_S_DELETE_REQ, "DELETE_REQ" },
{ SLMAP_S_DELETING, "DELETING" },
{ 0, NULL }
};
diff --git a/src/slotmap.h b/src/slotmap.h
index af08a81..5d3d891 100644
--- a/src/slotmap.h
+++ b/src/slotmap.h
@@ -36,7 +36,8 @@
SLMAP_S_NEW, /* created; not yet sent to bankd */
SLMAP_S_UNACKNOWLEDGED, /* created + sent to bankd but not yet acknowledge by bankd */
SLMAP_S_ACTIVE, /* fully active map; acknowledged by bankd */
- SLMAP_S_DELETING, /* we were asked to delete it; bankd hasn't confirmed yet */
+ SLMAP_S_DELETE_REQ, /* fully active map; REST has requested deletion */
+ SLMAP_S_DELETING, /* RSPRO has issued Remove to bankd, but bankd hasn't confirmed yet */
};
extern const struct value_string slot_map_state_name[];
static inline const char *slotmap_state_name(enum slot_mapping_state st)