]> xenbits.xen.org Git - xenclient/ioemu-pq.git/commitdiff
intel: Use xenstore_read/write instead of xenstore_dom_read/write,
authorJean Guyader <jean.guyader@eu.citrix.com>
Mon, 9 Nov 2009 18:04:34 +0000 (18:04 +0000)
committerJean Guyader <jean.guyader@eu.citrix.com>
Mon, 9 Nov 2009 18:04:34 +0000 (18:04 +0000)
       becase the watch gives use the full path.

master/intel

index 53f8e6c3ccff95c3dae86a0e3178eac0bca46359..864b69d27f80219f1af19c1560f0c4517a8b206d 100644 (file)
@@ -200,7 +200,7 @@ index 90bd544..e4e27a9 100644
      s->graphic_mode = -1;
      vga_update_display(s);
 diff --git a/intel.c b/intel.c
-index 62701cc..d603e89 100644
+index 62701cc..1f87945 100644
 --- a/intel.c
 +++ b/intel.c
 @@ -11,6 +11,7 @@
@@ -211,7 +211,7 @@ index 62701cc..d603e89 100644
  #include "console.h"
  #include "sysemu.h"
  
-@@ -405,24 +406,16 @@ static void intel_focus(int focus)
+@@ -405,28 +406,20 @@ static void intel_focus(int focus)
              focus, IntelX, IntelY, IntelPitch);
  }
  
@@ -235,13 +235,28 @@ index 62701cc..d603e89 100644
      int enter = (int)opaque;
  
 -    state = xenstore_dom_read(domid, path, NULL);
-+    if (!(tmp = xenstore_dom_read(domid, path, NULL)))
++    if (!(tmp = xenstore_read(path)))
 +        return;
 +    state = strtol(tmp, NULL, 10);
 +    free(tmp);
      if (state == 1)
      {
          intel_focus(enter);
+-        xenstore_dom_write(domid, path, "2");
++        xenstore_write(path, "2");
+     }
+ }
+@@ -509,7 +502,7 @@ void intel_display_init(DisplayState *ds)
+         dpy_resize(ds);
+     }
+-    xenstore_dom_watch(domid, "switcher/enter", intel_enter_leave, (void*)0);
+-    xenstore_dom_watch(domid, "switcher/leave", intel_enter_leave, (void*)1);
++    xenstore_dom_watch(domid, "switcher/enter", intel_enter_leave, (void*)1);
++    xenstore_dom_watch(domid, "switcher/leave", intel_enter_leave, (void*)0);
+     lds = ds;
+ }
 diff --git a/vl.c b/vl.c
 index 6350384..cf7ad19 100644
 --- a/vl.c