libvirt 基于C API基本使用案例

2020-12-13 02:09

阅读:411

标签: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,

soscw.com,搜素材

2,virConnectGetVersion

API call obtain version of the host virtualization software in use

soscw.com,搜素材

3,virConnectGetURI

API call obtain URI current connection

soscw.com,搜素材

4,virConnectIsEncrypted

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

soscw.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;

soscw.com,搜素材

soscw.com,搜素材


评论


亲,登录后才可以留言!