mirror of https://github.com/xqemu/xqemu.git
raw-posix: rename raw-posix-aio.h, hide unavailable prototypes
Signed-off-by: Paolo Bonzini <pbonzini@redhat.com>
This commit is contained in:
parent
de81a16936
commit
9f8540ecef
|
@ -1,5 +1,5 @@
|
||||||
/*
|
/*
|
||||||
* QEMU Posix block I/O backend AIO support
|
* Declarations for AIO in the raw protocol
|
||||||
*
|
*
|
||||||
* Copyright IBM, Corp. 2008
|
* Copyright IBM, Corp. 2008
|
||||||
*
|
*
|
||||||
|
@ -12,8 +12,8 @@
|
||||||
* Contributions after 2012-01-13 are licensed under the terms of the
|
* Contributions after 2012-01-13 are licensed under the terms of the
|
||||||
* GNU GPL, version 2 or (at your option) any later version.
|
* GNU GPL, version 2 or (at your option) any later version.
|
||||||
*/
|
*/
|
||||||
#ifndef QEMU_RAW_POSIX_AIO_H
|
#ifndef QEMU_RAW_AIO_H
|
||||||
#define QEMU_RAW_POSIX_AIO_H
|
#define QEMU_RAW_AIO_H
|
||||||
|
|
||||||
/* AIO request types */
|
/* AIO request types */
|
||||||
#define QEMU_AIO_READ 0x0001
|
#define QEMU_AIO_READ 0x0001
|
||||||
|
@ -28,9 +28,11 @@
|
||||||
|
|
||||||
|
|
||||||
/* linux-aio.c - Linux native implementation */
|
/* linux-aio.c - Linux native implementation */
|
||||||
|
#ifdef CONFIG_LINUX_AIO
|
||||||
void *laio_init(void);
|
void *laio_init(void);
|
||||||
BlockDriverAIOCB *laio_submit(BlockDriverState *bs, void *aio_ctx, int fd,
|
BlockDriverAIOCB *laio_submit(BlockDriverState *bs, void *aio_ctx, int fd,
|
||||||
int64_t sector_num, QEMUIOVector *qiov, int nb_sectors,
|
int64_t sector_num, QEMUIOVector *qiov, int nb_sectors,
|
||||||
BlockDriverCompletionFunc *cb, void *opaque, int type);
|
BlockDriverCompletionFunc *cb, void *opaque, int type);
|
||||||
|
#endif
|
||||||
|
|
||||||
#endif /* QEMU_RAW_POSIX_AIO_H */
|
#endif /* QEMU_RAW_AIO_H */
|
|
@ -30,7 +30,7 @@
|
||||||
#include "trace.h"
|
#include "trace.h"
|
||||||
#include "thread-pool.h"
|
#include "thread-pool.h"
|
||||||
#include "iov.h"
|
#include "iov.h"
|
||||||
#include "block/raw-posix-aio.h"
|
#include "raw-aio.h"
|
||||||
|
|
||||||
#if defined(__APPLE__) && (__MACH__)
|
#if defined(__APPLE__) && (__MACH__)
|
||||||
#include <paths.h>
|
#include <paths.h>
|
||||||
|
|
|
@ -10,7 +10,7 @@
|
||||||
#include "qemu-common.h"
|
#include "qemu-common.h"
|
||||||
#include "qemu-aio.h"
|
#include "qemu-aio.h"
|
||||||
#include "qemu-queue.h"
|
#include "qemu-queue.h"
|
||||||
#include "block/raw-posix-aio.h"
|
#include "block/raw-aio.h"
|
||||||
#include "event_notifier.h"
|
#include "event_notifier.h"
|
||||||
|
|
||||||
#include <libaio.h>
|
#include <libaio.h>
|
||||||
|
|
Loading…
Reference in New Issue