Disable sound functions when in proxy

This commit is contained in:
Daniel P. Berrange 2008-05-07 18:50:23 +00:00
parent da6316f20e
commit 31b17e6d44
3 changed files with 8 additions and 1 deletions

View File

@ -1,3 +1,8 @@
Wed May 7 14:49:11 EST 2008 Daniel P. Berrange <berrange@redhat.com>
* src/xend_internal.c, src/xml.c: Disable certain sound functions
when built into proxy
Wed May 7 18:12:11 CEST 2008 Daniel Veillard <veillard@redhat.com>
* src/qemu_conf.c src/qemu_conf.h src/qemu_driver.c: another patch

View File

@ -851,6 +851,7 @@ urlencode(const char *string)
return buffer;
}
#endif /* ! PROXY */
/* Applicable sound models */
const char *sound_models[] = { "sb16", "es1370" };
@ -952,7 +953,6 @@ char *sound_string_to_xml(const char *sound) {
return NULL;
}
#endif /* ! PROXY */
/* PUBLIC FUNCTIONS */

View File

@ -290,6 +290,7 @@ virConvertCpuSet(virConnectPtr conn, const char *str, int maxcpu) {
return (res);
}
#ifndef PROXY
/**
* virBuildSoundStringFromXML
* @sound buffer to populate
@ -361,6 +362,7 @@ char * virBuildSoundStringFromXML(virConnectPtr conn,
free(nodes);
return NULL;
}
#endif /* !PROXY */
#endif /* WITH_XEN */
#ifndef PROXY