mirror of
https://gitlab.com/libvirt/libvirt.git
synced 2024-08-28 11:31:16 +00:00
conf: Expose virDomainParseMemory for use outside domain_conf
Commit 01b4de2b9f
abstracts virDomainParseMemory()
for use by other functions in domain_conf.c
Extend the same for use, for functions outside of this file.
Signed-off-by: Prerna Saxena <prerna@linux.vnet.ibm.com>
Signed-off-by: Michal Privoznik <mprivozn@redhat.com>
This commit is contained in:
parent
0396394f02
commit
ae5ecd76f1
@ -6421,7 +6421,7 @@ virDomainParseScaledValue(const char *xpath,
|
||||
*
|
||||
* Return 0 on success, -1 on failure after issuing error.
|
||||
*/
|
||||
static int
|
||||
int
|
||||
virDomainParseMemory(const char *xpath,
|
||||
const char *units_xpath,
|
||||
xmlXPathContextPtr ctxt,
|
||||
|
@ -2847,6 +2847,14 @@ int virDomainObjSetMetadata(virDomainObjPtr vm,
|
||||
const char *configDir,
|
||||
unsigned int flags);
|
||||
|
||||
int
|
||||
virDomainParseMemory(const char *xpath,
|
||||
const char *units_xpath,
|
||||
xmlXPathContextPtr ctxt,
|
||||
unsigned long long *mem,
|
||||
bool required,
|
||||
bool capped);
|
||||
|
||||
bool virDomainDefNeedsPlacementAdvice(virDomainDefPtr def)
|
||||
ATTRIBUTE_NONNULL(1);
|
||||
|
||||
|
@ -364,6 +364,7 @@ virDomainObjSetDefTransient;
|
||||
virDomainObjSetMetadata;
|
||||
virDomainObjSetState;
|
||||
virDomainObjTaint;
|
||||
virDomainParseMemory;
|
||||
virDomainPausedReasonTypeFromString;
|
||||
virDomainPausedReasonTypeToString;
|
||||
virDomainPMSuspendedReasonTypeFromString;
|
||||
|
Loading…
Reference in New Issue
Block a user