Skip to content

Commit e90d665

Browse files
committed
Move more stuff to include/qemu/ and util/
Change-Id: I3d10ae4d5b050f7da565476e2c0f6be5d3348f5d
1 parent 37dc41a commit e90d665

36 files changed

+33
-33
lines changed

Makefile.common

+3-3
Original file line numberDiff line numberDiff line change
@@ -420,14 +420,11 @@ CORE_MISC_SOURCES = \
420420
cbuffer.c \
421421
charpipe.c \
422422
console.c \
423-
cutils.c \
424423
d3des.c \
425424
input.c \
426425
iohandler.c \
427426
ioport.c \
428-
module.c \
429427
net-android.c \
430-
notify.c \
431428
path.c \
432429
qemu-char.c \
433430
qemu-config.c \
@@ -470,6 +467,9 @@ CORE_MISC_SOURCES = \
470467
android/utils/jpeg-compress.c \
471468
util/acl.c \
472469
util/aes.c \
470+
util/cutils.c \
471+
util/module.c \
472+
util/notify.c \
473473
util/osdep.c \
474474

475475
ifeq ($(HOST_ARCH),x86)

audio/ossaudio.c

+1-1
Original file line numberDiff line numberDiff line change
@@ -31,7 +31,7 @@
3131
#include <sys/soundcard.h>
3232
#endif
3333
#include "qemu-common.h"
34-
#include "host-utils.h"
34+
#include "qemu/host-utils.h"
3535
#include "qemu-char.h"
3636
#include "audio.h"
3737

block.c

+1-1
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,7 @@
2525
#include "qemu-common.h"
2626
#include "monitor.h"
2727
#include "block_int.h"
28-
#include "module.h"
28+
#include "qemu/module.h"
2929
#include "qemu-objects.h"
3030

3131
#ifdef CONFIG_BSD

block/bochs.c

+1-1
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,7 @@
2424
*/
2525
#include "qemu-common.h"
2626
#include "block_int.h"
27-
#include "module.h"
27+
#include "qemu/module.h"
2828

2929
/**************************************************************/
3030

block/cloop.c

+1-1
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,7 @@
2323
*/
2424
#include "qemu-common.h"
2525
#include "block_int.h"
26-
#include "module.h"
26+
#include "qemu/module.h"
2727
#include <zlib.h>
2828

2929
typedef struct BDRVCloopState {

block/cow.c

+1-1
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,7 @@
2323
*/
2424
#include "qemu-common.h"
2525
#include "block_int.h"
26-
#include "module.h"
26+
#include "qemu/module.h"
2727

2828
/**************************************************************/
2929
/* COW block driver using file system holes */

block/dmg.c

+1-1
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,7 @@
2424
#include "qemu-common.h"
2525
#include "block_int.h"
2626
#include "qemu/bswap.h"
27-
#include "module.h"
27+
#include "qemu/module.h"
2828
#include <zlib.h>
2929

3030
typedef struct BDRVDMGState {

block/nbd.c

+1-1
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,7 @@
2828

2929
#include "qemu-common.h"
3030
#include "nbd.h"
31-
#include "module.h"
31+
#include "qemu/module.h"
3232

3333
#include <sys/types.h>
3434
#include <unistd.h>

block/parallels.c

+1-1
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,7 @@
2525
*/
2626
#include "qemu-common.h"
2727
#include "block_int.h"
28-
#include "module.h"
28+
#include "qemu/module.h"
2929

3030
/**************************************************************/
3131

block/qcow.c

+1-1
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,7 @@
2323
*/
2424
#include "qemu-common.h"
2525
#include "block_int.h"
26-
#include "module.h"
26+
#include "qemu/module.h"
2727
#include <zlib.h>
2828
#include "qemu/aes.h"
2929

block/qcow2.c

+1-1
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,7 @@
2323
*/
2424
#include "qemu-common.h"
2525
#include "block_int.h"
26-
#include "module.h"
26+
#include "qemu/module.h"
2727
#include <zlib.h>
2828
#include "qemu/aes.h"
2929
#include "block/qcow2.h"

block/raw-posix.c

+1-1
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,7 @@
2626
#include "qemu-char.h"
2727
#include "qemu-log.h"
2828
#include "block_int.h"
29-
#include "module.h"
29+
#include "qemu/module.h"
3030
#include "block/raw-posix-aio.h"
3131

3232
#ifdef CONFIG_COCOA

block/raw-win32.c

+1-1
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,7 @@
2424
#include "qemu-common.h"
2525
#include "qemu/timer.h"
2626
#include "block_int.h"
27-
#include "module.h"
27+
#include "qemu/module.h"
2828
#include <windows.h>
2929
#include <winioctl.h>
3030

block/raw.c

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11

22
#include "qemu-common.h"
33
#include "block_int.h"
4-
#include "module.h"
4+
#include "qemu/module.h"
55

66
static int raw_open(BlockDriverState *bs, int flags)
77
{

block/vmdk.c

+1-1
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,7 @@
2525

2626
#include "qemu-common.h"
2727
#include "block_int.h"
28-
#include "module.h"
28+
#include "qemu/module.h"
2929

3030
#define VMDK3_MAGIC (('C' << 24) | ('O' << 16) | ('W' << 8) | 'D')
3131
#define VMDK4_MAGIC (('K' << 24) | ('D' << 16) | ('M' << 8) | 'V')

block/vpc.c

+1-1
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,7 @@
2424
*/
2525
#include "qemu-common.h"
2626
#include "block_int.h"
27-
#include "module.h"
27+
#include "qemu/module.h"
2828

2929
/**************************************************************/
3030

block/vvfat.c

+1-1
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,7 @@
2626
#include <dirent.h>
2727
#include "qemu-common.h"
2828
#include "block_int.h"
29-
#include "module.h"
29+
#include "qemu/module.h"
3030

3131
#ifndef S_IWGRP
3232
#define S_IWGRP 0

console.h

+1-1
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33

44
#include "qemu-char.h"
55
#include "qdict.h"
6-
#include "notify.h"
6+
#include "qemu/notify.h"
77

88
/* keyboard/mouse support */
99

hw/apic.c

+1-1
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@
2020
#include "hw.h"
2121
#include "pc.h"
2222
#include "qemu/timer.h"
23-
#include "host-utils.h"
23+
#include "qemu/host-utils.h"
2424

2525
//#define DEBUG_APIC
2626

hw/ioapic.c

+1-1
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,7 @@
2424
#include "hw.h"
2525
#include "pc.h"
2626
#include "qemu/timer.h"
27-
#include "host-utils.h"
27+
#include "qemu/host-utils.h"
2828

2929
//#define DEBUG_IOAPIC
3030

File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.

qemu-common.h

+1-1
Original file line numberDiff line numberDiff line change
@@ -384,7 +384,7 @@ static inline uint64_t muldiv64(uint64_t a, uint32_t b, uint32_t c)
384384
return res.ll;
385385
}
386386

387-
#include "module.h"
387+
#include "qemu/module.h"
388388

389389
typedef enum DisplayType
390390
{

target-arm/helper.c

+1-1
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@
77
#include "gdbstub.h"
88
#include "helper.h"
99
#include "qemu-common.h"
10-
#include "host-utils.h"
10+
#include "qemu/host-utils.h"
1111
#if !defined(CONFIG_USER_ONLY)
1212
//#include "hw/loader.h"
1313
#ifdef CONFIG_TRACE

target-i386/op_helper.c

+1-1
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@
2020
#define CPU_NO_GLOBAL_REGS
2121
#include "exec.h"
2222
#include "exec-all.h"
23-
#include "host-utils.h"
23+
#include "qemu/host-utils.h"
2424

2525
//#define DEBUG_PCALL
2626

target-mips/op_helper.c

+1-1
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@
1919
#include <stdlib.h>
2020
#include "exec.h"
2121

22-
#include "host-utils.h"
22+
#include "qemu/host-utils.h"
2323

2424
#include "helper.h"
2525
/*****************************************************************************/

tcg/tcg.c

+1-1
Original file line numberDiff line numberDiff line change
@@ -46,7 +46,7 @@
4646

4747
#include "qemu-common.h"
4848
#include "qemu/cache-utils.h"
49-
#include "host-utils.h"
49+
#include "qemu/host-utils.h"
5050
#include "qemu/timer.h"
5151

5252
/* Note: the long term plan is to reduce the dependancies on the QEMU

compatfd.c renamed to util/compatfd.c

+1-1
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@
1212
*/
1313

1414
#include "qemu-common.h"
15-
#include "compatfd.h"
15+
#include "qemu/compatfd.h"
1616

1717
#include <sys/syscall.h>
1818
#include <pthread.h>

cutils.c renamed to util/cutils.c

+1-1
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@
2222
* THE SOFTWARE.
2323
*/
2424
#include "qemu-common.h"
25-
#include "host-utils.h"
25+
#include "qemu/host-utils.h"
2626
#include <math.h>
2727

2828
void pstrcpy(char *buf, int buf_size, const char *str)

envlist.c renamed to util/envlist.c

+1-1
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@
55
#include <unistd.h>
66

77
#include "qemu-queue.h"
8-
#include "envlist.h"
8+
#include "qemu/envlist.h"
99

1010
struct envlist_entry {
1111
const char *ev_var; /* actual env value */

host-utils.c renamed to util/host-utils.c

+1-1
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,7 @@
2525

2626
#include <stdlib.h>
2727
#include <stdint.h>
28-
#include "host-utils.h"
28+
#include "qemu/host-utils.h"
2929

3030
//#define DEBUG_MULDIV
3131

module.c renamed to util/module.c

+1-1
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@
1313

1414
#include "qemu-common.h"
1515
#include "qemu-queue.h"
16-
#include "module.h"
16+
#include "qemu/module.h"
1717

1818
typedef struct ModuleEntry
1919
{

notify.c renamed to util/notify.c

+1-1
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@
1212
*/
1313

1414
#include "qemu-common.h"
15-
#include "notify.h"
15+
#include "qemu/notify.h"
1616

1717
void notifier_list_init(NotifierList *list)
1818
{

0 commit comments

Comments
 (0)