aboutsummaryrefslogtreecommitdiff
path: root/include/sg_pt.h
diff options
context:
space:
mode:
Diffstat (limited to 'include/sg_pt.h')
-rw-r--r--include/sg_pt.h12
1 files changed, 11 insertions, 1 deletions
diff --git a/include/sg_pt.h b/include/sg_pt.h
index cee5e670..d3ae7d50 100644
--- a/include/sg_pt.h
+++ b/include/sg_pt.h
@@ -2,7 +2,7 @@
#define SG_PT_H
/*
- * Copyright (c) 2005-2010 Douglas Gilbert.
+ * Copyright (c) 2005-2011 Douglas Gilbert.
* All rights reserved.
* Use of this source code is governed by a BSD-style
* license that can be found in the BSD_LICENSE file.
@@ -129,6 +129,16 @@ extern int get_scsi_pt_duration_ms(const struct sg_pt_base * objp);
* call there should be one destruct_scsi_pt_obj(). */
extern void destruct_scsi_pt_obj(struct sg_pt_base * objp);
+#ifdef SG_LIB_WIN32
+#define SG_LIB_WIN32_DIRECT 1
+
+/* Request SPT direct interface when state_direct is 1, state_direct set
+ * to 0 for the SPT indirect interface. Default setting selected by build
+ * (i.e. library compile time) and is usually indirect. */
+extern void scsi_pt_win32_direct(int state_direct);
+
+#endif
+
#ifdef __cplusplus
}
#endif