mirror of
https://gitlab.com/libvirt/libvirt.git
synced 2025-01-18 10:35:20 +00:00
viriscsitest: Move testSessionInfo struct
This struct has nothing to do with testIscsiadmCb() rather than testISCSIGetSession(). Move it closer to the latter. Signed-off-by: Michal Privoznik <mprivozn@redhat.com> Reviewed-by: John Ferlan <jferlan@redhat.com>
This commit is contained in:
parent
b5871d0c75
commit
e97cd364f7
@ -60,12 +60,6 @@ const char *iscsiadmSendtargetsOutput =
|
||||
"10.20.30.40:3260,1 iqn.2008-04.example:example1:iscsi.bar\n"
|
||||
"10.20.30.40:3260,1 iqn.2009-04.example:example1:iscsi.seven\n";
|
||||
|
||||
struct testSessionInfo {
|
||||
const char *device_path;
|
||||
int output_version;
|
||||
const char *expected_session;
|
||||
};
|
||||
|
||||
static void testIscsiadmCb(const char *const*args,
|
||||
const char *const*env ATTRIBUTE_UNUSED,
|
||||
const char *input ATTRIBUTE_UNUSED,
|
||||
@ -118,6 +112,12 @@ static void testIscsiadmCb(const char *const*args,
|
||||
}
|
||||
}
|
||||
|
||||
struct testSessionInfo {
|
||||
const char *device_path;
|
||||
int output_version;
|
||||
const char *expected_session;
|
||||
};
|
||||
|
||||
static int
|
||||
testISCSIGetSession(const void *data)
|
||||
{
|
||||
|
Loading…
x
Reference in New Issue
Block a user