提交 d261ed2f 编写于 作者: S Sukrit Bhatnagar 提交者: Erik Skultety

util: buffer: Add struct _virBufferEscapePair typedefs

Add virBufferEscapePair and virBufferEscapePairPtr typedefs, mainly in
order to enable usage of cleanup macros for this type.
Signed-off-by: NSukrit Bhatnagar <skrtbhtngr@gmail.com>
Reviewed-by: NErik Skultety <eskultet@redhat.com>
上级 3538498d
......@@ -648,12 +648,14 @@ virBufferEscape(virBufferPtr buf, char escape, const char *toescape,
}
typedef struct _virBufferEscapePair virBufferEscapePair;
typedef virBufferEscapePair *virBufferEscapePairPtr;
struct _virBufferEscapePair {
char escape;
char *toescape;
};
/**
* virBufferEscapeN:
* @buf: the buffer to append to
......@@ -678,8 +680,8 @@ virBufferEscapeN(virBufferPtr buf,
char *escaped = NULL;
char *out;
const char *cur;
struct _virBufferEscapePair escapeItem;
struct _virBufferEscapePair *escapeList = NULL;
virBufferEscapePair escapeItem;
virBufferEscapePairPtr escapeList = NULL;
size_t nescapeList = 0;
va_list ap;
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册