[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [Qemu-devel] [PATCH 11/22] qapi: add signal support to core QMP serv
From: |
Stefan Hajnoczi |
Subject: |
Re: [Qemu-devel] [PATCH 11/22] qapi: add signal support to core QMP server |
Date: |
Mon, 7 Mar 2011 13:21:17 +0000 |
On Mon, Mar 7, 2011 at 1:22 AM, Anthony Liguori <address@hidden> wrote:
> diff --git a/qmp-core.h b/qmp-core.h
> index e3235ec..5ce02f7 100644
> --- a/qmp-core.h
> +++ b/qmp-core.h
> @@ -21,10 +21,65 @@ typedef struct QmpState QmpState;
> typedef void (QmpCommandFunc)(const QDict *, QObject **, Error **);
> typedef void (QmpStatefulCommandFunc)(QmpState *qmp__sess, const QDict *,
> QObject **, Error **);
>
> +typedef struct QmpSlot
> +{
> + int handle;
> + void *func;
This should be a void (*func)() pointer for architectures where
function pointers don't fit into void * (e.g. ppc and itanium).
> +QmpSignal *qmp_signal_init(void);
> +void qmp_signal_ref(QmpSignal *obj);
> +void qmp_signal_unref(QmpSignal *obj);
> +int qmp_signal_connect(QmpSignal *obj, void *func, void *opaque);
Same function pointer issue here.
Stefan
- Re: [Qemu-devel] [PATCH 14/22] qapi: add query-version QMP command, (continued)
[Qemu-devel] [PATCH 07/22] json: propagate error from parser, Anthony Liguori, 2011/03/06
[Qemu-devel] [PATCH 02/22] qerror: expose a function to format an error, Anthony Liguori, 2011/03/06
[Qemu-devel] [PATCH 16/22] vl: add a new -qmp2 option to expose experimental QMP server, Anthony Liguori, 2011/03/06
[Qemu-devel] [PATCH 11/22] qapi: add signal support to core QMP server, Anthony Liguori, 2011/03/06
- Re: [Qemu-devel] [PATCH 11/22] qapi: add signal support to core QMP server,
Stefan Hajnoczi <=
[Qemu-devel] [PATCH 17/22] qapi: add QMP quit command, Anthony Liguori, 2011/03/06
[Qemu-devel] [PATCH 18/22] qapi: add QMP qmp_capabilities command, Anthony Liguori, 2011/03/06
[Qemu-devel] [PATCH 19/22] qapi: add QMP put-event command, Anthony Liguori, 2011/03/06