|
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
|
#ifndef CHECK_SMART_H
#define CHECK_SMART_H
#include <iostream>
#include <sstream>
#include <stdio.h>
#include <cstring>
#include <cstdlib>
#include <unistd.h>
#include <sys/time.h>
#include "aux.h"
#define SMARTCTL_CMD "smartctl -A "
#define VERSION "1.0"
using namespace std;
int evalStatus(char* disk, string reallocatedCount, string currentPending, string offlineUncorrectable, string *status);
void printVersion();
void printHelp(bool longVersion);
#endif
|