Add usage type/id as a public API property of virSecretlibvirt-0.7.1-10.fc12libvirt-0.7.1-10.fc13libvirt-0.7.1-11.fc12libvirt-0.7.1-11.fc13libvirt-0.7.1-12.fc12libvirt-0.7.1-12.fc13libvirt-0.7.1-13.fc12libvirt-0.7.1-14.fc12libvirt-0.7.1-15.fc12libvirt-0.7.1-8.fc12libvirt-0.7.1-8.fc13libvirt-0.7.1-9.fc12libvirt-0.7.1-9.fc13v0.7.1
commita5bab7085e42d87561c817f91c26def384611f2e
authorDaniel P. Berrange <berrange@redhat.com>
Fri, 11 Sep 2009 13:06:15 +0000 (11 14:06 +0100)
committerDaniel P. Berrange <berrange@redhat.com>
Mon, 14 Sep 2009 16:49:33 +0000 (14 17:49 +0100)
treedec753a7084df584ccf107b655c613a0c111adcd
parent059a43f02ac8e84280d405a413198bc2ab5b5273
Add usage type/id as a public API property of virSecret

* include/libvirt/libvirt.h, include/libvirt/libvirt.h.in: Add
  virSecretGetUsageType, virSecretGetUsageID and virLookupSecretByUsage
* python/generator.py: Mark virSecretGetUsageType, virSecretGetUsageID
  as not throwing exceptions
* qemud/remote.c: Implement dispatch for virLookupSecretByUsage
* qemud/remote_protocol.x: Add usage type & ID as attributes of
  remote_nonnull_secret. Add RPC calls for new public APIs
* qemud/remote_dispatch_args.h, qemud/remote_dispatch_prototypes.h,
  qemud/remote_dispatch_ret.h, qemud/remote_dispatch_table.h,
  qemud/remote_protocol.c, qemud/remote_protocol.h: Re-generate
* src/datatypes.c, src/datatypes.h: Add usageType and usageID as
  properties of virSecretPtr
* src/driver.h: Add virLookupSecretByUsage driver entry point
* src/libvirt.c: Implement virSecretGetUsageType, virSecretGetUsageID
  and virLookupSecretByUsage
* src/libvirt_public.syms: Export virSecretGetUsageType, virSecretGetUsageID
  and virLookupSecretByUsage
* src/remote_internal.c: Implement virLookupSecretByUsage entry
* src/secret_conf.c, src/secret_conf.h: Remove the
  virSecretUsageType enum, now in public API. Make volume
  path mandatory when parsing XML
* src/secret_driver.c: Enforce usage uniqueness when defining secrets.
  Implement virSecretLookupByUsage api method
* src/virsh.c: Include usage for secret-list command
generator.py