object_add: allow completion handler to get canonical path
commita790f4ecc9ac54769f483efc00d8e91f31bca14d
authorIgor Mammedov <imammedo@redhat.com>
Mon, 2 Jun 2014 13:24:59 +0000 (2 15:24 +0200)
committerMichael S. Tsirkin <mst@redhat.com>
Wed, 18 Jun 2014 18:10:21 +0000 (18 21:10 +0300)
tree6b4edbd6ac605d900a45ec84987e1b748a98a468
parent04ed3ea892386162b287b3ed704b75b0fc0c4616
object_add: allow completion handler to get canonical path

Add object to /objects before calling user_creatable_complete()
handler, so that object might be able to call
object_get_canonical_path() in its completion handler.

Signed-off-by: Igor Mammedov <imammedo@redhat.com>
Acked-by: Peter Crosthwaite <peter.crosthwaite@xilinx.com>
Reviewed-by: Michael S. Tsirkin <mst@redhat.com>
Signed-off-by: Michael S. Tsirkin <mst@redhat.com>
qmp.c
vl.c