]> git.proxmox.com Git - mirror_smartmontools-debian.git/blame - nvmeprint.h
import smartmontools 7.0
[mirror_smartmontools-debian.git] / nvmeprint.h
CommitLineData
a86ec89e
GI
1/*
2 * nvmeprint.h
3 *
4 * Home page of code is: http://www.smartmontools.org
5 *
6 * Copyright (C) 2016 Christian Franke
7 *
ff28b140 8 * SPDX-License-Identifier: GPL-2.0-or-later
a86ec89e
GI
9 */
10
11#ifndef NVMEPRINT_H
12#define NVMEPRINT_H
13
ff28b140 14#define NVMEPRINT_H_CVSID "$Id: nvmeprint.h 4760 2018-08-19 18:45:53Z chrfranke $"
a86ec89e
GI
15
16#include "nvmecmds.h"
17
18// options for nvmePrintMain
19struct nvme_print_options
20{
21 bool drive_info;
22 bool drive_capabilities;
23 bool smart_check_status;
24 bool smart_vendor_attrib;
25 unsigned error_log_entries;
26 unsigned char log_page;
27 unsigned log_page_size;
28
29 nvme_print_options()
30 : drive_info(false),
31 drive_capabilities(false),
32 smart_check_status(false),
33 smart_vendor_attrib(false),
34 error_log_entries(0),
35 log_page(0),
36 log_page_size(0)
37 { }
38};
39
40int nvmePrintMain(nvme_device * device, const nvme_print_options & options);
41
42#endif // NVMEPRINT_H