forked from allanliu/smartmontools
-
Notifications
You must be signed in to change notification settings - Fork 2
/
Copy pathlibsmartctl_ata.h
52 lines (43 loc) · 1.72 KB
/
libsmartctl_ata.h
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
/*
* libsmartctl_ata.h
*
* Home page of code is: http://www.smartmontools.org
*
* Copyright (C) 2002-10 Bruce Allen
* Copyright (C) 2008-10 Christian Franke
* Copyright (C) 2000 Michael Cornwell <[email protected]>
*
* This program is free software; you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
* the Free Software Foundation; either version 2, or (at your option)
* any later version.
*
* You should have received a copy of the GNU General Public License
* (for example COPYING); if not, write to the Free Software Foundation,
* Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA.
*
* This code was originally developed as a Senior Thesis by Michael Cornwell
* at the Concurrent Systems Laboratory (now part of the Storage Systems
* Research Center), Jack Baskin School of Engineering, University of
* California, Santa Cruz. http://ssrc.soe.ucsc.edu/
*
*/
#ifndef LIBSMARTCTL_ATA_H_
#define LIBSMARTCTL_ATA_H_
#define LIBSMARTCTL_ATA_H_CVSID "$Id$\n"
#include <iostream>
#include <map>
#include "ataprint.h"
#include "smartctl_errs.h"
void get_ata(std::map<std::string, std::string> &results, ata_device *device,
const ata_print_options &options);
bool cant_id(ata_device *device);
ctlerr_t get_ata_information(std::map<std::string, std::string> &results,
ata_device *device,
const ata_print_options &options);
ctlerr_t
get_ata_vendor_attr(std::vector<std::map<std::string, std::string>> &results,
ata_device *device, const ata_print_options &options);
#endif