提交 9fd816ed 编写于 作者: P Pavel Hrdina

Revert "util: virqemu: introduce virQEMUBuildBufferEscape"

This reverts commit 22b02f44.
Signed-off-by: NPavel Hrdina <phrdina@redhat.com>
Reviewed-by: NAndrea Bolognani <abologna@redhat.com>
上级 8f827f2a
......@@ -2422,7 +2422,6 @@ virProcessWait;
# util/virqemu.h
virQEMUBuildBufferEscape;
virQEMUBuildBufferEscapeComma;
virQEMUBuildCommandLineJSON;
virQEMUBuildCommandLineJSONArrayBitmap;
......
......@@ -299,23 +299,6 @@ virQEMUBuildBufferEscapeComma(virBufferPtr buf, const char *str)
}
/**
* virQEMUBuildBufferEscape:
* @buf: buffer to append the escaped string
* @str: the string to escape
*
* Some characters passed as values on the QEMU command line must be escaped.
*
* - ',' must by escaped by ','
* - '=' must by escaped by '\'
*/
void
virQEMUBuildBufferEscape(virBufferPtr buf, const char *str)
{
virBufferEscapeN(buf, "%s", str, ',', ",", '\\', "=", NULL);
}
/**
* virQEMUBuildLuksOpts:
* @buf: buffer to build the string into
......
......@@ -50,7 +50,6 @@ char *virQEMUBuildObjectCommandlineFromJSON(const char *type,
char *virQEMUBuildDriveCommandlineFromJSON(virJSONValuePtr src);
void virQEMUBuildBufferEscapeComma(virBufferPtr buf, const char *str);
void virQEMUBuildBufferEscape(virBufferPtr buf, const char *str);
void virQEMUBuildLuksOpts(virBufferPtr buf,
virStorageEncryptionInfoDefPtr enc,
const char *alias)
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册