qapi: test schema used for unit tests

This is how QMP commands/parameters/types would be defined. We use a
subset of that functionality here to implement functions/types for unit
testing.

Signed-off-by: Michael Roth <mdroth@linux.vnet.ibm.com>
Signed-off-by: Luiz Capitulino <lcapitulino@gmail.com>
1 file changed
tree: cee55d290e72da66fc1a7167b5b3b8113ea339fb
  1. audio/
  2. block/
  3. bsd-user/
  4. darwin-user/
  5. default-configs/
  6. docs/
  7. fpu/
  8. fsdev/
  9. gdb-xml/
  10. hw/
  11. libcacard/
  12. linux-headers/
  13. linux-user/
  14. net/
  15. pc-bios/
  16. qapi/
  17. QMP/
  18. roms/
  19. scripts/
  20. slirp/
  21. sysconfigs/
  22. target-alpha/
  23. target-arm/
  24. target-cris/
  25. target-i386/
  26. target-lm32/
  27. target-m68k/
  28. target-microblaze/
  29. target-mips/
  30. target-ppc/
  31. target-s390x/
  32. target-sh4/
  33. target-sparc/
  34. target-unicore32/
  35. tcg/
  36. tests/
  37. ui/
  38. .gitignore
  39. .gitmodules
  40. a.out.h
  41. acl.c
  42. acl.h
  43. aes.c
  44. aes.h
  45. aio.c
  46. alpha-dis.c
  47. alpha.ld
  48. arch_init.c
  49. arch_init.h
  50. arm-dis.c
  51. arm-semi.c
  52. arm.ld
  53. async.c
  54. balloon.c
  55. balloon.h
  56. bitmap.c
  57. bitmap.h
  58. bitops.c
  59. bitops.h
  60. block-migration.c
  61. block-migration.h
  62. block.c
  63. block.h
  64. block_int.h
  65. blockdev.c
  66. blockdev.h
  67. bswap.h
  68. bt-host.c
  69. bt-host.h
  70. bt-vhci.c
  71. buffered_file.c
  72. buffered_file.h
  73. cache-utils.c
  74. cache-utils.h
  75. Changelog
  76. check-qdict.c
  77. check-qfloat.c
  78. check-qint.c
  79. check-qjson.c
  80. check-qlist.c
  81. check-qstring.c
  82. cmd.c
  83. cmd.h
  84. CODING_STYLE
  85. compatfd.c
  86. compatfd.h
  87. compiler.h
  88. config.h
  89. configure
  90. console.c
  91. console.h
  92. COPYING
  93. COPYING.LIB
  94. cpu-all.h
  95. cpu-common.h
  96. cpu-defs.h
  97. cpu-exec.c
  98. cpus.c
  99. cpus.h
  100. cris-dis.c
  101. cursor.c
  102. cursor_hidden.xpm
  103. cursor_left_ptr.xpm
  104. cutils.c
  105. def-helper.h
  106. device_tree.c
  107. device_tree.h
  108. dis-asm.h
  109. disas.c
  110. disas.h
  111. dma-helpers.c
  112. dma.h
  113. dyngen-exec.h
  114. elf.h
  115. envlist.c
  116. envlist.h
  117. error.c
  118. error.h
  119. error_int.h
  120. exec-all.h
  121. exec.c
  122. gdbstub.c
  123. gdbstub.h
  124. gen-icount.h
  125. HACKING
  126. hmp-commands.hx
  127. host-utils.c
  128. host-utils.h
  129. hpet.h
  130. hppa-dis.c
  131. hppa.ld
  132. i386-dis.c
  133. i386.ld
  134. ia64-dis.c
  135. ia64.ld
  136. input.c
  137. iohandler.c
  138. ioport-user.c
  139. ioport.c
  140. ioport.h
  141. iorange.h
  142. iov.c
  143. iov.h
  144. json-lexer.c
  145. json-lexer.h
  146. json-parser.c
  147. json-parser.h
  148. json-streamer.c
  149. json-streamer.h
  150. kvm-all.c
  151. kvm-stub.c
  152. kvm.h
  153. libfdt_env.h
  154. LICENSE
  155. linux-aio.c
  156. m68k-dis.c
  157. m68k-semi.c
  158. m68k.ld
  159. MAINTAINERS
  160. Makefile
  161. Makefile.dis
  162. Makefile.hw
  163. Makefile.objs
  164. Makefile.target
  165. Makefile.user
  166. microblaze-dis.c
  167. migration-exec.c
  168. migration-fd.c
  169. migration-tcp.c
  170. migration-unix.c
  171. migration.c
  172. migration.h
  173. mips-dis.c
  174. mips.ld
  175. module.c
  176. module.h
  177. monitor.c
  178. monitor.h
  179. nbd.c
  180. nbd.h
  181. net.c
  182. net.h
  183. notify.c
  184. notify.h
  185. os-posix.c
  186. os-win32.c
  187. osdep.c
  188. osdep.h
  189. oslib-posix.c
  190. oslib-win32.c
  191. path.c
  192. pci-ids.txt
  193. pflib.c
  194. pflib.h
  195. poison.h
  196. posix-aio-compat.c
  197. ppc-dis.c
  198. ppc.ld
  199. ppc64.ld
  200. qapi-schema-test.json
  201. qbool.c
  202. qbool.h
  203. qdict-test-data.txt
  204. qdict.c
  205. qdict.h
  206. qemu-aio.h
  207. qemu-barrier.h
  208. qemu-char.c
  209. qemu-char.h
  210. qemu-common.h
  211. qemu-config.c
  212. qemu-config.h
  213. qemu-doc.texi
  214. qemu-error.c
  215. qemu-error.h
  216. qemu-img-cmds.hx
  217. qemu-img.c
  218. qemu-img.texi
  219. qemu-io.c
  220. qemu-lock.h
  221. qemu-log.h
  222. qemu-malloc.c
  223. qemu-nbd.c
  224. qemu-nbd.texi
  225. qemu-objects.h
  226. qemu-option.c
  227. qemu-option.h
  228. qemu-options.h
  229. qemu-options.hx
  230. qemu-os-posix.h
  231. qemu-os-win32.h
  232. qemu-progress.c
  233. qemu-queue.h
  234. qemu-sockets.c
  235. qemu-tech.texi
  236. qemu-thread-posix.c
  237. qemu-thread-posix.h
  238. qemu-thread-win32.c
  239. qemu-thread-win32.h
  240. qemu-thread.h
  241. qemu-timer-common.c
  242. qemu-timer.c
  243. qemu-timer.h
  244. qemu-tool.c
  245. qemu-x509.h
  246. qemu.sasl
  247. qemu_socket.h
  248. qerror.c
  249. qerror.h
  250. qfloat.c
  251. qfloat.h
  252. qint.c
  253. qint.h
  254. qjson.c
  255. qjson.h
  256. qlist.c
  257. qlist.h
  258. qmp-commands.hx
  259. qobject.h
  260. qstring.c
  261. qstring.h
  262. range.h
  263. readline.c
  264. readline.h
  265. README
  266. rules.mak
  267. rwhandler.c
  268. rwhandler.h
  269. s390-dis.c
  270. s390.ld
  271. savevm.c
  272. sh4-dis.c
  273. simpletrace.c
  274. simpletrace.h
  275. softmmu-semi.h
  276. softmmu_defs.h
  277. softmmu_exec.h
  278. softmmu_header.h
  279. softmmu_template.h
  280. sparc-dis.c
  281. sparc.ld
  282. sparc64.ld
  283. spice-qemu-char.c
  284. sysemu.h
  285. targphys.h
  286. tcg-runtime.c
  287. thunk.c
  288. thunk.h
  289. TODO
  290. trace-events
  291. translate-all.c
  292. uboot_image.h
  293. usb-bsd.c
  294. usb-linux.c
  295. usb-stub.c
  296. user-exec.c
  297. VERSION
  298. version.rc
  299. vgafont.h
  300. vl.c
  301. x86_64.ld
  302. xen-all.c
  303. xen-mapcache.c
  304. xen-mapcache.h
  305. xen-stub.c