]> git.proxmox.com Git - mirror_smartmontools-debian.git/blobdiff - scsiprint.h
Updated changelog
[mirror_smartmontools-debian.git] / scsiprint.h
index 699bef5b6c8a787c7a4c2c688be5d3a185372f40..fc332f60cc159bef49286629dea9aee2fd73273e 100644 (file)
@@ -3,11 +3,11 @@
  *
  * Home page of code is: http://smartmontools.sourceforge.net
  *
- * Copyright (C) 2002-8 Bruce Allen <smartmontools-support@lists.sourceforge.net>
+ * Copyright (C) 2002-9 Bruce Allen <smartmontools-support@lists.sourceforge.net>
  * Copyright (C) 2000 Michael Cornwell <cornwell@acm.org>
  *
  * Additional SCSI work:
- * Copyright (C) 2003-8 Douglas Gilbert <dougg@torque.net>
+ * Copyright (C) 2003-10 Douglas Gilbert <dgilbert@interlog.com>
  *
  * 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
  */
 
 
-/* scsismart version number */
 #ifndef SCSI_PRINT_H_
 #define SCSI_PRINT_H_
 
-#define SCSIPRINT_H_CVSID "$Id: scsiprint.h,v 1.21 2008/03/04 22:09:47 ballen4705 Exp $\n"
+#define SCSIPRINT_H_CVSID "$Id: scsiprint.h 3413 2011-09-06 21:23:00Z dpgilbert $\n"
 
-int scsiPrintMain(int fd);
+// Options for scsiPrintMain
+struct scsi_print_options
+{
+  bool drive_info;
+  bool smart_check_status;
+  bool smart_vendor_attrib;
+  bool smart_error_log;
+  bool smart_selftest_log;
+  bool smart_background_log;
+  bool smart_ss_media_log;
+
+  bool smart_disable, smart_enable;
+  bool smart_auto_save_disable, smart_auto_save_enable;
+
+  bool smart_default_selftest;
+  bool smart_short_selftest, smart_short_cap_selftest;
+  bool smart_extend_selftest, smart_extend_cap_selftest;
+  bool smart_selftest_abort;
+
+  bool sasphy, sasphy_reset;
+
+  scsi_print_options()
+    : drive_info(false),
+      smart_check_status(false),
+      smart_vendor_attrib(false),
+      smart_error_log(false),
+      smart_selftest_log(false),
+      smart_background_log(false),
+      smart_ss_media_log(false),
+      smart_disable(false), smart_enable(false),
+      smart_auto_save_disable(false), smart_auto_save_enable(false),
+      smart_default_selftest(false),
+      smart_short_selftest(false), smart_short_cap_selftest(false),
+      smart_extend_selftest(false), smart_extend_cap_selftest(false),
+      smart_selftest_abort(false),
+      sasphy(false), sasphy_reset(false)
+    { }
+};
+
+int scsiPrintMain(scsi_device * device, const scsi_print_options & options);
 
 #endif