vpc.c (2c8cfc0b52b5a4d123c26c0b5fdf941be24805be) vpc.c (7dc847ebba953db90853d15f140c20eef74d4fb2)
1/*
2 * Block driver for Connectix / Microsoft Virtual PC images
3 *
4 * Copyright (c) 2005 Alex Beregszaszi
5 * Copyright (c) 2009 Kevin Wolf <kwolf@suse.de>
6 *
7 * Permission is hereby granted, free of charge, to any person obtaining a copy
8 * of this software and associated documentation files (the "Software"), to deal

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

1115 }
1116
1117 /* Now get the QAPI type BlockdevCreateOptions */
1118 qdict_put_str(qdict, "driver", "vpc");
1119 qdict_put_str(qdict, "file", bs->node_name);
1120
1121 qobj = qdict_crumple(qdict, errp);
1122 QDECREF(qdict);
1/*
2 * Block driver for Connectix / Microsoft Virtual PC images
3 *
4 * Copyright (c) 2005 Alex Beregszaszi
5 * Copyright (c) 2009 Kevin Wolf <kwolf@suse.de>
6 *
7 * Permission is hereby granted, free of charge, to any person obtaining a copy
8 * of this software and associated documentation files (the "Software"), to deal

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

1115 }
1116
1117 /* Now get the QAPI type BlockdevCreateOptions */
1118 qdict_put_str(qdict, "driver", "vpc");
1119 qdict_put_str(qdict, "file", bs->node_name);
1120
1121 qobj = qdict_crumple(qdict, errp);
1122 QDECREF(qdict);
1123 qdict = qobject_to_qdict(qobj);
1123 qdict = qobject_to(QDict, qobj);
1124 if (qdict == NULL) {
1125 ret = -EINVAL;
1126 goto fail;
1127 }
1128
1129 v = qobject_input_visitor_new_keyval(QOBJECT(qdict));
1130 visit_type_BlockdevCreateOptions(v, NULL, &create_options, &local_err);
1131 visit_free(v);

--- 114 unchanged lines hidden ---
1124 if (qdict == NULL) {
1125 ret = -EINVAL;
1126 goto fail;
1127 }
1128
1129 v = qobject_input_visitor_new_keyval(QOBJECT(qdict));
1130 visit_type_BlockdevCreateOptions(v, NULL, &create_options, &local_err);
1131 visit_free(v);

--- 114 unchanged lines hidden ---