ia64/xen-unstable

changeset 17002:9cac8f659a24

ioemu: Fix build after LIST->QEMU_LIST changes.
Signed-off-by: Keir Fraser <keir.fraser@citrix.com>
author Keir Fraser <keir.fraser@citrix.com>
date Thu Feb 07 13:19:19 2008 +0000 (2008-02-07)
parents 2adf154d17c2
children eef22fa42f44
files tools/ioemu/monitor.c tools/ioemu/vl.c
line diff
     1.1 --- a/tools/ioemu/monitor.c	Thu Feb 07 10:47:20 2008 +0000
     1.2 +++ b/tools/ioemu/monitor.c	Thu Feb 07 13:19:19 2008 +0000
     1.3 @@ -1167,7 +1167,7 @@ static void do_info_profile(void)
     1.4  #endif
     1.5  
     1.6  /* Capture support */
     1.7 -static LIST_HEAD (capture_list_head, CaptureState) capture_head;
     1.8 +static QEMU_LIST_HEAD (capture_list_head, CaptureState) capture_head;
     1.9  
    1.10  static void do_info_capture (void)
    1.11  {
    1.12 @@ -1188,7 +1188,7 @@ static void do_stop_capture (int n)
    1.13      for (s = capture_head.lh_first, i = 0; s; s = s->entries.le_next, ++i) {
    1.14          if (i == n) {
    1.15              s->ops.destroy (s->opaque);
    1.16 -            LIST_REMOVE (s, entries);
    1.17 +            QEMU_LIST_REMOVE (s, entries);
    1.18              qemu_free (s);
    1.19              return;
    1.20          }
    1.21 @@ -1220,7 +1220,7 @@ static void do_wav_capture (const char *
    1.22          term_printf ("Faied to add wave capture\n");
    1.23          qemu_free (s);
    1.24      }
    1.25 -    LIST_INSERT_HEAD (&capture_head, s, entries);
    1.26 +    QEMU_LIST_INSERT_HEAD (&capture_head, s, entries);
    1.27  }
    1.28  #endif
    1.29  
     2.1 --- a/tools/ioemu/vl.c	Thu Feb 07 10:47:20 2008 +0000
     2.2 +++ b/tools/ioemu/vl.c	Thu Feb 07 13:19:19 2008 +0000
     2.3 @@ -6065,10 +6065,10 @@ void gui_update(void *opaque)
     2.4  struct vm_change_state_entry {
     2.5      VMChangeStateHandler *cb;
     2.6      void *opaque;
     2.7 -    LIST_ENTRY (vm_change_state_entry) entries;
     2.8 +    QEMU_LIST_ENTRY (vm_change_state_entry) entries;
     2.9  };
    2.10  
    2.11 -static LIST_HEAD(vm_change_state_head, vm_change_state_entry) vm_change_state_head;
    2.12 +static QEMU_LIST_HEAD(vm_change_state_head, vm_change_state_entry) vm_change_state_head;
    2.13  
    2.14  VMChangeStateEntry *qemu_add_vm_change_state_handler(VMChangeStateHandler *cb,
    2.15                                                       void *opaque)
    2.16 @@ -6081,13 +6081,13 @@ VMChangeStateEntry *qemu_add_vm_change_s
    2.17  
    2.18      e->cb = cb;
    2.19      e->opaque = opaque;
    2.20 -    LIST_INSERT_HEAD(&vm_change_state_head, e, entries);
    2.21 +    QEMU_LIST_INSERT_HEAD(&vm_change_state_head, e, entries);
    2.22      return e;
    2.23  }
    2.24  
    2.25  void qemu_del_vm_change_state_handler(VMChangeStateEntry *e)
    2.26  {
    2.27 -    LIST_REMOVE (e, entries);
    2.28 +    QEMU_LIST_REMOVE (e, entries);
    2.29      qemu_free (e);
    2.30  }
    2.31  
    2.32 @@ -7052,7 +7052,7 @@ int main(int argc, char **argv)
    2.33          sigprocmask(SIG_BLOCK, &set, NULL);
    2.34      }
    2.35  
    2.36 -    LIST_INIT (&vm_change_state_head);
    2.37 +    QEMU_LIST_INIT (&vm_change_state_head);
    2.38  #ifndef _WIN32
    2.39      {
    2.40          struct sigaction act;