qdict: Make qdict_extract_subqdict() accept dst = NULL
commit655b4b67e380891ee3996349213c62088d71395d
authorAlberto Garcia <berto@igalia.com>
Fri, 29 Jun 2018 11:36:59 +0000 (29 14:36 +0300)
committerKevin Wolf <kwolf@redhat.com>
Wed, 15 Aug 2018 10:50:39 +0000 (15 12:50 +0200)
treef7298de932b9bc13ea0109f44688735799f0eeee
parentf66b1f0e2795f6ac0646103a2b3e135985f3a80b
qdict: Make qdict_extract_subqdict() accept dst = NULL

This function extracts all options from a QDict starting with a
certain prefix and puts them in a new QDict.

We'll have a couple of cases where we simply want to discard those
options instead of copying them, and that's what this patch does.

Signed-off-by: Alberto Garcia <berto@igalia.com>
Signed-off-by: Kevin Wolf <kwolf@redhat.com>
qobject/block-qdict.c