ia64/xen-unstable

changeset 13058:ea12d26877a4

Fix more enum demarshalling.

Signed-off-by: Ewan Mellor <ewan@xensource.com>
author Ewan Mellor <ewan@xensource.com>
date Fri Dec 15 11:33:50 2006 +0000 (2006-12-15)
parents 671cc928183d
children 6cbed96fedac
files tools/libxen/src/xen_console.c tools/libxen/src/xen_vif.c tools/libxen/src/xen_vm.c tools/libxen/src/xen_vtpm.c
line diff
     1.1 --- a/tools/libxen/src/xen_console.c	Fri Dec 15 11:00:04 2006 +0000
     1.2 +++ b/tools/libxen/src/xen_console.c	Fri Dec 15 11:33:50 2006 +0000
     1.3 @@ -158,9 +158,7 @@ xen_console_get_protocol(xen_session *se
     1.4          };
     1.5  
     1.6      abstract_type result_type = xen_console_protocol_abstract_type_;
     1.7 -    char *result_str = NULL;
     1.8      XEN_CALL_("console.get_protocol");
     1.9 -    *result = xen_console_protocol_from_string(session, result_str);
    1.10      return session->ok;
    1.11  }
    1.12  
     2.1 --- a/tools/libxen/src/xen_vif.c	Fri Dec 15 11:00:04 2006 +0000
     2.2 +++ b/tools/libxen/src/xen_vif.c	Fri Dec 15 11:33:50 2006 +0000
     2.3 @@ -197,9 +197,7 @@ xen_vif_get_type(xen_session *session, e
     2.4          };
     2.5  
     2.6      abstract_type result_type = xen_driver_type_abstract_type_;
     2.7 -    char *result_str = NULL;
     2.8      XEN_CALL_("VIF.get_type");
     2.9 -    *result = xen_driver_type_from_string(session, result_str);
    2.10      return session->ok;
    2.11  }
    2.12  
     3.1 --- a/tools/libxen/src/xen_vm.c	Fri Dec 15 11:00:04 2006 +0000
     3.2 +++ b/tools/libxen/src/xen_vm.c	Fri Dec 15 11:33:50 2006 +0000
     3.3 @@ -653,9 +653,7 @@ xen_vm_get_actions_after_shutdown(xen_se
     3.4          };
     3.5  
     3.6      abstract_type result_type = xen_on_normal_exit_abstract_type_;
     3.7 -    char *result_str = NULL;
     3.8      XEN_CALL_("VM.get_actions_after_shutdown");
     3.9 -    *result = xen_on_normal_exit_from_string(session, result_str);
    3.10      return session->ok;
    3.11  }
    3.12  
    3.13 @@ -670,9 +668,7 @@ xen_vm_get_actions_after_reboot(xen_sess
    3.14          };
    3.15  
    3.16      abstract_type result_type = xen_on_normal_exit_abstract_type_;
    3.17 -    char *result_str = NULL;
    3.18      XEN_CALL_("VM.get_actions_after_reboot");
    3.19 -    *result = xen_on_normal_exit_from_string(session, result_str);
    3.20      return session->ok;
    3.21  }
    3.22  
    3.23 @@ -687,9 +683,7 @@ xen_vm_get_actions_after_suspend(xen_ses
    3.24          };
    3.25  
    3.26      abstract_type result_type = xen_on_normal_exit_abstract_type_;
    3.27 -    char *result_str = NULL;
    3.28      XEN_CALL_("VM.get_actions_after_suspend");
    3.29 -    *result = xen_on_normal_exit_from_string(session, result_str);
    3.30      return session->ok;
    3.31  }
    3.32  
    3.33 @@ -704,9 +698,7 @@ xen_vm_get_actions_after_crash(xen_sessi
    3.34          };
    3.35  
    3.36      abstract_type result_type = xen_on_crash_behaviour_abstract_type_;
    3.37 -    char *result_str = NULL;
    3.38      XEN_CALL_("VM.get_actions_after_crash");
    3.39 -    *result = xen_on_crash_behaviour_from_string(session, result_str);
    3.40      return session->ok;
    3.41  }
    3.42  
     4.1 --- a/tools/libxen/src/xen_vtpm.c	Fri Dec 15 11:00:04 2006 +0000
     4.2 +++ b/tools/libxen/src/xen_vtpm.c	Fri Dec 15 11:33:50 2006 +0000
     4.3 @@ -196,9 +196,7 @@ xen_vtpm_get_driver(xen_session *session
     4.4          };
     4.5  
     4.6      abstract_type result_type = xen_driver_type_abstract_type_;
     4.7 -    char *result_str = NULL;
     4.8      XEN_CALL_("VTPM.get_driver");
     4.9 -    *result = xen_driver_type_from_string(session, result_str);
    4.10      return session->ok;
    4.11  }
    4.12