summaryrefslogtreecommitdiff
path: root/usr/iscsi_util.h
blob: 110dfa8b6de590cf7f2457e11dc8ffafccede087 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
#ifndef ISCSI_UTIL_H
#define ISCSI_UTIL_H

#include <stdint.h>

struct node_rec;
struct iface_rec;
struct session_info;

extern int oom_adjust(void);
extern void daemon_init(void);
extern int increase_max_files(void);

extern char *str_to_ipport(char *str, int *port, int *tgpt);

extern int iscsi_match_session(void *data, struct session_info *info);
extern int iscsi_match_target(void *data, struct session_info *info);
extern int iscsi_match_session_count(void *data, struct session_info *info);
extern int __iscsi_match_session(struct node_rec *rec, char *targetname,
				 char *address, int port,
				 struct iface_rec *iface,
				 unsigned sid);

#define MATCH_ANY_SID 0

extern char *strstrip(char *s);
extern char *cfg_get_string_param(char *pathname, const char *key);

#endif