From nobody Sun Apr 28 03:12:27 2024 Delivered-To: importer@patchew.org Received-SPF: pass (zoho.com: domain of redhat.com designates 209.132.183.28 as permitted sender) client-ip=209.132.183.28; envelope-from=libvir-list-bounces@redhat.com; helo=mx1.redhat.com; Authentication-Results: mx.zohomail.com; spf=pass (zoho.com: domain of redhat.com designates 209.132.183.28 as permitted sender) smtp.mailfrom=libvir-list-bounces@redhat.com Return-Path: Received: from mx1.redhat.com (mx1.redhat.com [209.132.183.28]) by mx.zohomail.com with SMTPS id 1521806167742587.5714623496075; Fri, 23 Mar 2018 04:56:07 -0700 (PDT) Received: from smtp.corp.redhat.com (int-mx03.intmail.prod.int.phx2.redhat.com [10.5.11.13]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by mx1.redhat.com (Postfix) with ESMTPS id 4BABDC00F7C0; Fri, 23 Mar 2018 11:56:06 +0000 (UTC) Received: from colo-mx.corp.redhat.com (colo-mx02.intmail.prod.int.phx2.redhat.com [10.5.11.21]) by smtp.corp.redhat.com (Postfix) with ESMTPS id DFADF611A5; Fri, 23 Mar 2018 11:56:05 +0000 (UTC) Received: from lists01.pubmisc.prod.ext.phx2.redhat.com (lists01.pubmisc.prod.ext.phx2.redhat.com [10.5.19.33]) by colo-mx.corp.redhat.com (Postfix) with ESMTP id A2AD44CA9B; Fri, 23 Mar 2018 11:56:05 +0000 (UTC) Received: from smtp.corp.redhat.com (int-mx03.intmail.prod.int.rdu2.redhat.com [10.11.54.3]) by lists01.pubmisc.prod.ext.phx2.redhat.com (8.13.8/8.13.8) with ESMTP id w2NBu22N027286 for ; Fri, 23 Mar 2018 07:56:02 -0400 Received: by smtp.corp.redhat.com (Postfix) id 1F3F610B2B3F; Fri, 23 Mar 2018 11:56:02 +0000 (UTC) Received: from antique-work.brq.redhat.com (unknown [10.43.2.152]) by smtp.corp.redhat.com (Postfix) with ESMTP id BAB7110B2B2B for ; Fri, 23 Mar 2018 11:56:01 +0000 (UTC) From: Pavel Hrdina To: libvir-list@redhat.com Date: Fri, 23 Mar 2018 12:55:57 +0100 Message-Id: In-Reply-To: References: In-Reply-To: References: X-Scanned-By: MIMEDefang 2.78 on 10.11.54.3 X-loop: libvir-list@redhat.com Subject: [libvirt] [PATCH v2 1/2] docs: fix a typo in docs.html page X-BeenThere: libvir-list@redhat.com X-Mailman-Version: 2.1.12 Precedence: junk List-Id: Development discussions about the libvirt library & tools List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , MIME-Version: 1.0 Content-Transfer-Encoding: quoted-printable Sender: libvir-list-bounces@redhat.com Errors-To: libvir-list-bounces@redhat.com X-Scanned-By: MIMEDefang 2.79 on 10.5.11.13 X-Greylist: Sender IP whitelisted, not delayed by milter-greylist-4.5.16 (mx1.redhat.com [10.5.110.31]); Fri, 23 Mar 2018 11:56:06 +0000 (UTC) X-ZohoMail: RSF_0 Z_629925259 SPT_0 Content-Type: text/plain; charset="utf-8" Signed-off-by: Pavel Hrdina Reviewed-by: Daniel P. Berrang=C3=A9 --- docs/docs.html.in | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/docs/docs.html.in b/docs/docs.html.in index a8d544f83f..ee521c7460 100644 --- a/docs/docs.html.in +++ b/docs/docs.html.in @@ -59,7 +59,7 @@ c#, go, java, - ocaml. + ocaml, perl, python, php, --=20 2.14.3 -- libvir-list mailing list libvir-list@redhat.com https://www.redhat.com/mailman/listinfo/libvir-list From nobody Sun Apr 28 03:12:27 2024 Delivered-To: importer@patchew.org Received-SPF: pass (zoho.com: domain of redhat.com designates 209.132.183.28 as permitted sender) client-ip=209.132.183.28; envelope-from=libvir-list-bounces@redhat.com; helo=mx1.redhat.com; Authentication-Results: mx.zohomail.com; spf=pass (zoho.com: domain of redhat.com designates 209.132.183.28 as permitted sender) smtp.mailfrom=libvir-list-bounces@redhat.com Return-Path: Received: from mx1.redhat.com (mx1.redhat.com [209.132.183.28]) by mx.zohomail.com with SMTPS id 1521806167837970.7879415264836; Fri, 23 Mar 2018 04:56:07 -0700 (PDT) Received: from smtp.corp.redhat.com (int-mx03.intmail.prod.int.phx2.redhat.com [10.5.11.13]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by mx1.redhat.com (Postfix) with ESMTPS id 2BF2B19CBF3; Fri, 23 Mar 2018 11:56:06 +0000 (UTC) Received: from colo-mx.corp.redhat.com (colo-mx01.intmail.prod.int.phx2.redhat.com [10.5.11.20]) by smtp.corp.redhat.com (Postfix) with ESMTPS id E06EE611A7; Fri, 23 Mar 2018 11:56:05 +0000 (UTC) Received: from lists01.pubmisc.prod.ext.phx2.redhat.com (lists01.pubmisc.prod.ext.phx2.redhat.com [10.5.19.33]) by colo-mx.corp.redhat.com (Postfix) with ESMTP id 9ACC31806104; Fri, 23 Mar 2018 11:56:05 +0000 (UTC) Received: from smtp.corp.redhat.com (int-mx03.intmail.prod.int.rdu2.redhat.com [10.11.54.3]) by lists01.pubmisc.prod.ext.phx2.redhat.com (8.13.8/8.13.8) with ESMTP id w2NBu2ef027292 for ; Fri, 23 Mar 2018 07:56:02 -0400 Received: by smtp.corp.redhat.com (Postfix) id B02E610B2B3F; Fri, 23 Mar 2018 11:56:02 +0000 (UTC) Received: from antique-work.brq.redhat.com (unknown [10.43.2.152]) by smtp.corp.redhat.com (Postfix) with ESMTP id 57E2610B2B2B for ; Fri, 23 Mar 2018 11:56:02 +0000 (UTC) From: Pavel Hrdina To: libvir-list@redhat.com Date: Fri, 23 Mar 2018 12:55:58 +0100 Message-Id: In-Reply-To: References: In-Reply-To: References: X-Scanned-By: MIMEDefang 2.78 on 10.11.54.3 X-loop: libvir-list@redhat.com Subject: [libvirt] [PATCH v2 2/2] docs: introduce libvirt-dbus binding X-BeenThere: libvir-list@redhat.com X-Mailman-Version: 2.1.12 Precedence: junk List-Id: Development discussions about the libvirt library & tools List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , MIME-Version: 1.0 Content-Transfer-Encoding: quoted-printable Sender: libvir-list-bounces@redhat.com Errors-To: libvir-list-bounces@redhat.com X-Scanned-By: MIMEDefang 2.79 on 10.5.11.13 X-Greylist: Sender IP whitelisted, not delayed by milter-greylist-4.5.16 (mx1.redhat.com [10.5.110.29]); Fri, 23 Mar 2018 11:56:06 +0000 (UTC) X-ZohoMail: RSF_0 Z_629925259 SPT_0 Content-Type: text/plain; charset="utf-8" libvirt-dbus is a new binding that wraps libvirt API into D-Bus calls. Signed-off-by: Pavel Hrdina Reviewed-by: Daniel P. Berrang=C3=A9 =20 --- docs/bindings.html.in | 13 ++++++- docs/dbus.html.in | 102 +++++++++++++++++++++++++++++++++++++++++++++= ++++ docs/docs.html.in | 6 ++- docs/downloads.html.in | 15 ++++++++ 4 files changed, 133 insertions(+), 3 deletions(-) create mode 100644 docs/dbus.html.in diff --git a/docs/bindings.html.in b/docs/bindings.html.in index 733c89bc20..46930cd6f6 100644 --- a/docs/bindings.html.in +++ b/docs/bindings.html.in @@ -2,7 +2,7 @@ -

Bindings for other languages

+

Bindings for other languages and integration API modules

=20

Libvirt supports C and C++ directly, and has bindings available @@ -74,6 +74,17 @@ =20 +

+ Integration API modules: +

+ +
    +
  • + D-Bus: Pavel Hrdina develops + D-Bus API. +
  • +
+

For information on using libvirt on Windows please see the Windows support page. diff --git a/docs/dbus.html.in b/docs/dbus.html.in new file mode 100644 index 0000000000..6ff71d2770 --- /dev/null +++ b/docs/dbus.html.in @@ -0,0 +1,102 @@ + + + + +

D-Bus API bindings

+ +
    + +

    Description

    + +

    + libvirt-dbus wraps libvirt API to provide a high-level object-orient= ed + API better suited for dbus-based applications. +

    + +

    GIT source repository

    +

    + The D-Bus bindings source code is maintained in a + git repository available on + libvirt.org: +

    + +
    +git clone https://libvirt.org/git/libvirt-dbus.git
    +
    + +

    + They can also be browsed online: +

    + +
    +https://libvirt.=
    org/git/?p=3Dlibvirt-dbus.git
    +
    + +

    Usage

    + +

    + libvirt-dbus exports libvirt API using D-Bus objects with methods and + properties described by interfaces. Currently only local connection + to libvirt is exported and the list of supported drivers depends + on the type of the bus connection (session or system). +

    + +

    + The name of the libvirt-dbus service is org.libvirt. + libvirt-dbus distributes an interface XML descriptions which can be + usually found at /usr/share/dbus-1/interfaces/. +

    + +

    + By default unprivileged user has access only to the session D-Bus + connection. In order to allow specific user "foo" to access the syst= em + D-Bus connection you need to create a file + /etc/dbus-1/system.d/org.libvirt.conf that contains: +

    + +
    +<?xml version=3D"1.0"?>
    +<!DOCTYPE busconfig PUBLIC "-//freedesktop//DTD D-BUS Bus Configuration=
     1.0//EN"
    + "http://www.freedesktop.org/standards/dbus/1.0/busconfig.dtd">
    +
    +<busconfig>
    +
    +  <policy user=3D"foo">
    +    <allow send_destination=3D"org.libvirt"/>
    +  </policy>
    +
    +</busconfig>
    +
    + +

    + To get a list of supported drivers for the specific bus connection + you can run these commands (not all drivers may be available on + the host): +

    + +
    +gdbus introspect --xml --session --dest org.libvirt --object-path /org/lib=
    virt
    +gdbus introspect --xml --system --dest org.libvirt --object-path /org/libv=
    irt
    +
    + +

    + Every object is introspectable so you can get a list of available + interfaces with methods, signals and properties running this command: +

    + +
    +gdbus introspect --xml --system --dest org.libvirt --object-path /org/libv=
    irt/QEMU
    +
    + +

    + To get a list of domains for specific connection driver you can run + this command: +

    + +
    +gdbus call --system --dest org.libvirt --object-path /org/libvirt/QEMU \
    +    --method org.libvirt.Connect.ListDomains 0
    +
    + + + diff --git a/docs/docs.html.in b/docs/docs.html.in index ee521c7460..40e0e3b82e 100644 --- a/docs/docs.html.in +++ b/docs/docs.html.in @@ -54,7 +54,7 @@
    Virsh Commands
    Command reference for virsh
    =20 -
    Language bindings
    +
    Language bindings and API modules
    Bindings of the libvirt API for c#, go, @@ -63,7 +63,9 @@ perl, python, php, - ruby
    + ruby + and integration API modules for + D-Bus =20 =20
    XML schemas
    diff --git a/docs/downloads.html.in b/docs/downloads.html.in index 7c28e2ba9b..8cca203e54 100644 --- a/docs/downloads.html.in +++ b/docs/downloads.html.in @@ -220,6 +220,21 @@ api ref + + D-Bus + + ftp + https + + + libvirt + + + gitlab + github + + + Console Proxy --=20 2.14.3 -- libvir-list mailing list libvir-list@redhat.com https://www.redhat.com/mailman/listinfo/libvir-list