1. 30 11月, 2015 13 次提交
    • E
      admin: Introduce virAdmConnectGetLibVersion · a474371f
      Erik Skultety 提交于
      Introduce a new API to get libvirt version. It is worth noting, that
      libvirt-admin and libvirt share the same version number. Unfortunately,
      our existing API isn't generic enough to be used with virAdmConnectPtr
      as well. Also this patch wires up this API to the virt-admin client
      as a generic cmdVersion command.
      a474371f
    • E
      admin: Add support for connection close callbacks · 6dd7e42d
      Erik Skultety 提交于
      As we need a client disconnect handler, we also need a mechanism to register
      such handlers for a client. This patch introduced both the close callbacks and
      also the client vshAdmCatchDisconnect handler to be registered with it. By
      registering the handler we still need to make sure the client can react to
      daemon's events like disconnect or keepalive, so asynchronous I/O event polling
      is necessary to be enabled too.
      6dd7e42d
    • E
      admin: Add support for URI aliases · 96a96b84
      Erik Skultety 提交于
      Now that we introduced URI support in libvirt-admin, we should also support URI
      aliases during connection establishment phase. After applying this patch,
      virAdmConnectOpen will also support VIR_CONNECT_NO_ALIASES flag.
      96a96b84
    • E
      livirt: Move URI alias matching to util · fb90fcc0
      Erik Skultety 提交于
      As we need to provide support for URI aliases in libvirt-admin as well, URI
      alias matching needs to be internally visible. Since
      virConnectOpenResolveURIAlias does have a compatible signature, it could be
      easily reused by libvirt-admin. This patch moves URI alias matching to util,
      renaming it accordingly.
      fb90fcc0
    • E
      admin: Add URI support and introduce virAdmGetDefaultURI · dbecb87f
      Erik Skultety 提交于
      Since virt-admin should be able to connect to various admin servers
      on hosted different daemons, we need to provide URI support to
      libvirt-admin.
      dbecb87f
    • E
      admin: Do not generate remoteAdminConnect{Open,Close} · 0ecf9b3e
      Erik Skultety 提交于
      As we plan to add more and more logic to remote connecting methods,
      these cannot be generated from admin_protocol.x anymore. Instead,
      this patch implements these to methods explicitly.
      0ecf9b3e
    • E
      admin: Move remote admin API version to a separate module · b86cf882
      Erik Skultety 提交于
      By moving the remote version into a separate module, we gain a slightly
      better maintainability in the long run than just by leaving it in one
      place with the existing libvirt-admin library which can start getting
      pretty messy later on.
      b86cf882
    • E
      admin: Introduce virAdmConnectIsAlive · 47a089f0
      Erik Skultety 提交于
      Since most of our APIs rely on an acive functional connection to a daemon and
      we have such a mechanism in libvirt already, there's need to have such a way in
      libvirt-admin as well. By introducing a new public API, this patch provides
      support to check for an active connection.
      47a089f0
    • E
      virt-admin: Introduce first working skeleton · 64095787
      Erik Skultety 提交于
      This patch introduces virt-admin client which is based on virsh client,
      but had to reimplement several methods to meet virt-admin specific needs
      or remove unnecessary virsh specific logic.
      64095787
    • E
      admin: introduce virAdmGetVersion · b32f715d
      Erik Skultety 提交于
      Unfortunately, client side version retrieval API virGetVersion uses
      one-time initialization (due to the fact we might not have initialized the
      library by calling connect prior to this) which is not completely compatible
      with admin initialization. This API is rather simplistic and reimplementing
      it for admin might be the preferred method of reusing it. Note that even though
      the method will be reimplemented, the version number is still the same for both
      the libvirt and libvirt-admin library.
      b32f715d
    • E
      libvirt: Move config getters to util · c4bdff19
      Erik Skultety 提交于
      virConnectGetConfig and virConnectGetConfigPath were static libvirt
      methods, merely because there hasn't been any need for having them
      internally exported yet. Since libvirt-admin also needs to reference
      its config file, 'xGetConfig' should be exported.
      Besides moving, this patch also renames the methods accordingly,
      as they are libvirt config specific.
      c4bdff19
    • E
      admin: Introduce libvirt-admin.conf · 48cd3dfa
      Erik Skultety 提交于
      Since libvirt-admin is a separate library, it should also have a separate
      config file. Available settings are currently the same as for libvirt.conf.
      48cd3dfa
    • E
      libvirt: introduce libvirt/libvirt-common.h.in · a20b6237
      Erik Skultety 提交于
      As it turned out, we need to share some enums and declarations between
      libvirt.h and libvirt-admin.h, but since our policy forbids direct includes of
      libvirt*.h, there has to be some header exempt from this rule. This patch moves
      the relevant part of code from libvirt.h.in to libvirt-common.h.in. Moreover,
      since there is no need to have libvirt.h generated anymore, introduce a new
      header libvirt.h which was previosly ignored from git and make the common
      header ignored and generated instead.
      a20b6237
  2. 27 11月, 2015 9 次提交
  3. 26 11月, 2015 18 次提交