码迷,mamicode.com
首页 > Windows程序 > 详细

libvirt 基于C API基本使用案例

时间:2014-06-03 08:10:33      阅读:440      评论:0      收藏:0      [点我收藏+]

标签:des   c   style   code   a   tar   

1,virConnectGetLibVersion

API call obtain the version of libvirt software in use on the host

it takes a connection pointer and unsigned long pointer as input,

bubuko.com,布布扣

2,virConnectGetVersion

API call obtain version of the host virtualization software in use

bubuko.com,布布扣

3,virConnectGetURI

API call obtain URI current connection

bubuko.com,布布扣

4,virConnectIsEncrypted

API call 判断以建立的virtualizationHypervisors 是否是加密的

bubuko.com,布布扣

5,virConnectIsSecure

API call 同上判断virtual conn 是否加密

if succesful returns 1 for a secure connection and 0 for an insecure connection

if an error occurred -1 will be returned;

bubuko.com,布布扣

bubuko.com,布布扣

6,libvirt Enevt loop integration;

libvirt APIs use a basic request/response architecture that is generally synchronous

libvirt application calls a libvirt API (the request) which doesn‘t return until the action is complete (the response)

a libvirtd server can also generate asynchronous messages and send them to
the libvirt application

libvirt 基于C API基本使用案例,布布扣,bubuko.com

libvirt 基于C API基本使用案例

标签:des   c   style   code   a   tar   

原文地址:http://www.cnblogs.com/ruiy/p/libAPI.html

(0)
(0)
   
举报
评论 一句话评论(0
登录后才能评论!
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!