Blame view

check_smart/check_smart.h 474 Bytes
Imanol-Mikel Barba Sabariego authored
1
2
3
4
5
6
7
8
9
10
11
12
13
#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>
Imanol-Mikel Barba Sabariego authored
14
#include "auxiliar.h"
Imanol-Mikel Barba Sabariego authored
15
16
17
18
19
20
21
22
23
24
25

#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