mirror of
https://gitlab.com/libvirt/libvirt.git
synced 2025-02-01 17:35:17 +00:00
* src/conf.c: add missing entry point virConfGetValue()
Daniel
This commit is contained in:
parent
5334a0fbcb
commit
c0b1a946a6
@ -1,3 +1,7 @@
|
||||
Tue Aug 29 23:48:43 CEST 2006 Daniel Veillard <veillard@redhat.com>
|
||||
|
||||
* src/conf.c: add missing entry point virConfGetValue()
|
||||
|
||||
Tue Aug 29 23:28:31 CEST 2006 Daniel Veillard <veillard@redhat.com>
|
||||
|
||||
* TODO libvirt.spec.in: update
|
||||
|
@ -770,6 +770,15 @@ virConfFree(virConfPtr conf)
|
||||
virConfValuePtr
|
||||
virConfGetValue(virConfPtr conf, const char *setting)
|
||||
{
|
||||
virConfEntryPtr cur;
|
||||
|
||||
cur = conf->entries;
|
||||
while (cur != NULL) {
|
||||
if ((cur->name != NULL) && (!strcmp(cur->name, setting)))
|
||||
return(cur->value);
|
||||
cur = cur->next;
|
||||
}
|
||||
return(NULL);
|
||||
}
|
||||
|
||||
/**
|
||||
|
Loading…
x
Reference in New Issue
Block a user