diff options
author | Douglas Gilbert <dgilbert@interlog.com> | 2022-03-09 15:52:27 +0000 |
---|---|---|
committer | Douglas Gilbert <dgilbert@interlog.com> | 2022-03-09 15:52:27 +0000 |
commit | 6498c8fa92b6ecfce411679af47064a6fd80ff33 (patch) | |
tree | 3a9ff8d3f4117965d82fe9105949e23dae93a023 /include | |
parent | d4e94e36b445985f8618ed048c98787ad0edfdf1 (diff) | |
download | sg3_utils-6498c8fa92b6ecfce411679af47064a6fd80ff33.tar.gz |
sg_logs: add --exclude and --undefined options, improve 'last_n' log pages; add inhex/logs_last_n.hex
git-svn-id: https://svn.bingwo.ca/repos/sg3_utils/trunk@942 6180dd3e-e324-4e3e-922d-17de1ae2f315
Diffstat (limited to 'include')
-rw-r--r-- | include/Makefile.am | 1 | ||||
-rw-r--r-- | include/Makefile.in | 16 | ||||
-rw-r--r-- | include/sg_lib_names.h | 31 |
3 files changed, 40 insertions, 8 deletions
diff --git a/include/Makefile.am b/include/Makefile.am index 64c27b43..4cf82f15 100644 --- a/include/Makefile.am +++ b/include/Makefile.am @@ -4,6 +4,7 @@ scsiincludedir = $(includedir)/scsi scsiinclude_HEADERS = \ sg_lib.h \ sg_lib_data.h \ + sg_lib_names.h \ sg_cmds.h \ sg_cmds_basic.h \ sg_cmds_extra.h \ diff --git a/include/Makefile.in b/include/Makefile.in index b39df120..af1d3a79 100644 --- a/include/Makefile.in +++ b/include/Makefile.in @@ -126,10 +126,10 @@ am__can_run_installinfo = \ *) (install-info --version) >/dev/null 2>&1;; \ esac am__noinst_HEADERS_DIST = sg_linux_inc.h sg_io_linux.h sg_pt_win32.h -am__scsiinclude_HEADERS_DIST = sg_lib.h sg_lib_data.h sg_cmds.h \ - sg_cmds_basic.h sg_cmds_extra.h sg_cmds_mmc.h sg_pr2serr.h \ - sg_unaligned.h sg_pt.h sg_pt_nvme.h sg_linux_inc.h \ - sg_io_linux.h sg_pt_linux.h sg_pt_win32.h +am__scsiinclude_HEADERS_DIST = sg_lib.h sg_lib_data.h sg_lib_names.h \ + sg_cmds.h sg_cmds_basic.h sg_cmds_extra.h sg_cmds_mmc.h \ + sg_pr2serr.h sg_unaligned.h sg_pt.h sg_pt_nvme.h \ + sg_linux_inc.h sg_io_linux.h sg_pt_linux.h sg_pt_win32.h am__vpath_adj_setup = srcdirstrip=`echo "$(srcdir)" | sed 's|.|.|g'`; am__vpath_adj = case $$p in \ $(srcdir)/*) f=`echo "$$p" | sed "s|^$$srcdirstrip/||"`;; \ @@ -304,10 +304,10 @@ top_build_prefix = @top_build_prefix@ top_builddir = @top_builddir@ top_srcdir = @top_srcdir@ scsiincludedir = $(includedir)/scsi -scsiinclude_HEADERS = sg_lib.h sg_lib_data.h sg_cmds.h sg_cmds_basic.h \ - sg_cmds_extra.h sg_cmds_mmc.h sg_pr2serr.h sg_unaligned.h \ - sg_pt.h sg_pt_nvme.h $(am__append_1) $(am__append_2) \ - $(am__append_3) +scsiinclude_HEADERS = sg_lib.h sg_lib_data.h sg_lib_names.h sg_cmds.h \ + sg_cmds_basic.h sg_cmds_extra.h sg_cmds_mmc.h sg_pr2serr.h \ + sg_unaligned.h sg_pt.h sg_pt_nvme.h $(am__append_1) \ + $(am__append_2) $(am__append_3) @OS_FREEBSD_TRUE@noinst_HEADERS = \ @OS_FREEBSD_TRUE@ sg_linux_inc.h \ @OS_FREEBSD_TRUE@ sg_io_linux.h \ diff --git a/include/sg_lib_names.h b/include/sg_lib_names.h new file mode 100644 index 00000000..df997edd --- /dev/null +++ b/include/sg_lib_names.h @@ -0,0 +1,31 @@ +#ifndef SG_LIB_NAMES_H +#define SG_LIB_NAMES_H + +/* + * Copyright (c) 2022 Douglas Gilbert. + * All rights reserved. + * Use of this source code is governed by a BSD-style + * license that can be found in the BSD_LICENSE file. + * + * SPDX-License-Identifier: BSD-2-Clause + */ + +#include <stdint.h> + +#include "sg_lib_data.h" + +#ifdef __cplusplus +extern "C" { +#endif + +extern struct sg_lib_simple_value_name_t sg_lib_names_mode_arr[]; +extern struct sg_lib_simple_value_name_t sg_lib_names_vpd_arr[]; + +extern const size_t sg_lib_names_mode_len; +extern const size_t sg_lib_names_vpd_len; + +#ifdef __cplusplus +} +#endif + +#endif /* end of SG_LIB_NAMES */ |