]> git.proxmox.com Git - mirror_smartmontools-debian.git/blame - nvmeprint.h
Closes #831504
[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 *
8 * This program is free software; you can redistribute it and/or modify
9 * it under the terms of the GNU General Public License as published by
10 * the Free Software Foundation; either version 2, or (at your option)
11 * any later version.
12 *
13 * You should have received a copy of the GNU General Public License
14 * (for example COPYING); If not, see <http://www.gnu.org/licenses/>.
15 *
16 */
17
18#ifndef NVMEPRINT_H
19#define NVMEPRINT_H
20
21#define NVMEPRINT_H_CVSID "$Id: nvmeprint.h 4311 2016-04-27 21:03:01Z chrfranke $"
22
23#include "nvmecmds.h"
24
25// options for nvmePrintMain
26struct nvme_print_options
27{
28 bool drive_info;
29 bool drive_capabilities;
30 bool smart_check_status;
31 bool smart_vendor_attrib;
32 unsigned error_log_entries;
33 unsigned char log_page;
34 unsigned log_page_size;
35
36 nvme_print_options()
37 : drive_info(false),
38 drive_capabilities(false),
39 smart_check_status(false),
40 smart_vendor_attrib(false),
41 error_log_entries(0),
42 log_page(0),
43 log_page_size(0)
44 { }
45};
46
47int nvmePrintMain(nvme_device * device, const nvme_print_options & options);
48
49#endif // NVMEPRINT_H