資源簡介
XenCenter開發實例
代碼片段和文件信息
/*
?*?Copyright?(c)?Citrix?Systems?Inc.
?*?All?rights?reserved.
?*
?*?Redistribution?and?use?in?source?and?binary?forms?with?or?without
?*?modification?are?permitted?provided?that?the?following?conditions
?*?are?met:
?*
?*???1)?Redistributions?of?source?code?must?retain?the?above?copyright
?*??????notice?this?list?of?conditions?and?the?following?disclaimer.
?*
?*???2)?Redistributions?in?binary?form?must?reproduce?the?above
?*??????copyright?notice?this?list?of?conditions?and?the?following
?*??????disclaimer?in?the?documentation?and/or?other?materials
?*??????provided?with?the?distribution.
?*
?*?THIS?SOFTWARE?IS?PROVIDED?BY?THE?COPYRIGHT?HOLDERS?AND?CONTRIBUTORS
?*?“AS?IS“?AND?ANY?EXPRESS?OR?IMPLIED?WARRANTIES?INCLUDING?BUT?NOT
?*?LIMITED?TO?THE?IMPLIED?WARRANTIES?OF?MERCHANTABILITY?AND?FITNESS
?*?FOR?A?PARTICULAR?PURPOSE?ARE?DISCLAIMED.?IN?NO?EVENT?SHALL?THE
?*?COPYRIGHT?HOLDER?OR?CONTRIBUTORS?BE?LIABLE?FOR?ANY?DIRECT
?*?INDIRECT?INCIDENTAL?SPECIAL?EXEMPLARY?OR?CONSEQUENTIAL?DAMAGES
?*?(INCLUDING?BUT?NOT?LIMITED?TO?PROCUREMENT?OF?SUBSTITUTE?GOODS?OR
?*?SERVICES;?LOSS?OF?USE?DATA?OR?PROFITS;?OR?BUSINESS?INTERRUPTION)
?*?HOWEVER?CAUSED?AND?ON?ANY?THEORY?OF?LIABILITY?WHETHER?IN?CONTRACT
?*?STRICT?LIABILITY?OR?TORT?(INCLUDING?NEGLIGENCE?OR?OTHERWISE)
?*?ARISING?IN?ANY?WAY?OUT?OF?THE?USE?OF?THIS?SOFTWARE?EVEN?IF?ADVISED
?*?OF?THE?POSSIBILITY?OF?SUCH?DAMAGE.
?*/
#define?_XOPEN_SOURCE
#include?
#include?
#include?
#include?
#include?
#include?
#include?
#include?l/parser.h>
#include?l/parserInternals.h>
#include?l/tree.h>
#include?l/xmlsave.h>
#include?l/xmlstring.h>
#include?l/xpath.h>
#include?l/debugxml.h>
#include?“xen/api/xen_common.h“
#include?“xen/api/xen_host.h“
#include?“xen_internal.h“
#include?“xen/api/xen_int_float_map.h“
#include?“xen/api/xen_int_int_map.h“
#include?“xen/api/xen_int_string_set_map.h“
#include?“xen/api/xen_string_int_map.h“
#include?“xen/api/xen_string_string_map.h“
#include?“xen/api/xen_string_string_set_map.h“
#include?“xen/api/xen_string_string_string_map_map.h“
/*
?*?Whether?to?ignore?missing?structure?entries.??This?is?not?something?we
?*?want?to?do?once?the?API?has?stabilised?as?it?indicates?that?the?server?is
?*?broken?but?at?the?moment?complaining?is?just?slowing?development?down.
?*/
#define?PERMISSIVE?1
static?xmlXPathCompExprPtr?responsePath?=?NULL;
static?xmlXPathCompExprPtr?faultPath?=?NULL;
typedef?struct
{
????size_t?size;
????void?*contents[];
}?arbitrary_map;
typedef?struct
{
????void?*handle;
}?arbitrary_record;
typedef?struct
{
????bool?is_record;
????union
????{
????????char?*handle;
????????arbitrary_record?*record;
????}?u;
}?arbitrary_record_opt;
static?char?*
make_body(const?char?*?abstract_value?[]?int);
static?void
parse_result(xen_session?*?const?char?*?const?abstract_type?*?void?*);
static?void
add_value(xmlNode?*?const?char?*?const?char?*);
?屬性????????????大小?????日期????時間???名稱
-----------?---------??----------?-----??----
?????文件??????????38??2020-12-02?17:05??.gitignore
?????文件?????????402??2020-12-02?17:05??.travis.yml
?????目錄???????????0??2020-12-02?17:05??c\
?????目錄???????????0??2020-12-02?17:05??c\autogen\
?????文件?????????160??2020-12-02?17:05??c\autogen\dune
?????目錄???????????0??2020-12-02?17:05??c\autogen\include\
?????目錄???????????0??2020-12-02?17:05??c\autogen\include\xen\
?????目錄???????????0??2020-12-02?17:05??c\autogen\include\xen\api\
?????文件????????7280??2020-12-02?17:05??c\autogen\include\xen\api\xen_common.h
?????文件????????2150??2020-12-02?17:05??c\autogen\include\xen\api\xen_event_batch.h
?????文件????????1824??2020-12-02?17:05??c\autogen\include\xen\api\xen_int_set.h
?????文件????????1856??2020-12-02?17:05??c\autogen\include\xen\api\xen_string_set.h
?????目錄???????????0??2020-12-02?17:05??c\autogen\src\
?????文件???????55067??2020-12-02?17:05??c\autogen\src\xen_common.c
?????文件????????3045??2020-12-02?17:05??c\autogen\src\xen_event_batch.c
?????文件????????1785??2020-12-02?17:05??c\autogen\src\xen_int_set.c
?????文件????????1913??2020-12-02?17:05??c\autogen\src\xen_string_set.c
?????目錄???????????0??2020-12-02?17:05??c\autogen\test\
?????文件???????13739??2020-12-02?17:05??c\autogen\test\test_enumerate.c
?????文件????????7012??2020-12-02?17:05??c\autogen\test\test_event_handling.c
?????文件????????2236??2020-12-02?17:05??c\autogen\test\test_failures.c
?????文件????????7623??2020-12-02?17:05??c\autogen\test\test_get_records.c
?????文件???????10800??2020-12-02?17:05??c\autogen\test\test_vm_async_migrate.c
?????文件???????19406??2020-12-02?17:05??c\autogen\test\test_vm_ops.c
?????文件?????????222??2020-12-02?17:05??c\dune
?????文件???????39169??2020-12-02?17:05??c\gen_c_binding.ml
?????文件????????3284??2020-12-02?17:05??c\helper.ml
?????文件????????2828??2020-12-02?17:05??c\README.dist
?????目錄???????????0??2020-12-02?17:05??c\templates\
?????文件????????3791??2020-12-02?17:05??c\templates\Makefile.mustache
?????文件????????1769??2020-12-02?17:05??c\templates\xen_all.h.mustache
............此處省略152個文件信息
- 上一篇:AJ報文解析
- 下一篇:C#托盤圖標 帶右鍵菜單
評論
共有 條評論