summaryrefslogtreecommitdiff
path: root/usr/session_mgmt.h
diff options
context:
space:
mode:
Diffstat (limited to 'usr/session_mgmt.h')
-rw-r--r--usr/session_mgmt.h19
1 files changed, 19 insertions, 0 deletions
diff --git a/usr/session_mgmt.h b/usr/session_mgmt.h
new file mode 100644
index 0000000..a101175
--- /dev/null
+++ b/usr/session_mgmt.h
@@ -0,0 +1,19 @@
+#ifndef _SESSION_MGMT_H_
+#define _SESSION_MGMT_H_
+
+struct node_rec;
+struct list_head;
+struct session_info;
+
+extern int iscsi_login_portal(void *data, struct list_head *list,
+ struct node_rec *rec);
+extern int iscsi_login_portals(void *data, int *nr_found,
+ struct list_head *rec_list,
+ int (* login_fn)(void *, struct list_head *,
+ struct node_rec *));
+extern int iscsi_logout_portal(struct session_info *info,
+ struct list_head *list);
+extern int iscsi_logout_portals(void *data, int *nr_found,
+ int (*logout_fn)(void *, struct list_head *,
+ struct session_info *));
+#endif