qemu-config: add error propagation to qemu_config_parse
[qemu/ar7.git] / include / hw / remote / proxy-memory-listener.h
blobc4f3efb92856b51927d79a2c0b627d6c8d4bd4ac
1 /*
2 * Copyright © 2018, 2021 Oracle and/or its affiliates.
4 * This work is licensed under the terms of the GNU GPL, version 2 or later.
5 * See the COPYING file in the top-level directory.
7 */
9 #ifndef PROXY_MEMORY_LISTENER_H
10 #define PROXY_MEMORY_LISTENER_H
12 #include "exec/memory.h"
13 #include "io/channel.h"
15 typedef struct ProxyMemoryListener {
16 MemoryListener listener;
18 int n_mr_sections;
19 MemoryRegionSection *mr_sections;
21 QIOChannel *ioc;
22 } ProxyMemoryListener;
24 void proxy_memory_listener_configure(ProxyMemoryListener *proxy_listener,
25 QIOChannel *ioc);
26 void proxy_memory_listener_deconfigure(ProxyMemoryListener *proxy_listener);
28 #endif