* src/conf.c: add missing entry point virConfGetValue()

Daniel
This commit is contained in:
Daniel Veillard 2006-08-29 22:45:44 +00:00
parent 5334a0fbcb
commit c0b1a946a6
2 changed files with 13 additions and 0 deletions

View File

@ -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

View File

@ -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);
}
/**