]> git.ipfire.org Git - thirdparty/libvirt.git/commit
Mask out flags used internally for virSecretGetValue
authorMiloslav Trmač <mitr@redhat.com>
Fri, 14 Aug 2009 19:42:19 +0000 (21:42 +0200)
committerDaniel P. Berrange <berrange@redhat.com>
Thu, 10 Sep 2009 14:54:54 +0000 (15:54 +0100)
commitecc5c8298553248ebb0dfebe59f327ddb6fb0527
treec16296899bc8aed874d713e47cb5d7533fe37a4b
parentfcd4e2694380fc1829109aaea7aa3808918a933c
Mask out flags used internally for virSecretGetValue

Add a VIR_SECRET_GET_VALUE_INTERNAL_CALL flag value, replacing the
originally separate libvirt_internal_call parameter.  The flag is used
to differentiate external virSecretGetValue() calls from internal calls
by libvirt drivers that need to use the secret even if it is private.

* src/libvirt_internal.h Remove VIR_DOMAIN_XML_FLAGS_MASK
* src/driver.h Add VIR_SECRET_GET_VALUE_FLAGS_MASK constant and
  VIR_SECRET_GET_VALUE_INTERNAL_CALL. Re-add the
  VIR_DOMAIN_XML_FLAGS_MASK constant
* src/libvirt.c (virSecretGetValue): Don't allow the user to specify
  internal flags.
src/driver.h
src/libvirt.c
src/libvirt_internal.h