提交 46bd9ee7 编写于 作者: P Peter Krempa

util: uri: Introduce VIR_AUTOPTR freeing function

Signed-off-by: NPeter Krempa <pkrempa@redhat.com>
Reviewed-by: NJán Tomko <jtomko@redhat.com>
上级 e8ef1dd1
......@@ -25,6 +25,7 @@
# include "internal.h"
# include "virconf.h"
# include "virautoclean.h"
typedef struct _virURI virURI;
typedef virURI *virURIPtr;
......@@ -60,6 +61,7 @@ char *virURIFormat(virURIPtr uri)
char *virURIFormatParams(virURIPtr uri);
void virURIFree(virURIPtr uri);
VIR_DEFINE_AUTOPTR_FUNC(virURI, virURIFree);
int virURIResolveAlias(virConfPtr conf, const char *alias, char **uri);
# define VIR_URI_SERVER(uri) ((uri) && (uri)->server ? (uri)->server : "localhost")
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册