qom-hmp-cmds.c (374f63f6810a2f99254cdf32af67035d951301c8) qom-hmp-cmds.c (187c614767cdb3407bc67acf77b9b1a0d985a39d)
1/*
2 * HMP commands related to QOM
3 *
4 * This work is licensed under the terms of the GNU GPL, version 2 or
5 * later. See the COPYING file in the top-level directory.
6 */
7
8#include "qemu/osdep.h"

--- 23 unchanged lines hidden (view full) ---

32 ObjectPropertyInfo *value = list->value;
33
34 monitor_printf(mon, "%s (%s)\n",
35 value->name, value->type);
36 list = list->next;
37 }
38 qapi_free_ObjectPropertyInfoList(start);
39 }
1/*
2 * HMP commands related to QOM
3 *
4 * This work is licensed under the terms of the GNU GPL, version 2 or
5 * later. See the COPYING file in the top-level directory.
6 */
7
8#include "qemu/osdep.h"

--- 23 unchanged lines hidden (view full) ---

32 ObjectPropertyInfo *value = list->value;
33
34 monitor_printf(mon, "%s (%s)\n",
35 value->name, value->type);
36 list = list->next;
37 }
38 qapi_free_ObjectPropertyInfoList(start);
39 }
40 hmp_handle_error(mon, &err);
40 hmp_handle_error(mon, err);
41}
42
43void hmp_qom_set(Monitor *mon, const QDict *qdict)
44{
45 const char *path = qdict_get_str(qdict, "path");
46 const char *property = qdict_get_str(qdict, "property");
47 const char *value = qdict_get_str(qdict, "value");
48 Error *err = NULL;

--- 5 unchanged lines hidden (view full) ---

54 error_set(&err, ERROR_CLASS_DEVICE_NOT_FOUND,
55 "Device '%s' not found", path);
56 } else {
57 if (ambiguous) {
58 monitor_printf(mon, "Warning: Path '%s' is ambiguous\n", path);
59 }
60 object_property_parse(obj, value, property, &err);
61 }
41}
42
43void hmp_qom_set(Monitor *mon, const QDict *qdict)
44{
45 const char *path = qdict_get_str(qdict, "path");
46 const char *property = qdict_get_str(qdict, "property");
47 const char *value = qdict_get_str(qdict, "value");
48 Error *err = NULL;

--- 5 unchanged lines hidden (view full) ---

54 error_set(&err, ERROR_CLASS_DEVICE_NOT_FOUND,
55 "Device '%s' not found", path);
56 } else {
57 if (ambiguous) {
58 monitor_printf(mon, "Warning: Path '%s' is ambiguous\n", path);
59 }
60 object_property_parse(obj, value, property, &err);
61 }
62 hmp_handle_error(mon, &err);
62 hmp_handle_error(mon, err);
63}
64
65typedef struct QOMCompositionState {
66 Monitor *mon;
67 int indent;
68} QOMCompositionState;
69
70static void print_qom_composition(Monitor *mon, Object *obj, int indent);

--- 50 unchanged lines hidden ---
63}
64
65typedef struct QOMCompositionState {
66 Monitor *mon;
67 int indent;
68} QOMCompositionState;
69
70static void print_qom_composition(Monitor *mon, Object *obj, int indent);

--- 50 unchanged lines hidden ---