[libvirt] [PATCH] docs: reworded and reordered the bindings page, plus minor tweaks
by Justin Clift
Reordered the bindings into alphabetical order, added a link to
the php-libvirt source on Github, plus gave the direct package
names needed for Python usage on RHEL/Fedora, and Ubuntu.
---
At some point the "Windows" statement on this page should be reworded or made
a bit neater too. Not just yet though. :)
docs/bindings.html.in | 62 +++++++++++++++++++++++++++++++++---------------
1 files changed, 42 insertions(+), 20 deletions(-)
diff --git a/docs/bindings.html.in b/docs/bindings.html.in
index 0bc997e..7a90ad6 100644
--- a/docs/bindings.html.in
+++ b/docs/bindings.html.in
@@ -4,42 +4,64 @@
<h1 >Bindings for other languages</h1>
<p>
- Libvirt comes with bindings to support other languages than
- pure <strong>C</strong>. First the headers embeds the necessary
- declarations to allow direct access from <strong>C++</strong>
- code, but also we have bindings for higher level kind of languages:
+ Libvirt supports C and C++ directly, and has bindings available
+ for other languages:
</p>
<ul>
<li>
- <strong>Python</strong>: Libvirt comes with direct support for
- the Python language (just make sure you installed the libvirt-python
- package if not compiling from sources). See below for more
- information about using libvirt with python
+ <strong>C#</strong>: Arnaud Champion develops
+ <a href="csharp.html">C# bindings</a>.
</li>
<li>
- <strong>Perl</strong>: Daniel Berrange provides
- <a href="http://search.cpan.org/dist/Sys-Virt/">bindings for Perl</a>.
+ <strong>Java</strong>: Daniel Veillard develops
+ <a href="java.html">Java bindings</a>.
</li>
<li>
- <strong>OCaml</strong>: Richard Jones supplies
- <a href="http://libvirt.org/ocaml/">bindings for OCaml</a>.
+ <strong>OCaml</strong>: Richard Jones develops
+ <a href="http://libvirt.org/ocaml/">OCaml bindings</a>.
</li>
<li>
- <strong>Ruby</strong>: David Lutterkort provides
- <a href="http://libvirt.org/ruby/">bindings for Ruby</a>.
+ <strong>Perl</strong>: Daniel Berrange develops
+ <a href="http://search.cpan.org/dist/Sys-Virt/">Perl bindings</a>.
</li>
<li>
- <strong>Java</strong>: Daniel Veillard maintains
- <a href="java.html">Java bindings</a>.
+ <p>
+ <strong>PHP</strong>: Radek Hladik develops
+ <a href="http://phplibvirt.cybersales.cz/">PHP bindings</a>.
+ </p>
+ <p>
+ The php-libvirt bindings also have their source online
+ <a href="http://github.com/Kedarius/php-libvirt">here in Github</a>.
+ </p>
+ <p>
+ This allows you to easily see the code, make comments on it,
+ create your own forks, and contribute the changes back.
+ </p>
</li>
<li>
- <strong>C#</strong>: Arnaud Champion maintains
- <a href="csharp.html">C# bindings</a>.
+ <p>
+ <strong>Python</strong>: Libvirt comes with direct support for
+ the Python language.
+ </p>
+ <p>
+ If your libvirt is installed as packages, rather than compiled
+ by you from source code, ensure you have the appropriate
+ package installed.
+ </p>
+ <p>
+ This is named <b>libvirt-python</b> on RHEL/Fedora,
+ <a href="http://packages.ubuntu.com/search?keywords=python-libvirt"><b>python-libvirt</b></a>
+ on Ubuntu, and may be named differently on others.
+ </p>
+ <p>
+ For usage information, see the
+ <a href="python.html">Python API bindings</a> page.
+ </p>
</li>
<li>
- <strong>PHP</strong>: Radek Hladik is developing
- <a href="http://phplibvirt.cybersales.cz/">PHP bindings</a>.
+ <strong>Ruby</strong>: David Lutterkort develops
+ <a href="http://libvirt.org/ruby/">Ruby bindings</a>.
</li>
</ul>
--
1.7.2.3
14 years, 1 month
[libvirt] [PATCH] mingw: Add body for virFork and remove double virDriverLoadModule export
by Matthias Bolte
Commit 9bd3cce0d2d54e6ab893bb8137218b83d9294714 added virFork and
virDriverLoadModule to libvirt_private.syms, but virFork didn't have
a body on Win32 and virDriverLoadModule was already correctly
exported conditional via libvirt_driver_modules.syms.
---
src/libvirt_private.syms | 4 ----
src/util/util.c | 9 +++++++++
2 files changed, 9 insertions(+), 4 deletions(-)
diff --git a/src/libvirt_private.syms b/src/libvirt_private.syms
index 1a71e79..670e9f2 100644
--- a/src/libvirt_private.syms
+++ b/src/libvirt_private.syms
@@ -314,10 +314,6 @@ virDomainConfNWFilterTeardown;
virDomainConfVMNWFilterTeardown;
-# driver.h
-virDriverLoadModule;
-
-
# ebtables.h
ebtablesAddForwardAllowIn;
ebtablesAddForwardPolicyReject;
diff --git a/src/util/util.c b/src/util/util.c
index 586baee..fd4d6d4 100644
--- a/src/util/util.c
+++ b/src/util/util.c
@@ -927,6 +927,15 @@ virExecDaemonize(const char *const*argv ATTRIBUTE_UNUSED,
return -1;
}
+int
+virFork(pid_t *pid)
+{
+ *pid = -1;
+ errno = ENOTSUP;
+
+ return -1;
+}
+
# endif /* WIN32 */
int
--
1.7.0.4
14 years, 1 month
[libvirt] [libvirt-csharp][PATCH] Make examples works on mono compiled in 64 bits, simply the ConnectOpenAuth process, and finalise renaming
by arnaud.champion@devatom.fr
?Hi,
I have finally find the problem with examples on mono compiled in 64 bits. The problem was the "ToInt32" method of an IntPtr which failed on mono 64 bits (have to use ToInt64 instead).
This path solve this problem.
Also, I have put marshaling complexity of the ConnectOpenAuth callback in bindings, this make the callback of ConnectOpenAuth more simple to achieve the authentification. In the example, the callback is treated like this :
private static int AuthCallback(ref ConnectCredential[] creds, IntPtr cbdata)
{
AuthData authData = (AuthData)Marshal.PtrToStructure(cbdata, typeof(AuthData));
foreach (ConnectCredential cred in creds)
{
switch (cred.type)
{
case ConnectCredentialType.VIR_CRED_AUTHNAME:
// Fill the user name
cred.Result = authData.user_name;
break;
case ConnectCredentialType.VIR_CRED_PASSPHRASE:
// Fill the password
cred.Result = authData.password;
break;
default:
return -1;
}
}
return 0;
}
The bindings user has no marshaling to do, and believe me, it's simpler.
Finally, this patch finalize renaming.
Best regards,
Arnaud Champion
14 years, 1 month
[libvirt] Xen: Stream-API or XML-RPC or XenAPI for managedSave, snapshots
by Philipp Hahn
Hello,
for our project I need libvirts "managed save" functionality for Xen-3.4. In
my implementation I tried to use Xens 'suspend' and 'resume', which would
nicely match, but these two functions are not available throu the legacy
streaming API (xend-http-server, xend-unix-server), which libvirt seems to
still use. They are available throu the XML-RPC interface and the XenAPI
interface, which libvirt doesn't seem to use.
Are there any plans to convert libvirt to use one of the newer interfaces?
My other option would be to either implement another subdriver for
xenUnified*, which would implement domainManagedSave(),
domainHasManagedSaveImage() and domainManagedSaveRemove() using XML-RPC (or
XenAPI), or to implement suspend() and resume() in Xend.
I also will need to look at snapshots next: Has someone already investigated
adding snapshot support to Xen(-3.4)?
Sincerely
Philipp Hahn
--
Philipp Hahn Open Source Software Engineer hahn(a)univention.de
Univention GmbH Linux for Your Business fon: +49 421 22 232- 0
Mary-Somerville-Str.1 28359 Bremen fax: +49 421 22 232-99
http://www.univention.de
Besuchen Sie uns auf unseren nächsten Veranstaltungen:
26. - 28.10.: IT & Business 2010 in Stuttgart
27. - 28.10.: MODERNER STAAT 2010 in Berlin
http://www.univention.de/univention/termine/veranstaltungstermin/
14 years, 1 month
[libvirt] dommemstat won't work
by 黄亮
Hi all.
I try "virsh dommemstat <domain>" and it returns as follows
:Failed to get memory statistics for domain vm_unfw
:this function is not supported by the connection driver: virDomainMemoryStats
So what may be the problem?
I'm using CentOS release 5.5. Updated it's libvirt from 0.6.3 to 0.8.4 through "./configure; make; make install" procedure, and ran "autobuild.sh" in the directory of libvirt-0.8.4.
Using "virsh version", it tells xen api version is 3.0.1, and xm version is 3.3.0
Thanks!
2010-10-27
黄亮
14 years, 1 month
[libvirt] [PATCH 0/7]: Rewrite all the auditing hooks
by Daniel P. Berrange
This patch series reverts two previous commits which added auditing
hooks to the daemon/remote.c dispatcher code. This is then replaced
with hooks added directly to the QEMU driver code. This has the
downside that auditing only works for the QEMU driver, but it is
unavoidable because the dispatcher code has insufficient information
to properly generate audit records. It also handles escaping of
strings which contain user supplied arbitrary formatted data.
It finishes up by adding auditing of disk/net resources.
14 years, 1 month
[libvirt] [PATCH] Tell automake to use tar-pax instead of tar-v7 for make dist
by Matthias Bolte
Commit 66a04090673a5e21700d11bdea0084f1ee870c24 updated the
API extention example patch series and added files that
results in filenames longer than 99 chars during make dist.
This is a problem because automake uses tar with the old v7
format during make dist. The v7 format is limited to 99 chars
per filename.
Use the newer and unlimited POSIX format instead.
---
configure.ac | 2 +-
1 files changed, 1 insertions(+), 1 deletions(-)
diff --git a/configure.ac b/configure.ac
index d942d3c..838dac7 100644
--- a/configure.ac
+++ b/configure.ac
@@ -6,7 +6,7 @@ AC_CONFIG_AUX_DIR([build-aux])
AC_CONFIG_HEADERS([config.h])
AC_CONFIG_MACRO_DIR([m4])
dnl Make automake keep quiet about wildcards & other GNUmake-isms
-AM_INIT_AUTOMAKE([-Wno-portability])
+AM_INIT_AUTOMAKE([1.9 -Wno-portability tar-pax])
# Use the silent-rules feature when possible.
m4_ifndef([AM_SILENT_RULES], [m4_define([AM_SILENT_RULES],[])])
--
1.7.0.4
14 years, 1 month
[libvirt] [PATCH] Fix xen API documentation.
by Philipp Hahn
Add missing 'on'.
Change 'dom' to 'domain' as used in xenDaemonDomainBlockPeek()
Signed-off-by: Philipp Hahn <hahn(a)univention.de>
---
src/xen/xend_internal.c | 4 ++--
1 files changed, 2 insertions(+), 2 deletions(-)
14 years, 1 month
[libvirt] Gtk# help
by arnaud.champion@devatom.fr
?Hi,
As you maybe have seen in my csharp sample code, I'm not an expert with Gtk# under mono, it's really different from windows form. Can anyone help me with Gtk# to make the bindings samples better ?
Arnaud
14 years, 1 month