Skip to content
体验新版
项目
组织
正在加载...
登录
切换导航
打开侧边栏
openeuler
libvirt
提交
3f52921d
L
libvirt
项目概览
openeuler
/
libvirt
通知
3
Star
0
Fork
0
代码
文件
提交
分支
Tags
贡献者
分支图
Diff
Issue
0
列表
看板
标记
里程碑
合并请求
0
Wiki
0
Wiki
分析
仓库
DevOps
项目成员
Pages
L
libvirt
项目概览
项目概览
详情
发布
仓库
仓库
文件
提交
分支
标签
贡献者
分支图
比较
Issue
0
Issue
0
列表
看板
标记
里程碑
合并请求
0
合并请求
0
Pages
分析
分析
仓库分析
DevOps
Wiki
0
Wiki
成员
成员
收起侧边栏
关闭侧边栏
动态
分支图
创建新Issue
提交
Issue看板
体验新版 GitCode,发现更多精彩内容 >>
提交
3f52921d
编写于
4月 18, 2010
作者:
M
Matthias Bolte
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
esx: Gather some XML generation macros in esx_vi.h
上级
7a056d06
变更
4
隐藏空白更改
内联
并排
Showing
4 changed file
with
41 addition
and
64 deletion
+41
-64
src/esx/esx_vi.c
src/esx/esx_vi.c
+4
-27
src/esx/esx_vi.h
src/esx/esx_vi.h
+37
-0
src/esx/esx_vi_methods.c
src/esx/esx_vi_methods.c
+0
-17
src/esx/esx_vi_types.c
src/esx/esx_vi_types.c
+0
-20
未找到文件。
src/esx/esx_vi.c
浏览文件 @
3f52921d
...
@@ -38,38 +38,13 @@
...
@@ -38,38 +38,13 @@
#define VIR_FROM_THIS VIR_FROM_ESX
#define VIR_FROM_THIS VIR_FROM_ESX
#define ESX_VI__SOAP__REQUEST_HEADER \
"<?xml version=\"1.0\" encoding=\"UTF-8\"?>\n" \
"<soapenv:Envelope " \
"xmlns:soapenv=\"http://schemas.xmlsoap.org/soap/envelope/\" " \
"xmlns:soapenc=\"http://schemas.xmlsoap.org/soap/encoding/\" " \
"xmlns:xsi=\"http://www.w3.org/2001/XMLSchema-instance\" " \
"xmlns:xsd=\"http://www.w3.org/2001/XMLSchema\">" \
"<soapenv:Body>"
#define ESX_VI__SOAP__REQUEST_FOOTER \
"</soapenv:Body>" \
"</soapenv:Envelope>"
#define ESX_VI__SOAP__RESPONSE_XPATH(_type) \
#define ESX_VI__SOAP__RESPONSE_XPATH(_type) \
((char *)"/soapenv:Envelope/soapenv:Body/" \
((char *)"/soapenv:Envelope/soapenv:Body/" \
"vim:"_type"Response/vim:returnval")
"vim:"_type"Response/vim:returnval")
#define ESV_VI__XML_TAG__OPEN(_buffer, _element, _type) \
do { \
virBufferAddLit(_buffer, "<"); \
virBufferAdd(_buffer, _element, -1); \
virBufferAddLit(_buffer, " xmlns=\"urn:vim25\" xsi:type=\""); \
virBufferAdd(_buffer, _type, -1); \
virBufferAddLit(_buffer, "\">"); \
} while (0)
#define ESV_VI__XML_TAG__CLOSE(_buffer, _element) \
do { \
virBufferAddLit(_buffer, "</"); \
virBufferAdd(_buffer, _element, -1); \
virBufferAddLit(_buffer, ">"); \
} while (0)
#define ESX_VI__TEMPLATE__ALLOC(_type) \
#define ESX_VI__TEMPLATE__ALLOC(_type) \
int \
int \
...
@@ -78,6 +53,8 @@
...
@@ -78,6 +53,8 @@
return esxVI_Alloc((void **)ptrptr, sizeof(esxVI_##_type)); \
return esxVI_Alloc((void **)ptrptr, sizeof(esxVI_##_type)); \
}
}
#define ESX_VI__TEMPLATE__FREE(_type, _body) \
#define ESX_VI__TEMPLATE__FREE(_type, _body) \
void \
void \
esxVI_##_type##_Free(esxVI_##_type **ptrptr) \
esxVI_##_type##_Free(esxVI_##_type **ptrptr) \
...
...
src/esx/esx_vi.h
浏览文件 @
3f52921d
...
@@ -40,6 +40,43 @@
...
@@ -40,6 +40,43 @@
#define ESX_VI__SOAP__REQUEST_HEADER \
"<?xml version=\"1.0\" encoding=\"UTF-8\"?>\n" \
"<soapenv:Envelope\n" \
" xmlns:soapenv=\"http://schemas.xmlsoap.org/soap/envelope/\"\n" \
" xmlns:soapenc=\"http://schemas.xmlsoap.org/soap/encoding/\"\n" \
" xmlns:xsi=\"http://www.w3.org/2001/XMLSchema-instance\"\n" \
" xmlns:xsd=\"http://www.w3.org/2001/XMLSchema\">\n" \
"<soapenv:Body>\n"
#define ESX_VI__SOAP__REQUEST_FOOTER \
"</soapenv:Body>\n" \
"</soapenv:Envelope>"
#define ESV_VI__XML_TAG__OPEN(_buffer, _element, _type) \
do { \
virBufferAddLit(_buffer, "<"); \
virBufferAdd(_buffer, _element, -1); \
virBufferAddLit(_buffer, " xmlns=\"urn:vim25\" xsi:type=\""); \
virBufferAdd(_buffer, _type, -1); \
virBufferAddLit(_buffer, "\">"); \
} while (0)
#define ESV_VI__XML_TAG__CLOSE(_buffer, _element) \
do { \
virBufferAddLit(_buffer, "</"); \
virBufferAdd(_buffer, _element, -1); \
virBufferAddLit(_buffer, ">"); \
} while (0)
typedef
enum
_esxVI_APIVersion
esxVI_APIVersion
;
typedef
enum
_esxVI_APIVersion
esxVI_APIVersion
;
typedef
enum
_esxVI_ProductVersion
esxVI_ProductVersion
;
typedef
enum
_esxVI_ProductVersion
esxVI_ProductVersion
;
typedef
enum
_esxVI_Occurrence
esxVI_Occurrence
;
typedef
enum
_esxVI_Occurrence
esxVI_Occurrence
;
...
...
src/esx/esx_vi_methods.c
浏览文件 @
3f52921d
...
@@ -34,23 +34,6 @@
...
@@ -34,23 +34,6 @@
#define ESX_VI__SOAP__REQUEST_HEADER \
"<?xml version=\"1.0\" encoding=\"UTF-8\"?>\n" \
"<soapenv:Envelope " \
"xmlns:soapenv=\"http://schemas.xmlsoap.org/soap/envelope/\" " \
"xmlns:soapenc=\"http://schemas.xmlsoap.org/soap/encoding/\" " \
"xmlns:xsi=\"http://www.w3.org/2001/XMLSchema-instance\" " \
"xmlns:xsd=\"http://www.w3.org/2001/XMLSchema\">" \
"<soapenv:Body>"
#define ESX_VI__SOAP__REQUEST_FOOTER \
"</soapenv:Body>" \
"</soapenv:Envelope>"
#define ESX_VI__METHOD__CHECK_OUTPUT__None \
#define ESX_VI__METHOD__CHECK_OUTPUT__None \
/* nothing */
/* nothing */
...
...
src/esx/esx_vi_types.c
浏览文件 @
3f52921d
...
@@ -39,26 +39,6 @@
...
@@ -39,26 +39,6 @@
#define ESV_VI__XML_TAG__OPEN(_buffer, _element, _type) \
do { \
virBufferAddLit(_buffer, "<"); \
virBufferAdd(_buffer, _element, -1); \
virBufferAddLit(_buffer, " xmlns=\"urn:vim25\" xsi:type=\""); \
virBufferAdd(_buffer, _type, -1); \
virBufferAddLit(_buffer, "\">"); \
} while (0)
#define ESV_VI__XML_TAG__CLOSE(_buffer, _element) \
do { \
virBufferAddLit(_buffer, "</"); \
virBufferAdd(_buffer, _element, -1); \
virBufferAddLit(_buffer, ">"); \
} while (0)
#define ESX_VI__TEMPLATE__ALLOC(__type) \
#define ESX_VI__TEMPLATE__ALLOC(__type) \
int \
int \
esxVI_##__type##_Alloc(esxVI_##__type **ptrptr) \
esxVI_##__type##_Alloc(esxVI_##__type **ptrptr) \
...
...
编辑
预览
Markdown
is supported
0%
请重试
或
添加新附件
.
添加附件
取消
You are about to add
0
people
to the discussion. Proceed with caution.
先完成此消息的编辑!
取消
想要评论请
注册
或
登录