This will be needed later. No functional changes. Signed-off-by: Elena Ufimtseva <elena.ufimts...@oracle.com> --- include/hw/remote/remote.h | 28 ++++++++++++++++++++++++++++ hw/remote/remote-obj.c | 16 +--------------- MAINTAINERS | 1 + 3 files changed, 30 insertions(+), 15 deletions(-) create mode 100644 include/hw/remote/remote.h
diff --git a/include/hw/remote/remote.h b/include/hw/remote/remote.h new file mode 100644 index 0000000000..a2d23178b9 --- /dev/null +++ b/include/hw/remote/remote.h @@ -0,0 +1,28 @@ +/* + * RemoteObject header. + * + * Copyright © 2018, 2022 Oracle and/or its affiliates. + * + * This work is licensed under the terms of the GNU GPL, version 2 or later. + * See the COPYING file in the top-level directory. + * + */ +#ifndef REMOTE_H +#define REMOTE_H + +struct RemoteObject { + /* private */ + Object parent; + + Notifier machine_done; + + int32_t fd; + char *devid; + + QIOChannel *ioc; + + DeviceState *dev; + DeviceListener listener; +}; + +#endif diff --git a/hw/remote/remote-obj.c b/hw/remote/remote-obj.c index 4f21254219..f0da696662 100644 --- a/hw/remote/remote-obj.c +++ b/hw/remote/remote-obj.c @@ -23,6 +23,7 @@ #include "hw/pci/pci.h" #include "qemu/sockets.h" #include "monitor/monitor.h" +#include "hw/remote/remote.h" #define TYPE_REMOTE_OBJECT "x-remote-object" OBJECT_DECLARE_TYPE(RemoteObject, RemoteObjectClass, REMOTE_OBJECT) @@ -34,21 +35,6 @@ struct RemoteObjectClass { unsigned int max_devs; }; -struct RemoteObject { - /* private */ - Object parent; - - Notifier machine_done; - - int32_t fd; - char *devid; - - QIOChannel *ioc; - - DeviceState *dev; - DeviceListener listener; -}; - static void remote_object_set_fd(Object *obj, const char *str, Error **errp) { RemoteObject *o = REMOTE_OBJECT(obj); diff --git a/MAINTAINERS b/MAINTAINERS index 7543eb4d59..3c60a29760 100644 --- a/MAINTAINERS +++ b/MAINTAINERS @@ -3453,6 +3453,7 @@ F: hw/remote/proxy-memory-listener.c F: include/hw/remote/proxy-memory-listener.h F: hw/remote/iohub.c F: include/hw/remote/iohub.h +F: include/hw/remote/remote.h EBPF: M: Jason Wang <jasow...@redhat.com> -- 2.25.1