Skip to contentSkip to conversation

multi-process: define proxy-link object

RFC PATCH Superseded [email protected] 1 participant 1 message Jun 17, 2019

v2 of 15 Superseded Latest is v15 →

lore
Share & tools
lore
#0 lore raw

RFC PATCH v2 7/35 multi-process: define proxy-link object

From: Jagannathan Raman <[email protected]>

Defines proxy-link object which forms the communication link between QEMU & emulation program.
Adds functions to configure members of proxy-link object instance. Adds functions to send and receive messages over the communication channel.
Adds GMainLoop to handle events received on the communication channel.

---
Changes in v2:
- Use default context for main loop instead of a new context;

---
 include/glib-compat.h   |   4 +
 include/io/proxy-link.h | 136 ++++++++++++++++++++
 io/Makefile.objs        |   2 +
 io/proxy-link.c         | 275 ++++++++++++++++++++++++++++++++++++++++
 4 files changed, 417 insertions(+)
 create mode 100644 include/io/proxy-link.h
 create mode 100644 io/proxy-link.c
include/glib-compat.h +4 -0
index 1291628e09..6189b9a41d 100644
@@ -19,12 +19,16 @@
 /* Ask for warnings for anything that was marked deprecated in
  * the defined version, or before. It is a candidate for rewrite.
  */
+#ifndef GLIB_VERSION_MIN_REQUIRED
 #define GLIB_VERSION_MIN_REQUIRED GLIB_VERSION_2_40
+#endif
 
 /* Ask for warnings if code tries to use function that did not
  * exist in the defined version. These risk breaking builds
  */
+#ifndef GLIB_VERSION_MAX_ALLOWED
 #define GLIB_VERSION_MAX_ALLOWED GLIB_VERSION_2_40
+#endif
 
 #pragma GCC diagnostic push
 #pragma GCC diagnostic ignored "-Wdeprecated-declarations"
include/io/proxy-link.h new file +136 -0

136 lines not on this page · raw message

io/Makefile.objs +2 -0
index 9a20fce4ed..ff88b46c90 100644
@@ -10,3 +10,5 @@ io-obj-y += channel-util.o
 io-obj-y += dns-resolver.o
 io-obj-y += net-listener.o
 io-obj-y += task.o
+
+io-obj-$(CONFIG_MPQEMU) += proxy-link.o
io/proxy-link.c new file +275 -0

275 lines not on this page · raw message

Signature · 1 line
2.17.1