# HG changeset patch
# User Ewan Mellor <ewan@xxxxxxxxxxxxx>
# Node ID ea12d26877a4df03eb67f82995ace666fc7260e8
# Parent 671cc928183d5f6676b5fb1a102e6c8019c24090
Fix more enum demarshalling.
Signed-off-by: Ewan Mellor <ewan@xxxxxxxxxxxxx>
---
tools/libxen/src/xen_console.c | 2 --
tools/libxen/src/xen_vif.c | 2 --
tools/libxen/src/xen_vm.c | 8 --------
tools/libxen/src/xen_vtpm.c | 2 --
4 files changed, 14 deletions(-)
diff -r 671cc928183d -r ea12d26877a4 tools/libxen/src/xen_console.c
--- a/tools/libxen/src/xen_console.c Fri Dec 15 11:00:04 2006 +0000
+++ b/tools/libxen/src/xen_console.c Fri Dec 15 11:33:50 2006 +0000
@@ -158,9 +158,7 @@ xen_console_get_protocol(xen_session *se
};
abstract_type result_type = xen_console_protocol_abstract_type_;
- char *result_str = NULL;
XEN_CALL_("console.get_protocol");
- *result = xen_console_protocol_from_string(session, result_str);
return session->ok;
}
diff -r 671cc928183d -r ea12d26877a4 tools/libxen/src/xen_vif.c
--- a/tools/libxen/src/xen_vif.c Fri Dec 15 11:00:04 2006 +0000
+++ b/tools/libxen/src/xen_vif.c Fri Dec 15 11:33:50 2006 +0000
@@ -197,9 +197,7 @@ xen_vif_get_type(xen_session *session, e
};
abstract_type result_type = xen_driver_type_abstract_type_;
- char *result_str = NULL;
XEN_CALL_("VIF.get_type");
- *result = xen_driver_type_from_string(session, result_str);
return session->ok;
}
diff -r 671cc928183d -r ea12d26877a4 tools/libxen/src/xen_vm.c
--- a/tools/libxen/src/xen_vm.c Fri Dec 15 11:00:04 2006 +0000
+++ b/tools/libxen/src/xen_vm.c Fri Dec 15 11:33:50 2006 +0000
@@ -653,9 +653,7 @@ xen_vm_get_actions_after_shutdown(xen_se
};
abstract_type result_type = xen_on_normal_exit_abstract_type_;
- char *result_str = NULL;
XEN_CALL_("VM.get_actions_after_shutdown");
- *result = xen_on_normal_exit_from_string(session, result_str);
return session->ok;
}
@@ -670,9 +668,7 @@ xen_vm_get_actions_after_reboot(xen_sess
};
abstract_type result_type = xen_on_normal_exit_abstract_type_;
- char *result_str = NULL;
XEN_CALL_("VM.get_actions_after_reboot");
- *result = xen_on_normal_exit_from_string(session, result_str);
return session->ok;
}
@@ -687,9 +683,7 @@ xen_vm_get_actions_after_suspend(xen_ses
};
abstract_type result_type = xen_on_normal_exit_abstract_type_;
- char *result_str = NULL;
XEN_CALL_("VM.get_actions_after_suspend");
- *result = xen_on_normal_exit_from_string(session, result_str);
return session->ok;
}
@@ -704,9 +698,7 @@ xen_vm_get_actions_after_crash(xen_sessi
};
abstract_type result_type = xen_on_crash_behaviour_abstract_type_;
- char *result_str = NULL;
XEN_CALL_("VM.get_actions_after_crash");
- *result = xen_on_crash_behaviour_from_string(session, result_str);
return session->ok;
}
diff -r 671cc928183d -r ea12d26877a4 tools/libxen/src/xen_vtpm.c
--- a/tools/libxen/src/xen_vtpm.c Fri Dec 15 11:00:04 2006 +0000
+++ b/tools/libxen/src/xen_vtpm.c Fri Dec 15 11:33:50 2006 +0000
@@ -196,9 +196,7 @@ xen_vtpm_get_driver(xen_session *session
};
abstract_type result_type = xen_driver_type_abstract_type_;
- char *result_str = NULL;
XEN_CALL_("VTPM.get_driver");
- *result = xen_driver_type_from_string(session, result_str);
return session->ok;
}
_______________________________________________
Xen-changelog mailing list
Xen-changelog@xxxxxxxxxxxxxxxxxxx
http://lists.xensource.com/xen-changelog
|