-/*
+/*
Copyright (C) 2010 by Ronnie Sahlberg <ronniesahlberg@gmail.com>
This program is free software; you can redistribute it and/or modify
You should have received a copy of the GNU General Public License
along with this program; if not, see <http://www.gnu.org/licenses/>.
*/
+#ifndef CCAN_ISCSI_H
+#define CCAN_ISCSI_H
struct iscsi_context;
struct sockaddr;
ISCSI_STATUS_ERROR =0x0f000001 };
-/*
+/*
* Generic callback for completion of iscsi_*_async().
* command_data depends on status.
*/
* ISCSI_STATUS_GOOD : Connection was successful. Command_data is NULL.
* In this case the callback will be invoked a second time once the connection
* is torn down.
- *
+ *
* ISCSI_STATUS_ERROR : Either failed to establish the connection, or an already established connection
* has failed with an error.
*
- * The callback will NOT be invoked if the session is explicitely torn down through a call to
+ * The callback will NOT be invoked if the session is explicitly torn down through a call to
* iscsi_disconnect() or iscsi_destroy_context().
*/
int iscsi_connect_async(struct iscsi_context *iscsi, const char *target, iscsi_command_cb cb, void *private_data);
*
* status :
* ISCSI_STATUS_GOOD the scsi command completed successfullt on the target.
- * If this scsi command returns DATA-IN, that data is stored in an scsi_task structure
+ * If this scsi command returns DATA-IN, that data is stored in an scsi_task structure
* returned in the command_data parameter. This buffer will be automatically freed once the callback
* returns.
*
int iscsi_modesense6_async(struct iscsi_context *iscsi, int lun, iscsi_command_cb cb, int dbd, int pc, int page_code, int sub_page_code, unsigned char alloc_len, void *private_data);
-
+#endif /* CCAN_ISCSI_H */