qmp-registry.c (1c97e303d4ea80a2691334b0febe87a50660f99d) | qmp-registry.c (7b1b5d191385ca52e96caae2a05c64f3a63855d9) |
---|---|
1/* 2 * Core Definitions for QAPI/QMP Dispatch 3 * 4 * Copyright IBM, Corp. 2011 5 * 6 * Authors: 7 * Anthony Liguori <aliguori@us.ibm.com> 8 * Michael Roth <mdroth@us.ibm.com> 9 * 10 * This work is licensed under the terms of the GNU LGPL, version 2.1 or later. 11 * See the COPYING.LIB file in the top-level directory. 12 * 13 */ 14 15#include <glib.h> 16#include <string.h> | 1/* 2 * Core Definitions for QAPI/QMP Dispatch 3 * 4 * Copyright IBM, Corp. 2011 5 * 6 * Authors: 7 * Anthony Liguori <aliguori@us.ibm.com> 8 * Michael Roth <mdroth@us.ibm.com> 9 * 10 * This work is licensed under the terms of the GNU LGPL, version 2.1 or later. 11 * See the COPYING.LIB file in the top-level directory. 12 * 13 */ 14 15#include <glib.h> 16#include <string.h> |
17#include "qapi/qmp-core.h" | 17#include "qapi/qmp/dispatch.h" |
18 19static QTAILQ_HEAD(QmpCommandList, QmpCommand) qmp_commands = 20 QTAILQ_HEAD_INITIALIZER(qmp_commands); 21 22void qmp_register_command(const char *name, QmpCommandFunc *fn, 23 QmpCommandOptions options) 24{ 25 QmpCommand *cmd = g_malloc0(sizeof(*cmd)); --- 75 unchanged lines hidden --- | 18 19static QTAILQ_HEAD(QmpCommandList, QmpCommand) qmp_commands = 20 QTAILQ_HEAD_INITIALIZER(qmp_commands); 21 22void qmp_register_command(const char *name, QmpCommandFunc *fn, 23 QmpCommandOptions options) 24{ 25 QmpCommand *cmd = g_malloc0(sizeof(*cmd)); --- 75 unchanged lines hidden --- |