]> Git Repo - qemu.git/blobdiff - tap-win32.c
target-ppc: use the new rotr/rotri instructions
[qemu.git] / tap-win32.c
index 8384952c6f9cf42ff6ed89dbb9c988ec5771c3c9..bfec14578a51c23286215d3f53c018372c60d67e 100644 (file)
  *  distribution); if not, write to the Free Software Foundation, Inc.,
  *  59 Temple Place, Suite 330, Boston, MA  02111-1307  USA
  */
-#include "vl.h"
+#include "qemu-common.h"
+#include "net.h"
+#include "sysemu.h"
 #include <stdio.h>
+#define WIN32_LEAN_AND_MEAN
 #include <windows.h>
 
 /* NOTE: PCIBus is redefined in winddk.h */
@@ -343,7 +346,7 @@ static int get_device_guid(
             0,
             KEY_READ,
             &connection_key);
-       
+
         if (status == ERROR_SUCCESS) {
             len = sizeof (name_data);
             status = RegQueryValueEx(
@@ -467,7 +470,7 @@ static int tap_win32_write(tap_win32_overlapped_t *overlapped,
 
     result = WriteFile(overlapped->handle, buffer, size,
                        &write_size, &overlapped->write_overlapped);
-   
+
     if (!result) {
         switch (error = GetLastError())
         {
@@ -660,7 +663,7 @@ static void tap_win32_send(void *opaque)
 int tap_win32_init(VLANState *vlan, const char *ifname)
 {
     TAPState *s;
-   
+
     s = qemu_mallocz(sizeof(TAPState));
     if (!s)
         return -1;
@@ -670,7 +673,7 @@ int tap_win32_init(VLANState *vlan, const char *ifname)
     }
 
     s->vc = qemu_new_vlan_client(vlan, tap_receive, NULL, s);
-   
+
     snprintf(s->vc->info_str, sizeof(s->vc->info_str),
              "tap: ifname=%s", ifname);
 
This page took 0.04009 seconds and 4 git commands to generate.