* [Qemu-devel] [PATCH build fix] migration: do not doubly-define LoadStateHandler
@ 2017-06-15 9:49 Paolo Bonzini
2017-06-15 9:54 ` Peter Maydell
0 siblings, 1 reply; 2+ messages in thread
From: Paolo Bonzini @ 2017-06-15 9:49 UTC (permalink / raw)
To: qemu-devel; +Cc: dgilbert, peter.maydell
As the simplest fix to un-confuse patchew, inline the type
in struct VMStateDescription. As there are no users of
LoadStateHandler anymore in e.g. function declarations,
there isn't much advantage in defining it as a type.
Signed-off-by: Paolo Bonzini <pbonzini@redhat.com>
---
include/migration/vmstate.h | 3 +--
1 file changed, 1 insertion(+), 2 deletions(-)
diff --git a/include/migration/vmstate.h b/include/migration/vmstate.h
index f3f3c2a..82d41fa 100644
--- a/include/migration/vmstate.h
+++ b/include/migration/vmstate.h
@@ -29,7 +29,6 @@
#include "migration/qjson.h"
-typedef int LoadStateHandler(QEMUFile *f, void *opaque, int version_id);
typedef struct VMStateInfo VMStateInfo;
typedef struct VMStateDescription VMStateDescription;
typedef struct VMStateField VMStateField;
@@ -176,7 +175,7 @@ struct VMStateDescription {
int minimum_version_id;
int minimum_version_id_old;
MigrationPriority priority;
- LoadStateHandler *load_state_old;
+ int (*load_state_old)(QEMUFile *f, void *opaque, int version_id);
int (*pre_load)(void *opaque);
int (*post_load)(void *opaque, int version_id);
void (*pre_save)(void *opaque);
--
1.8.3.1
^ permalink raw reply related [flat|nested] 2+ messages in thread
* Re: [Qemu-devel] [PATCH build fix] migration: do not doubly-define LoadStateHandler
2017-06-15 9:49 [Qemu-devel] [PATCH build fix] migration: do not doubly-define LoadStateHandler Paolo Bonzini
@ 2017-06-15 9:54 ` Peter Maydell
0 siblings, 0 replies; 2+ messages in thread
From: Peter Maydell @ 2017-06-15 9:54 UTC (permalink / raw)
To: Paolo Bonzini; +Cc: QEMU Developers, Dr. David Alan Gilbert
On 15 June 2017 at 10:49, Paolo Bonzini <pbonzini@redhat.com> wrote:
> As the simplest fix to un-confuse patchew, inline the type
> in struct VMStateDescription. As there are no users of
> LoadStateHandler anymore in e.g. function declarations,
> there isn't much advantage in defining it as a type.
>
> Signed-off-by: Paolo Bonzini <pbonzini@redhat.com>
I'm currently processing Juan's pullrequest which includes
a fix for this (it moves the typedefs into typedefs.h.)
thanks
-- PMM
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2017-06-15 9:55 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2017-06-15 9:49 [Qemu-devel] [PATCH build fix] migration: do not doubly-define LoadStateHandler Paolo Bonzini
2017-06-15 9:54 ` Peter Maydell
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).