<feed xmlns='http://www.w3.org/2005/Atom'>
<title>delta/libvirt-python.git, branch v1.2.8</title>
<subtitle>libvirt.org: git/libvirt-python.git
</subtitle>
<link rel='alternate' type='text/html' href='http://git.baserock.org/cgit/delta/libvirt-python.git/'/>
<entry>
<title>Implement API bindings for virDomainBlockCopy</title>
<updated>2014-09-01T22:29:26+00:00</updated>
<author>
<name>Pavel Hrdina</name>
<email>phrdina@redhat.com</email>
</author>
<published>2014-09-01T19:58:48+00:00</published>
<link rel='alternate' type='text/html' href='http://git.baserock.org/cgit/delta/libvirt-python.git/commit/?id=0379d2a31a302bc5621d57ee2cd9daa4796972ca'/>
<id>0379d2a31a302bc5621d57ee2cd9daa4796972ca</id>
<content type='text'>
Signed-off-by: Pavel Hrdina &lt;phrdina@redhat.com&gt;
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
Signed-off-by: Pavel Hrdina &lt;phrdina@redhat.com&gt;
</pre>
</div>
</content>
</entry>
<entry>
<title>API: Implement bindings for virDomainListGetStats</title>
<updated>2014-09-01T20:12:46+00:00</updated>
<author>
<name>Pavel Hrdina</name>
<email>phrdina@redhat.com</email>
</author>
<published>2014-09-01T19:57:35+00:00</published>
<link rel='alternate' type='text/html' href='http://git.baserock.org/cgit/delta/libvirt-python.git/commit/?id=5ead8c1b0c74f45514af5ccc1defcaabe0dc657a'/>
<id>5ead8c1b0c74f45514af5ccc1defcaabe0dc657a</id>
<content type='text'>
Implement the function by returning a list of tuples instead the array
of virDomainStatsRecords and store the typed parameters as dict.

Signed-off-by: Peter Krempa &lt;pkrempa@redhat.com&gt;
Signed-off-by: Pavel Hrdina &lt;phrdina@redhat.com&gt;
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
Implement the function by returning a list of tuples instead the array
of virDomainStatsRecords and store the typed parameters as dict.

Signed-off-by: Peter Krempa &lt;pkrempa@redhat.com&gt;
Signed-off-by: Pavel Hrdina &lt;phrdina@redhat.com&gt;
</pre>
</div>
</content>
</entry>
<entry>
<title>API: Implement bindings for virConnectGetAllDomainStats</title>
<updated>2014-09-01T20:12:18+00:00</updated>
<author>
<name>Peter Krempa</name>
<email>pkrempa@redhat.com</email>
</author>
<published>2014-08-28T16:32:00+00:00</published>
<link rel='alternate' type='text/html' href='http://git.baserock.org/cgit/delta/libvirt-python.git/commit/?id=285487954f13365dee2d6b522e14983b1d0f9190'/>
<id>285487954f13365dee2d6b522e14983b1d0f9190</id>
<content type='text'>
Implement the function by returning a list of tuples instead the array
of virDomainStatsRecords and store the typed parameters as dict.

Signed-off-by: Peter Krempa &lt;pkrempa@redhat.com&gt;
Signed-off-by: Pavel Hrdina &lt;phrdina@redhat.com&gt;
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
Implement the function by returning a list of tuples instead the array
of virDomainStatsRecords and store the typed parameters as dict.

Signed-off-by: Peter Krempa &lt;pkrempa@redhat.com&gt;
Signed-off-by: Pavel Hrdina &lt;phrdina@redhat.com&gt;
</pre>
</div>
</content>
</entry>
<entry>
<title>API: Skip 'virDomainStatsRecordListFree'</title>
<updated>2014-09-01T20:11:56+00:00</updated>
<author>
<name>Peter Krempa</name>
<email>pkrempa@redhat.com</email>
</author>
<published>2014-08-28T16:32:00+00:00</published>
<link rel='alternate' type='text/html' href='http://git.baserock.org/cgit/delta/libvirt-python.git/commit/?id=7edf050a26803ccee2dea85dafc2a2a90b7e2e5d'/>
<id>7edf050a26803ccee2dea85dafc2a2a90b7e2e5d</id>
<content type='text'>
The new API function doesn't make sense to be exported in python. The
bindings will return native types instead of the struct array.

Signed-off-by: Peter Krempa &lt;pkrempa@redhat.com&gt;
Signed-off-by: Pavel Hrdina &lt;phrdina@redhat.com&gt;
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
The new API function doesn't make sense to be exported in python. The
bindings will return native types instead of the struct array.

Signed-off-by: Peter Krempa &lt;pkrempa@redhat.com&gt;
Signed-off-by: Pavel Hrdina &lt;phrdina@redhat.com&gt;
</pre>
</div>
</content>
</entry>
<entry>
<title>generator: resolve one level of enum reference</title>
<updated>2014-09-01T20:11:48+00:00</updated>
<author>
<name>Pavel Hrdina</name>
<email>phrdina@redhat.com</email>
</author>
<published>2014-09-01T19:24:42+00:00</published>
<link rel='alternate' type='text/html' href='http://git.baserock.org/cgit/delta/libvirt-python.git/commit/?id=62cfebc2e1ce8a5eb90371546863dc7c45500cf1'/>
<id>62cfebc2e1ce8a5eb90371546863dc7c45500cf1</id>
<content type='text'>
In the libvirt.h we have one enum defined by references from another
enum and it leads in wrong order of definitons in python code. To
prevent this we should resolve that references before we generate the
python code.

For now we have only one level of references so we will count with that
in the generator but we should update it in the future to be more
flexible.

Signed-off-by: Pavel Hrdina &lt;phrdina@redhat.com&gt;
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
In the libvirt.h we have one enum defined by references from another
enum and it leads in wrong order of definitons in python code. To
prevent this we should resolve that references before we generate the
python code.

For now we have only one level of references so we will count with that
in the generator but we should update it in the future to be more
flexible.

Signed-off-by: Pavel Hrdina &lt;phrdina@redhat.com&gt;
</pre>
</div>
</content>
</entry>
<entry>
<title>build: Fix build warning on libvirt-python</title>
<updated>2014-08-19T10:43:28+00:00</updated>
<author>
<name>Mo Yuxiang</name>
<email>Moyuxiang@huawei.com</email>
</author>
<published>2014-08-08T09:55:37+00:00</published>
<link rel='alternate' type='text/html' href='http://git.baserock.org/cgit/delta/libvirt-python.git/commit/?id=2175f4f3da4dbf5f44a00275bd61f807cedf72ea'/>
<id>2175f4f3da4dbf5f44a00275bd61f807cedf72ea</id>
<content type='text'>
On compiling libvirt-python, we get such a warning:

libvirt-qemu-override.c: In function ‘libvirt_qemu_virConnectDomainQemuMonitorEventRegister’:
libvirt-qemu-override.c:304: warning: suggest explicit braces to avoid ambiguous ‘else’

Py_DECREF is a macro using if/else on older Python releases.
The solution is to add braces.
Python 2.7 and newer has the macro wrapped in a do { } while(0) block.

Signed-off-by: Mo Yuxiang &lt;Moyuxiang@huawei.com&gt;
Signed-off-by: Ján Tomko &lt;jtomko@redhat.com&gt;
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
On compiling libvirt-python, we get such a warning:

libvirt-qemu-override.c: In function ‘libvirt_qemu_virConnectDomainQemuMonitorEventRegister’:
libvirt-qemu-override.c:304: warning: suggest explicit braces to avoid ambiguous ‘else’

Py_DECREF is a macro using if/else on older Python releases.
The solution is to add braces.
Python 2.7 and newer has the macro wrapped in a do { } while(0) block.

Signed-off-by: Mo Yuxiang &lt;Moyuxiang@huawei.com&gt;
Signed-off-by: Ján Tomko &lt;jtomko@redhat.com&gt;
</pre>
</div>
</content>
</entry>
<entry>
<title>Fix libvirt_longlongWrap returning a very large value</title>
<updated>2014-08-11T14:28:26+00:00</updated>
<author>
<name>Zhou Yimin</name>
<email>zhouyimin@huawei.com</email>
</author>
<published>2014-08-11T12:59:49+00:00</published>
<link rel='alternate' type='text/html' href='http://git.baserock.org/cgit/delta/libvirt-python.git/commit/?id=86ee51ce97525fd474d3a155d67bf0730597c23a'/>
<id>86ee51ce97525fd474d3a155d67bf0730597c23a</id>
<content type='text'>
If hypervisor is not Xen, the errs in struct _virDomainBlockStats will be -1.
But in KVM when we call domain.blockStats(), errs is 18446744073709551615.

To fix that, this patch has two changes:
1. Replace use of the PyLong_FromUnsignedLongLong with PyLong_FromLongLong
   in function libvirt_longlongWrap
2. If the paramemter of libvirt_longlongWrap is unsigned long long,
   use libvirt_ulonglongWrap instead because of above change.

After this patch, errs is -1 which is consistent with virDomainBlockStats api.

Signed-off-by: Zhou Yimin &lt;zhouyimin@huawei.com&gt;
Signed-off-by: Wang Rui &lt;moon.wangrui@huawei.com&gt;
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
If hypervisor is not Xen, the errs in struct _virDomainBlockStats will be -1.
But in KVM when we call domain.blockStats(), errs is 18446744073709551615.

To fix that, this patch has two changes:
1. Replace use of the PyLong_FromUnsignedLongLong with PyLong_FromLongLong
   in function libvirt_longlongWrap
2. If the paramemter of libvirt_longlongWrap is unsigned long long,
   use libvirt_ulonglongWrap instead because of above change.

After this patch, errs is -1 which is consistent with virDomainBlockStats api.

Signed-off-by: Zhou Yimin &lt;zhouyimin@huawei.com&gt;
Signed-off-by: Wang Rui &lt;moon.wangrui@huawei.com&gt;
</pre>
</div>
</content>
</entry>
<entry>
<title>maint: document use of libvirt's run script</title>
<updated>2014-08-04T17:09:34+00:00</updated>
<author>
<name>Eric Blake</name>
<email>eblake@redhat.com</email>
</author>
<published>2014-08-04T17:09:34+00:00</published>
<link rel='alternate' type='text/html' href='http://git.baserock.org/cgit/delta/libvirt-python.git/commit/?id=cffaeb075ee50c9911b7c15bf06b6e1914f1d10b'/>
<id>cffaeb075ee50c9911b7c15bf06b6e1914f1d10b</id>
<content type='text'>
Ever since libvirt commit 78c09530, it's easier to just use the
run script.

* README: Mention run script.

Signed-off-by: Eric Blake &lt;eblake@redhat.com&gt;
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
Ever since libvirt commit 78c09530, it's easier to just use the
run script.

* README: Mention run script.

Signed-off-by: Eric Blake &lt;eblake@redhat.com&gt;
</pre>
</div>
</content>
</entry>
<entry>
<title>Bump version to 1.2.8 for new dev cycle</title>
<updated>2014-08-04T17:06:13+00:00</updated>
<author>
<name>Eric Blake</name>
<email>eblake@redhat.com</email>
</author>
<published>2014-07-22T16:07:53+00:00</published>
<link rel='alternate' type='text/html' href='http://git.baserock.org/cgit/delta/libvirt-python.git/commit/?id=af803d2f9b474ae84e166daa5987085c9e487e7d'/>
<id>af803d2f9b474ae84e166daa5987085c9e487e7d</id>
<content type='text'>
Signed-off-by: Eric Blake &lt;eblake@redhat.com&gt;
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
Signed-off-by: Eric Blake &lt;eblake@redhat.com&gt;
</pre>
</div>
</content>
</entry>
<entry>
<title>spec: Reorganize to satisfy buggy spectool</title>
<updated>2014-07-29T14:24:48+00:00</updated>
<author>
<name>Jiri Denemark</name>
<email>Jiri.Denemark@gmail.com</email>
</author>
<published>2014-07-29T14:24:48+00:00</published>
<link rel='alternate' type='text/html' href='http://git.baserock.org/cgit/delta/libvirt-python.git/commit/?id=e715a1c86b775882da1c6798298f31eb2eeb2051'/>
<id>e715a1c86b775882da1c6798298f31eb2eeb2051</id>
<content type='text'>
spectool parses a specfile and strips everything but a preamble.
However, if the first section is preceded by %if clause, it keeps it
there which then makes rpmbuild complain about unmatched %if. Let's make
the buggy tool happy by moving sections around so that the first one is
not in any conditional.
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
spectool parses a specfile and strips everything but a preamble.
However, if the first section is preceded by %if clause, it keeps it
there which then makes rpmbuild complain about unmatched %if. Let's make
the buggy tool happy by moving sections around so that the first one is
not in any conditional.
</pre>
</div>
</content>
</entry>
</feed>
