aboutsummaryrefslogtreecommitdiff
path: root/include/qom
diff options
context:
space:
mode:
authorMarkus Armbruster <armbru@redhat.com>2020-05-27 10:47:53 +0200
committerMarkus Armbruster <armbru@redhat.com>2020-06-15 21:34:25 +0200
commite8512dfa4d320e83b7dd4d994a3e404060c5b49b (patch)
tree92f5f1fcb148442c4a5fa9429b8d2a99c27e0630 /include/qom
parent7d3660e79830a069f1848bb4fa1cdf8f666424fb (diff)
downloadqemu-e8512dfa4d320e83b7dd4d994a3e404060c5b49b.zip
qemu-e8512dfa4d320e83b7dd4d994a3e404060c5b49b.tar.gz
qemu-e8512dfa4d320e83b7dd4d994a3e404060c5b49b.tar.bz2
qom: Constify object_get_canonical_path{,_component}()'s parameter
Suggested-by: Eric Blake <eblake@redhat.com> Signed-off-by: Markus Armbruster <armbru@redhat.com> Message-Id: <20200527084754.7531-2-armbru@redhat.com> Reviewed-by: Cédric Le Goater <clg@kaod.org> Reviewed-by: Philippe Mathieu-Daudé <philmd@redhat.com>
Diffstat (limited to 'include/qom')
-rw-r--r--include/qom/object.h4
1 files changed, 2 insertions, 2 deletions
diff --git a/include/qom/object.h b/include/qom/object.h
index c7c97ea..4385816 100644
--- a/include/qom/object.h
+++ b/include/qom/object.h
@@ -1404,7 +1404,7 @@ Object *object_get_internal_root(void);
* path is the path within the composition tree starting from the root.
* %NULL if the object doesn't have a parent (and thus a canonical path).
*/
-char *object_get_canonical_path_component(Object *obj);
+char *object_get_canonical_path_component(const Object *obj);
/**
* object_get_canonical_path:
@@ -1412,7 +1412,7 @@ char *object_get_canonical_path_component(Object *obj);
* Returns: The canonical path for a object. This is the path within the
* composition tree starting from the root.
*/
-char *object_get_canonical_path(Object *obj);
+char *object_get_canonical_path(const Object *obj);
/**
* object_resolve_path: