/*
- * Copyright (C) 2010-2012 jeanfi@gmail.com
+ * Copyright (C) 2010-2014 jeanfi@gmail.com
*
* This program is free software; you can redistribute it and/or
* modify it under the terms of the GNU General Public License as
#ifndef _PSENSOR_HDD_H_
#define _PSENSOR_HDD_H_
-#include "psensor.h"
+#include <bool.h>
+#include <config.h>
+#include <psensor.h>
-struct psensor **hdd_psensor_list_add(struct psensor **sensors,
- int values_max_length);
+#if defined(HAVE_ATASMART) && HAVE_ATASMART
-void hdd_psensor_list_update(struct psensor **sensors);
+static inline bool atasmart_is_supported(void) { return true; }
+
+void atasmart_psensor_list_append(struct psensor ***, int);
+void atasmart_psensor_list_update(struct psensor **);
+
+#else
+
+static inline bool atasmart_is_supported(void) { return false; }
+
+static inline void atasmart_psensor_list_append(struct psensor ***s, int n) {}
+static inline void atasmart_psensor_list_update(struct psensor **s) {}
+
+#endif
+
+void hddtemp_psensor_list_append(struct psensor ***sensors, int values_length);
+void hddtemp_psensor_list_update(struct psensor **sensors);
#endif