qom: Make type checker functions accept const pointers
authorEduardo Habkost <ehabkost@redhat.com>
Mon, 31 Aug 2020 21:07:27 +0000 (17:07 -0400)
committerEduardo Habkost <ehabkost@redhat.com>
Tue, 8 Sep 2020 21:29:19 +0000 (17:29 -0400)
commitad09bed1cfc554d919f3a1a71985801b9988a0ad
treef06db6c2537761079ed6e233f7404df9da3f694d
parent7808a28f228b0d91e65e6030aca1e7a0d6f62782
qom: Make type checker functions accept const pointers

The existing type check macros all unconditionally drop const
qualifiers from their arguments.  Keep this behavior in the
macros generated by DECLARE_*CHECKER* by now.

Reviewed-by: Philippe Mathieu-Daudé <f4bug@amsat.org>
Reviewed-by: Daniel P. Berrangé <berrange@redhat.com>
Signed-off-by: Eduardo Habkost <ehabkost@redhat.com>
Message-Id: <20200831210740.126168-6-ehabkost@redhat.com>
Signed-off-by: Eduardo Habkost <ehabkost@redhat.com>
include/qom/object.h