提交 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, ...@@ -648,12 +648,14 @@ virBufferEscape(virBufferPtr buf, char escape, const char *toescape,
} }
typedef struct _virBufferEscapePair virBufferEscapePair;
typedef virBufferEscapePair *virBufferEscapePairPtr;
struct _virBufferEscapePair { struct _virBufferEscapePair {
char escape; char escape;
char *toescape; char *toescape;
}; };
/** /**
* virBufferEscapeN: * virBufferEscapeN:
* @buf: the buffer to append to * @buf: the buffer to append to
...@@ -678,8 +680,8 @@ virBufferEscapeN(virBufferPtr buf, ...@@ -678,8 +680,8 @@ virBufferEscapeN(virBufferPtr buf,
char *escaped = NULL; char *escaped = NULL;
char *out; char *out;
const char *cur; const char *cur;
struct _virBufferEscapePair escapeItem; virBufferEscapePair escapeItem;
struct _virBufferEscapePair *escapeList = NULL; virBufferEscapePairPtr escapeList = NULL;
size_t nescapeList = 0; size_t nescapeList = 0;
va_list ap; va_list ap;
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册