1. 09 9月, 2019 6 次提交
    • D
      docs: remove devhelp API docs · 926b7b6e
      Daniel P. Berrangé 提交于
      We currently generate two completely separate API references for the
      libvirt public API. One at 'docs/html/' and one at 'docs/devhelp/'.
      Both are published on the website, but we only link to content in
      the 'docs/html/' pages.
      
      Both are installed in the libvirt-docs sub-RPM, with a full copy
      of the website including 'docs/html/' in /usr/share/docs/libvirt-docs,
      while the 'docs/devhelp/' content goes to /usr/share/gtk-doc/. The
      latter was broken for years until:
      
        commit ca6f6025
        Author: Andrea Bolognani <abologna@redhat.com>
        Date:   Fri May 10 14:54:52 2019 +0200
      
          docs: Introduce $(devhelphtml_generated)
      
          Our XSLT magic generates one Devhelp-compatible HTML file
          per documentation module, but so far we have only shipped
          and installed documentation for virterror.
      
          Now that we have $(modules), however, we can generate the
          list of files the same way we do for regular documentation
          and make sure we always ship and install everything.
      
      That this bug went unnoticed for so long is a sign of how few
      people are using the devhelp docs. The only commits to the devhelp
      code since it was first introduced have been fixing various build
      problems that hit.
      
      The only obvious difference between the two sets of docs is the CSS
      styling in use. Overall devhelp does not look compelling enough to
      justify having two duplicated sets of API docs. Eliminating it will
      reduce the amount of XSL code we are carrying in the tree which is
      an attractive benefit.
      Reviewed-by: NPavel Hrdina <phrdina@redhat.com>
      Reviewed-by: NAndrea Bolognani <abologna@redhat.com>
      Signed-off-by: NDaniel P. Berrangé <berrange@redhat.com>
      926b7b6e
    • D
      qemu_conf.c: introduce qemuAddRemoveSharedDeviceInternal · 807a6dd3
      Daniel Henrique Barboza 提交于
      After the previous commits, qemuAddSharedDevice() and
      qemuRemoveSharedDevice() are now the same code with a different
      flag to call the internal functions.
      
      This patch aggregates the common code into a new function called
      qemuAddRemoveSharedDeviceInternal() to further reduce
      code repetition. Both qemuAddSharedDevice() and
      qemuRemoveSharedDevice() are kept since they are public
      functions used elsewhere.
      
      No functional change was made.
      Signed-off-by: NDaniel Henrique Barboza <danielhb413@gmail.com>
      Reviewed-by: NPavel Hrdina <phrdina@redhat.com>
      807a6dd3
    • D
      qemu_conf.c: introduce qemuAddRemoveSharedDiskInternal · b80bb2d3
      Daniel Henrique Barboza 提交于
      Following the same idea of avoid code repetition from the
      previous patch, this commit introduces a new function that
      aggregates the functions of qemuAddSharedDisk() and
      qemuRemoveSharedDisk() into a single place, using a flag to
      switch between add/remove operations.
      
      Both qemuAddSharedDisk() and qemuRemoveSharedDisk() are
      public, so keep them around to avoid changing other files
      due to an internal qemu_conf.c refactory.
      
      No functional change was made.
      Signed-off-by: NDaniel Henrique Barboza <danielhb413@gmail.com>
      Reviewed-by: NPavel Hrdina <phrdina@redhat.com>
      b80bb2d3
    • D
      qemu_conf.c: introduce qemuAddRemoveSharedHostdevInternal · b2de989b
      Daniel Henrique Barboza 提交于
      qemuAddSharedHostdev() has a code similar to
      qemuRemoveSharedHostdev(), with exception of one line that
      defines the operation (add or remove).
      
      This patch introduces a new function that aggregates the common
      code, using a flag to switch between the operations, avoiding
      code repetition.
      
      No functional change was made.
      Signed-off-by: NDaniel Henrique Barboza <danielhb413@gmail.com>
      Reviewed-by: NPavel Hrdina <phrdina@redhat.com>
      b2de989b
    • J
      qemu: update threading info about domain object refs · 2029f826
      Jonathon Jongsma 提交于
      Since commit fd9ef3b3, virDomainFindByUUIDRef() no longer exists and
      all virDomainObjListFindBy*() functions now increment the reference
      count.
      Signed-off-by: NJonathon Jongsma <jjongsma@redhat.com>
      Reviewed-by: NDaniel Henrique Barboza <danielhb413@gmail.com>
      Reviewed-by: NPavel Hrdina <phrdina@redhat.com>
      2029f826
    • E
      remote: fix UNIX socket path being incorrectly built for libvirtd · ec78c9a0
      eater 提交于
      As a result of changes in
      
            commit d5f0c1b6
            Author: Daniel P. Berrangé <berrange@redhat.com>
            Date:   Thu Jul 18 12:30:22 2019 +0100
      
              remote: stop trying to print help as giant blocks of text
      
      The socket path built would be libvirt//var/run/libvirt-sock
      instead of /var/run/libvirt/libvirt-sock. Fortunately this only
      affects users who have set the 'unix_sock_dir' config parameter
      in /etc/libvirt/libvirtd.conf, which is pretty rare/unusual.
      Signed-off-by: Neater <=@eater.me>
      
      Exception made for the psuedonym above since patch is considered
      trivial & thus non-copyrightable material.
      Signed-off-by: NDaniel P. Berrangé <berrange@redhat.com>
      ec78c9a0
  2. 07 9月, 2019 3 次提交
  3. 06 9月, 2019 31 次提交