]> git.proxmox.com Git - qemu.git/blobdiff - qmp-commands.hx
chardev: add file chardev support to chardev-add (qmp)
[qemu.git] / qmp-commands.hx
index c9ab37c9b932a746f1e47c21363f8af21c3f98fc..4d382f4ffc944c0caee10180b7658009429f156b 100644 (file)
@@ -2672,13 +2672,19 @@ Arguments:
 - "id": the chardev's ID, must be unique (json-string)
 - "backend": chardev backend type + parameters
 
-Example:
+Examples:
 
 -> { "execute" : "chardev-add",
      "arguments" : { "id" : "foo",
                      "backend" : { "type" : "null", "data" : {} } } }
 <- { "return": {} }
 
+-> { "execute" : "chardev-add",
+     "arguments" : { "id" : "bar",
+                     "backend" : { "type" : "file",
+                                   "data" : { "out" : "/tmp/bar.log" } } } }
+<- { "return": {} }
+
 EQMP
 
     {