<feed xmlns='http://www.w3.org/2005/Atom'>
<title>bwlp/qemu.git/qobject, branch master</title>
<subtitle>Experimental fork of QEMU with video encoding patches</subtitle>
<id>https://git.openslx.org/bwlp/qemu.git/atom/qobject?h=master</id>
<link rel='self' href='https://git.openslx.org/bwlp/qemu.git/atom/qobject?h=master'/>
<link rel='alternate' type='text/html' href='https://git.openslx.org/bwlp/qemu.git/'/>
<updated>2022-04-06T08:50:38+00:00</updated>
<entry>
<title>include/qapi: add g_autoptr support for qobject types</title>
<updated>2022-04-06T08:50:38+00:00</updated>
<author>
<name>Marc-André Lureau</name>
</author>
<published>2022-03-23T15:57:20+00:00</published>
<link rel='alternate' type='text/html' href='https://git.openslx.org/bwlp/qemu.git/commit/?id=d709bbf3b17f43c91e82c3807a39f2c349d27934'/>
<id>urn:sha1:d709bbf3b17f43c91e82c3807a39f2c349d27934</id>
<content type='text'>
Need wrappers for qobject_unref() calls, which is a macro.

Signed-off-by: Marc-André Lureau &lt;marcandre.lureau@redhat.com&gt;
Reviewed-by: Markus Armbruster &lt;armbru@redhat.com&gt;
Reviewed-by: Richard Henderson &lt;richard.henderson@linaro.org&gt;
Message-Id: &lt;20220323155743.1585078-10-marcandre.lureau@redhat.com&gt;
Signed-off-by: Paolo Bonzini &lt;pbonzini@redhat.com&gt;
</content>
</entry>
<entry>
<title>Replace GCC_FMT_ATTR with G_GNUC_PRINTF</title>
<updated>2022-03-22T10:40:51+00:00</updated>
<author>
<name>Marc-André Lureau</name>
</author>
<published>2022-02-20T16:39:25+00:00</published>
<link rel='alternate' type='text/html' href='https://git.openslx.org/bwlp/qemu.git/commit/?id=9edc6313da34699ebd2bae4573ea22339b26450a'/>
<id>urn:sha1:9edc6313da34699ebd2bae4573ea22339b26450a</id>
<content type='text'>
One less qemu-specific macro. It also helps to make some headers/units
only depend on glib, and thus moved in standalone projects eventually.

Signed-off-by: Marc-André Lureau &lt;marcandre.lureau@redhat.com&gt;
Reviewed-by: Richard W.M. Jones &lt;rjones@redhat.com&gt;
</content>
</entry>
<entry>
<title>block-qdict: Fix -Werror=maybe-uninitialized build failure</title>
<updated>2022-03-21T14:44:44+00:00</updated>
<author>
<name>Murilo Opsfelder Araujo</name>
</author>
<published>2022-03-11T22:16:34+00:00</published>
<link rel='alternate' type='text/html' href='https://git.openslx.org/bwlp/qemu.git/commit/?id=79854b95446396c8e7f397800c5d86c3d9a7540d'/>
<id>urn:sha1:79854b95446396c8e7f397800c5d86c3d9a7540d</id>
<content type='text'>
Building QEMU on Fedora 37 (Rawhide Prerelease) ppc64le failed with the
following error:

    $ ../configure --prefix=/usr/local/qemu-disabletcg --target-list=ppc-softmmu,ppc64-softmmu --disable-tcg --disable-linux-user
    ...
    $ make -j$(nproc)
    ...
    In file included from /root/qemu/include/qapi/qmp/qdict.h:16,
                     from /root/qemu/include/block/qdict.h:13,
                     from ../qobject/block-qdict.c:11:
    /root/qemu/include/qapi/qmp/qobject.h: In function ‘qdict_array_split’:
    /root/qemu/include/qapi/qmp/qobject.h:49:17: error: ‘subqdict’ may be used uninitialized [-Werror=maybe-uninitialized]
       49 |     typeof(obj) _obj = (obj);                                   \
          |                 ^~~~
    ../qobject/block-qdict.c:227:16: note: ‘subqdict’ declared here
      227 |         QDict *subqdict;
          |                ^~~~~~~~
    cc1: all warnings being treated as errors

Fix build failure by expanding the ternary operation.
Tested with `make check-unit` (the check-block-qdict test passed).

Signed-off-by: Murilo Opsfelder Araujo &lt;muriloo@linux.ibm.com&gt;
Cc: Kevin Wolf &lt;kwolf@redhat.com&gt;
Cc: Hanna Reitz &lt;hreitz@redhat.com&gt;
Cc: Markus Armbruster &lt;armbru@redhat.com&gt;
Message-Id: &lt;20220311221634.58288-1-muriloo@linux.ibm.com&gt;
Reviewed-by: Markus Armbruster &lt;armbru@redhat.com&gt;
Signed-off-by: Markus Armbruster &lt;armbru@redhat.com&gt;
Tested-by: Philippe Mathieu-Daudé &lt;f4bug@amsat.org&gt;
</content>
</entry>
<entry>
<title>qobject: braces {} are necessary for all arms of this statement</title>
<updated>2021-02-04T12:20:29+00:00</updated>
<author>
<name>Zhang Han</name>
</author>
<published>2020-12-28T07:11:29+00:00</published>
<link rel='alternate' type='text/html' href='https://git.openslx.org/bwlp/qemu.git/commit/?id=1841f0112c4d8a0a561462eed25fc4357fe40afc'/>
<id>urn:sha1:1841f0112c4d8a0a561462eed25fc4357fe40afc</id>
<content type='text'>
Add braces {} for arms of if/for statement

Signed-off-by: Zhang Han &lt;zhanghan64@huawei.com&gt;
Message-Id: &lt;20201228071129.24563-5-zhanghan64@huawei.com&gt;
Reviewed-by: Philippe Mathieu-Daudé &lt;philmd@redhat.com&gt;
Reviewed-by: Markus Armbruster &lt;armbru@redhat.com&gt;
Signed-off-by: Markus Armbruster &lt;armbru@redhat.com&gt;
</content>
</entry>
<entry>
<title>qobject: spaces required around that operators</title>
<updated>2021-02-04T12:20:29+00:00</updated>
<author>
<name>Zhang Han</name>
</author>
<published>2020-12-28T07:11:28+00:00</published>
<link rel='alternate' type='text/html' href='https://git.openslx.org/bwlp/qemu.git/commit/?id=f3d71c6e8d1ce6445c38e2247938903c1f661154'/>
<id>urn:sha1:f3d71c6e8d1ce6445c38e2247938903c1f661154</id>
<content type='text'>
Add spaces around operators.

Signed-off-by: Zhang Han &lt;zhanghan64@huawei.com&gt;
Message-Id: &lt;20201228071129.24563-4-zhanghan64@huawei.com&gt;
Reviewed-by: Markus Armbruster &lt;armbru@redhat.com&gt;
Signed-off-by: Markus Armbruster &lt;armbru@redhat.com&gt;
</content>
</entry>
<entry>
<title>qobject: code indent should never use tabs</title>
<updated>2021-02-04T12:20:29+00:00</updated>
<author>
<name>Zhang Han</name>
</author>
<published>2020-12-28T07:11:27+00:00</published>
<link rel='alternate' type='text/html' href='https://git.openslx.org/bwlp/qemu.git/commit/?id=be08fb1897145e5fc3d11e05c2896b259887d9aa'/>
<id>urn:sha1:be08fb1897145e5fc3d11e05c2896b259887d9aa</id>
<content type='text'>
Transfer tabs to spaces.

Signed-off-by: Zhang Han &lt;zhanghan64@huawei.com&gt;
Message-Id: &lt;20201228071129.24563-3-zhanghan64@huawei.com&gt;
Reviewed-by: Markus Armbruster &lt;armbru@redhat.com&gt;
Signed-off-by: Markus Armbruster &lt;armbru@redhat.com&gt;
</content>
</entry>
<entry>
<title>qobject: open brace '{' following struct go on the same line</title>
<updated>2021-02-04T12:20:28+00:00</updated>
<author>
<name>Zhang Han</name>
</author>
<published>2020-12-28T07:11:26+00:00</published>
<link rel='alternate' type='text/html' href='https://git.openslx.org/bwlp/qemu.git/commit/?id=5086c9973a1303cce4791f3c244256e579191410'/>
<id>urn:sha1:5086c9973a1303cce4791f3c244256e579191410</id>
<content type='text'>
Put open brace '{' on the same line of struct.

Signed-off-by: Zhang Han &lt;zhanghan64@huawei.com&gt;
Message-Id: &lt;20201228071129.24563-2-zhanghan64@huawei.com&gt;
Reviewed-by: Philippe Mathieu-Daudé &lt;philmd@redhat.com&gt;
Reviewed-by: Markus Armbruster &lt;armbru@redhat.com&gt;
Signed-off-by: Markus Armbruster &lt;armbru@redhat.com&gt;
</content>
</entry>
<entry>
<title>qobject: Make QString immutable</title>
<updated>2020-12-19T09:39:41+00:00</updated>
<author>
<name>Markus Armbruster</name>
</author>
<published>2020-12-11T17:11:52+00:00</published>
<link rel='alternate' type='text/html' href='https://git.openslx.org/bwlp/qemu.git/commit/?id=4ac76ba414ecb94f086d73621775d8b38b6f0a43'/>
<id>urn:sha1:4ac76ba414ecb94f086d73621775d8b38b6f0a43</id>
<content type='text'>
The functions to modify a QString's string are all unused now.  Drop
them, and make the string immutable.  Saves 16 bytes per QString on my
system.

Signed-off-by: Markus Armbruster &lt;armbru@redhat.com&gt;
Message-Id: &lt;20201211171152.146877-21-armbru@redhat.com&gt;
</content>
</entry>
<entry>
<title>json: Use GString instead of QString to accumulate strings</title>
<updated>2020-12-19T09:39:23+00:00</updated>
<author>
<name>Markus Armbruster</name>
</author>
<published>2020-12-11T17:11:49+00:00</published>
<link rel='alternate' type='text/html' href='https://git.openslx.org/bwlp/qemu.git/commit/?id=68af4cc1213ec6057ac47765985b6704c6be7fd7'/>
<id>urn:sha1:68af4cc1213ec6057ac47765985b6704c6be7fd7</id>
<content type='text'>
QString supports modifying its string, but it's quite limited: you can
only append.  The remaining callers use it for building an initial
string, never for modifying it later.

Change parse_string() to do build the initial string with GString.
This is another step towards making QString immutable.

Signed-off-by: Markus Armbruster &lt;armbru@redhat.com&gt;
Message-Id: &lt;20201211171152.146877-18-armbru@redhat.com&gt;
</content>
</entry>
<entry>
<title>qobject: Factor JSON writer out of qobject_to_json()</title>
<updated>2020-12-19T09:39:16+00:00</updated>
<author>
<name>Markus Armbruster</name>
</author>
<published>2020-12-11T17:11:47+00:00</published>
<link rel='alternate' type='text/html' href='https://git.openslx.org/bwlp/qemu.git/commit/?id=998da0b1581bfda6d6d0e82b9e42edfa1bf5cfe5'/>
<id>urn:sha1:998da0b1581bfda6d6d0e82b9e42edfa1bf5cfe5</id>
<content type='text'>
We have two JSON writers written in C: qobject/qjson.c provides
qobject_to_json(), and migration/qjson.c provides a more low level
imperative interface.  They don't share code.  The latter tacitly
limits numbers to int64_t, and strings contents to characters that
don't need escaping.

Factor out qobject_to_json()'s JSON writer as qobject/json-writer.c.
Straightforward, except for numbers: since the writer is to be
independent of QObject, it can't use qnum_to_string().  Open-code it
instead.  This is actually an improvement of sorts, because it
liberates qnum_to_string() from JSON's needs: its JSON-related FIXMEs
move to the JSON writer, where they belong.

The next commit will replace migration/qjson.c.

Signed-off-by: Markus Armbruster &lt;armbru@redhat.com&gt;
Message-Id: &lt;20201211171152.146877-16-armbru@redhat.com&gt;
</content>
</entry>
</feed>
