aboutsummaryrefslogtreecommitdiff
path: root/include
diff options
context:
space:
mode:
authorDouglas Gilbert <dgilbert@interlog.com>2021-05-28 18:23:03 +0000
committerDouglas Gilbert <dgilbert@interlog.com>2021-05-28 18:23:03 +0000
commitd65eadbdaa302c7b83c059569a28efd3304947e4 (patch)
tree748a38551582ad7aab252f35dfd7637caf2dbfe2 /include
parent46fc8659ec9bfc87e58008a5341393a86ca40c52 (diff)
downloadsg3_utils-d65eadbdaa302c7b83c059569a28efd3304947e4.tar.gz
sg_lib: add sg_get_zone_type_str()
git-svn-id: https://svn.bingwo.ca/repos/sg3_utils/trunk@902 6180dd3e-e324-4e3e-922d-17de1ae2f315
Diffstat (limited to 'include')
-rw-r--r--include/sg_lib.h5
1 files changed, 5 insertions, 0 deletions
diff --git a/include/sg_lib.h b/include/sg_lib.h
index 108ab873..857f0d1c 100644
--- a/include/sg_lib.h
+++ b/include/sg_lib.h
@@ -325,6 +325,11 @@ const char * sg_get_desig_code_set_str(int val);
* otherwise returns NULL. */
const char * sg_get_desig_assoc_str(int val);
+/* Yield string associated with zone type (see ZBC and ZBC-2) [e.g. REPORT
+ * ZONES command response]. Returns 'buff' unless buff_len < 1 in which
+ * NULL is returned. */
+char * sg_get_zone_type_str(uint8_t zt, int buff_len, char * buff);
+
/* Yield SCSI Feature Set (sfs) string. When 'peri_type' is < -1 (or > 31)
* returns pointer to string (same as 'buff') associated with 'sfs_code'.
* When 'peri_type' is between -1 (for SPC) and 31 (inclusive) then a match