open-isns: Fix warnings reported by gcc-4.5.2
[open-iscsi.git] / usr / discovery.h
blob0575e2a44c34e6ce49cf68a826120e4524a85602
1 /*
2 * iSCSI discovery
4 * Copyright (C) 2004 Dmitry Yusupov, Alex Aizman
5 * maintained by open-iscsi@@googlegroups.com
7 * This program is free software; you can redistribute it and/or modify
8 * it under the terms of the GNU General Public License as published
9 * by the Free Software Foundation; either version 2 of the License, or
10 * (at your option) any later version.
12 * This program is distributed in the hope that it will be useful, but
13 * WITHOUT ANY WARRANTY; without even the implied warranty of
14 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
15 * General Public License for more details.
17 * See the file COPYING included with this distribution for more details.
19 #ifndef DISCOVERY_H
20 #define DISCOVERY_H
23 /* discovery.c */
24 struct discovery_rec;
25 struct list_head;
26 struct iface_rec;
27 struct node_rec;
28 struct boot_context;
30 extern int discovery_isns_query(struct discovery_rec *drec, const char *iname,
31 const char *targetname,
32 struct list_head *rec_list);
33 extern void discovery_isns_free_servername(void);
34 extern int discovery_isns_set_servername(char *address, int port);
35 extern int discovery_isns(void *data, struct iface_rec *iface,
36 struct list_head *rec_list);
37 extern int discovery_fw(void *data, struct iface_rec *iface,
38 struct list_head *rec_list);
39 extern int discovery_sendtargets(void *data, struct iface_rec *iface,
40 struct list_head *rec_list);
41 extern int discovery_offload_sendtargets(int host_no, int do_login,
42 struct discovery_rec *drec);
43 #endif /* DISCOVERY_H */