• M
    qdict: Extract non-QDicts in qdict_array_split() · bae3f92a
    Max Reitz 提交于
    Currently, qdict_array_split() only splits off entries with a key prefix
    of "%u.", packing them into a new QDict. This patch makes it support
    entries with the plain key "%u" as well, directly putting them into the
    new QList without creating a QDict.
    
    If there is both an entry with a key of "%u" and other entries with keys
    prefixed "%u." (for the same index), the function simply terminates.
    
    To do this, this patch also adds a static function which tests whether a
    given QDict contains any keys with the given prefix. This is used to test
    whether entries with a key prefixed "%u." do exist in the source QDict
    without modifying it.
    Signed-off-by: NMax Reitz <mreitz@redhat.com>
    Reviewed-by: NEric Blake <eblake@redhat.com>
    Signed-off-by: NKevin Wolf <kwolf@redhat.com>
    bae3f92a
qdict.c 16.9 KB