hw: include hw header files with full paths

Done with this script:

cd hw
for i in `find . -name '*.h' | sed 's/^..//'`; do
  echo '\,^#.*include.*["<]'$i'[">], s,'$i',hw/&,'
done | sed -i -f - `find . -type f`

This is so that paths remain valid as files are moved.

Instead, files in hw/dataplane are referenced with the relative path.
We know they are not going to move to include/, and they are the only
include files that are in subdirectories _and_ move.

Signed-off-by: Paolo Bonzini <pbonzini@redhat.com>
This commit is contained in:
Paolo Bonzini 2013-02-04 15:40:22 +01:00
parent 7948b4b009
commit 83c9f4ca79
487 changed files with 1604 additions and 1604 deletions

View file

@ -13,7 +13,7 @@
*/
#include <sys/epoll.h>
#include "hw/dataplane/event-poll.h"
#include "event-poll.h"
/* Add an event notifier and its callback for polling */
void event_poll_add(EventPoll *poll, EventHandler *handler,

View file

@ -12,7 +12,7 @@
*
*/
#include "hw/dataplane/ioq.h"
#include "ioq.h"
void ioq_init(IOQueue *ioq, int fd, unsigned int max_reqs)
{

View file

@ -22,7 +22,7 @@
#include "migration/migration.h"
#include "block/block.h"
#include "hw/virtio-blk.h"
#include "hw/dataplane/virtio-blk.h"
#include "virtio-blk.h"
enum {
SEG_MAX = 126, /* maximum number of I/O segments */

View file

@ -15,7 +15,7 @@
*/
#include "trace.h"
#include "hw/dataplane/vring.h"
#include "vring.h"
#include "qemu/error-report.h"
/* Map the guest's vring to host memory */

View file

@ -19,7 +19,7 @@
#include <linux/virtio_ring.h>
#include "qemu-common.h"
#include "hw/dataplane/hostmem.h"
#include "hostmem.h"
#include "hw/virtio.h"
typedef struct {