1 /*
2  * Copyright © 2018, 2021 Oracle and/or its affiliates.
3  *
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.
6  *
7  */
8 
9 #ifndef PROXY_MEMORY_LISTENER_H
10 #define PROXY_MEMORY_LISTENER_H
11 
12 #include "exec/memory.h"
13 #include "io/channel.h"
14 
15 typedef struct ProxyMemoryListener {
16     MemoryListener listener;
17 
18     int n_mr_sections;
19     MemoryRegionSection *mr_sections;
20 
21     QIOChannel *ioc;
22 } ProxyMemoryListener;
23 
24 void proxy_memory_listener_configure(ProxyMemoryListener *proxy_listener,
25                                      QIOChannel *ioc);
26 void proxy_memory_listener_deconfigure(ProxyMemoryListener *proxy_listener);
27 
28 #endif
29