open-isns: Fix warnings reported by gcc-4.5.2
[open-iscsi.git] / usr / iscsid_req.h
blob68f52567600d085a4e655d37e6454e2353c1f708
1 /*
2 * iscsid communication helpers
4 * Copyright (C) 2010 Mike Christie
5 * Copyright (C) 2010 Red Hat, Inc. All rights reserved.
6 * maintained by open-iscsi@googlegroups.com
8 * This program is free software; you can redistribute it and/or modify
9 * it under the terms of the GNU General Public License as published
10 * by the Free Software Foundation; either version 2 of the License, or
11 * (at your option) any later version.
13 * This program is distributed in the hope that it will be useful, but
14 * WITHOUT ANY WARRANTY; without even the implied warranty of
15 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
16 * General Public License for more details.
18 * See the file COPYING included with this distribution for more details.
21 #ifndef ISCSID_REQ_H_
22 #define ISCSID_REQ_H
24 struct iscsiadm_req;
25 struct iscsiadm_rsp;
26 struct node_rec;
28 extern int iscsid_exec_req(struct iscsiadm_req *req, struct iscsiadm_rsp *rsp,
29 int iscsid_start);
30 extern int iscsid_req_wait(int cmd, int fd);
31 extern int iscsid_req_by_rec_async(int cmd, struct node_rec *rec, int *fd);
32 extern int iscsid_req_by_rec(int cmd, struct node_rec *rec);
33 extern int iscsid_req_by_sid_async(int cmd, int sid, int *fd);
34 extern int iscsid_req_by_sid(int cmd, int sid);
36 #endif