54
58
<exports symbol='_virNodeInfo' type='struct'/>
55
59
<exports symbol='_virVcpuInfo' type='struct'/>
56
60
<exports symbol='virDomainGetInfo' type='function'/>
57
<exports symbol='virDomainUndefine' type='function'/>
61
<exports symbol='virNetworkFree' type='function'/>
62
<exports symbol='virNetworkGetName' type='function'/>
63
<exports symbol='virDomainGetName' type='function'/>
64
<exports symbol='virNetworkGetAutostart' type='function'/>
58
65
<exports symbol='virDomainDefineXML' type='function'/>
59
66
<exports symbol='virDomainShutdown' type='function'/>
67
<exports symbol='virNetworkUndefine' type='function'/>
60
68
<exports symbol='virGetVersion' type='function'/>
61
69
<exports symbol='virConnectListDefinedDomains' type='function'/>
70
<exports symbol='virConnectGetCapabilities' type='function'/>
71
<exports symbol='virNetworkGetUUID' type='function'/>
62
72
<exports symbol='virDomainLookupByName' type='function'/>
73
<exports symbol='virNetworkLookupByUUID' type='function'/>
74
<exports symbol='virNetworkGetBridgeName' type='function'/>
63
75
<exports symbol='virDomainPinVcpu' type='function'/>
64
76
<exports symbol='virDomainRestore' type='function'/>
65
77
<exports symbol='virConnectGetType' type='function'/>
66
78
<exports symbol='virDomainSave' type='function'/>
67
79
<exports symbol='virDomainCreate' type='function'/>
68
80
<exports symbol='virConnectListDomains' type='function'/>
81
<exports symbol='virNetworkLookupByUUIDString' type='function'/>
82
<exports symbol='virDomainCoreDump' type='function'/>
69
83
<exports symbol='virDomainLookupByUUID' type='function'/>
70
84
<exports symbol='virDomainLookupByUUIDString' type='function'/>
71
<exports symbol='virDomainLookupByID' type='function'/>
85
<exports symbol='virConnectNumOfDefinedNetworks' type='function'/>
86
<exports symbol='virDomainUndefine' type='function'/>
72
87
<exports symbol='virDomainGetOSType' type='function'/>
88
<exports symbol='virConnectListDefinedNetworks' type='function'/>
73
89
<exports symbol='virNodeGetInfo' type='function'/>
74
90
<exports symbol='virDomainGetUUID' type='function'/>
91
<exports symbol='virNetworkCreateXML' type='function'/>
92
<exports symbol='virNetworkSetAutostart' type='function'/>
75
93
<exports symbol='virConnectNumOfDomains' type='function'/>
76
94
<exports symbol='virDomainGetUUIDString' type='function'/>
77
<exports symbol='virDomainGetVcpus' type='function'/>
78
<exports symbol='virConnectGetVersion' type='function'/>
79
<exports symbol='virDomainSetMaxMemory' type='function'/>
95
<exports symbol='virDomainGetMaxMemory' type='function'/>
96
<exports symbol='virDomainAttachDevice' type='function'/>
97
<exports symbol='virDomainGetMaxVcpus' type='function'/>
80
98
<exports symbol='virDomainFree' type='function'/>
81
99
<exports symbol='virConnectOpen' type='function'/>
100
<exports symbol='virDomainSetAutostart' type='function'/>
82
101
<exports symbol='virDomainSuspend' type='function'/>
102
<exports symbol='virConnectGetMaxVcpus' type='function'/>
83
103
<exports symbol='virConnectNumOfDefinedDomains' type='function'/>
104
<exports symbol='virNetworkDefineXML' type='function'/>
105
<exports symbol='virNetworkCreate' type='function'/>
84
106
<exports symbol='virConnectClose' type='function'/>
85
107
<exports symbol='virDomainReboot' type='function'/>
86
108
<exports symbol='virInitialize' type='function'/>
87
109
<exports symbol='virDomainSetVcpus' type='function'/>
110
<exports symbol='virNetworkGetUUIDString' type='function'/>
111
<exports symbol='virNetworkLookupByName' type='function'/>
112
<exports symbol='virNetworkGetXMLDesc' type='function'/>
88
113
<exports symbol='virDomainGetID' type='function'/>
89
114
<exports symbol='virDomainResume' type='function'/>
90
115
<exports symbol='virDomainCreateLinux' type='function'/>
91
116
<exports symbol='virDomainSetMemory' type='function'/>
117
<exports symbol='virNetworkDestroy' type='function'/>
92
118
<exports symbol='virDomainDestroy' type='function'/>
93
<exports symbol='virDomainGetMaxMemory' type='function'/>
119
<exports symbol='virConnectNumOfNetworks' type='function'/>
120
<exports symbol='virDomainDetachDevice' type='function'/>
121
<exports symbol='virDomainGetAutostart' type='function'/>
122
<exports symbol='virDomainGetVcpus' type='function'/>
94
123
<exports symbol='virDomainGetXMLDesc' type='function'/>
95
<exports symbol='virDomainGetName' type='function'/>
124
<exports symbol='virDomainSetMaxMemory' type='function'/>
125
<exports symbol='virConnectGetVersion' type='function'/>
126
<exports symbol='virConnectListNetworks' type='function'/>
127
<exports symbol='virDomainLookupByID' type='function'/>
96
128
<exports symbol='virConnectOpenReadOnly' type='function'/>
98
130
<file name='virterror'>
99
131
<summary>error handling interfaces for the libvirt library</summary>
100
132
<description>Provides the interfaces of the libvirt library to handle errors raised while using the library. </description>
101
133
<author>Daniel Veillard <veillard@redhat.com> </author>
134
<exports symbol='VIR_FROM_XML' type='enum'/>
102
135
<exports symbol='VIR_ERR_CALL_FAILED' type='enum'/>
136
<exports symbol='VIR_ERR_SYSTEM_ERROR' type='enum'/>
103
137
<exports symbol='VIR_ERR_WARNING' type='enum'/>
104
138
<exports symbol='VIR_ERR_NO_XEN' type='enum'/>
105
139
<exports symbol='VIR_ERR_INVALID_ARG' type='enum'/>
114
148
<exports symbol='VIR_ERR_NO_XENSTORE' type='enum'/>
115
149
<exports symbol='VIR_FROM_DOM' type='enum'/>
116
150
<exports symbol='VIR_ERR_INVALID_DOMAIN' type='enum'/>
117
<exports symbol='VIR_FROM_XML' type='enum'/>
151
<exports symbol='VIR_FROM_QEMU' type='enum'/>
118
152
<exports symbol='VIR_FROM_CONF' type='enum'/>
119
<exports symbol='VIR_ERR_PARSE_FAILED' type='enum'/>
153
<exports symbol='VIR_ERR_INVALID_NETWORK' type='enum'/>
154
<exports symbol='VIR_ERR_OPERATION_DENIED' type='enum'/>
120
155
<exports symbol='VIR_ERR_NO_KERNEL' type='enum'/>
121
156
<exports symbol='VIR_ERR_POST_FAILED' type='enum'/>
122
157
<exports symbol='VIR_ERR_OS_TYPE' type='enum'/>
123
158
<exports symbol='VIR_ERR_INVALID_CONN' type='enum'/>
124
159
<exports symbol='VIR_ERR_NONE' type='enum'/>
125
160
<exports symbol='VIR_ERR_OK' type='enum'/>
161
<exports symbol='VIR_ERR_XML_DETAIL' type='enum'/>
162
<exports symbol='VIR_FROM_NET' type='enum'/>
126
163
<exports symbol='VIR_ERR_NO_NAME' type='enum'/>
127
164
<exports symbol='VIR_ERR_NO_ROOT' type='enum'/>
128
165
<exports symbol='VIR_ERR_OPERATION_FAILED' type='enum'/>
129
166
<exports symbol='VIR_ERR_GET_FAILED' type='enum'/>
130
167
<exports symbol='VIR_ERR_DRIVER_FULL' type='enum'/>
131
168
<exports symbol='VIR_ERR_HTTP_ERROR' type='enum'/>
169
<exports symbol='VIR_ERR_PARSE_FAILED' type='enum'/>
132
170
<exports symbol='VIR_ERR_NO_SOURCE' type='enum'/>
133
171
<exports symbol='VIR_ERR_NO_TARGET' type='enum'/>
134
<exports symbol='VIR_ERR_OPERATION_DENIED' type='enum'/>
172
<exports symbol='VIR_ERR_NETWORK_EXIST' type='enum'/>
135
173
<exports symbol='VIR_ERR_WRITE_FAILED' type='enum'/>
136
174
<exports symbol='VIR_ERR_INTERNAL_ERROR' type='enum'/>
137
175
<exports symbol='VIR_ERR_CONF_SYNTAX' type='enum'/>
257
303
<enum name='VIR_ERR_POST_FAILED' file='virterror' value='11' type='virErrorNumber' info='a HTTP POST command to failed'/>
258
304
<enum name='VIR_ERR_READ_FAILED' file='virterror' value='31' type='virErrorNumber' info='failed to read a conf file'/>
259
305
<enum name='VIR_ERR_SEXPR_SERIAL' file='virterror' value='13' type='virErrorNumber' info='failure to serialize an S-Expr'/>
306
<enum name='VIR_ERR_SYSTEM_ERROR' file='virterror' value='38' type='virErrorNumber' info=' general system call failure'/>
260
307
<enum name='VIR_ERR_UNKNOWN_HOST' file='virterror' value='4' type='virErrorNumber' info='could not resolve hostname'/>
261
308
<enum name='VIR_ERR_WARNING' file='virterror' value='1' type='virErrorLevel' info='A simple warning'/>
262
<enum name='VIR_ERR_WRITE_FAILED' file='virterror' value='34' type='virErrorNumber' info=' failed to write a conf file'/>
309
<enum name='VIR_ERR_WRITE_FAILED' file='virterror' value='34' type='virErrorNumber' info='failed to write a conf file'/>
263
310
<enum name='VIR_ERR_XEN_CALL' file='virterror' value='15' type='virErrorNumber' info='failure doing an hypervisor call'/>
311
<enum name='VIR_ERR_XML_DETAIL' file='virterror' value='35' type='virErrorNumber' info='detail of an XML error'/>
264
312
<enum name='VIR_ERR_XML_ERROR' file='virterror' value='27' type='virErrorNumber' info='an XML description is not well formed or broken'/>
265
<enum name='VIR_FROM_CONF' file='virterror' value='9' type='virErrorDomain' info=' Error in the configuration file handling'/>
313
<enum name='VIR_FROM_CONF' file='virterror' value='9' type='virErrorDomain' info='Error in the configuration file handling'/>
266
314
<enum name='VIR_FROM_DOM' file='virterror' value='6' type='virErrorDomain' info='Error when operating on a domain'/>
315
<enum name='VIR_FROM_NET' file='virterror' value='11' type='virErrorDomain' info=' Error when operating on a network'/>
267
316
<enum name='VIR_FROM_NONE' file='virterror' value='0' type='virErrorDomain'/>
268
317
<enum name='VIR_FROM_PROXY' file='virterror' value='8' type='virErrorDomain' info='Error in the proxy code'/>
318
<enum name='VIR_FROM_QEMU' file='virterror' value='10' type='virErrorDomain' info='Error at the QEMU daemon'/>
269
319
<enum name='VIR_FROM_RPC' file='virterror' value='7' type='virErrorDomain' info='Error in the XML-RPC code'/>
270
320
<enum name='VIR_FROM_SEXPR' file='virterror' value='4' type='virErrorDomain' info='Error in the S-Epression code'/>
271
321
<enum name='VIR_FROM_XEN' file='virterror' value='1' type='virErrorDomain' info='Error at Xen hypervisor layer'/>
372
427
<return type='int' info='0 in case of success or -1 in case of error.'/>
373
428
<arg name='conn' type='virConnectPtr' info='pointer to the hypervisor connection'/>
430
<function name='virConnectGetCapabilities' file='libvirt' module='libvirt'>
431
<info>Provides capabilities of the hypervisor / driver.</info>
432
<return type='char *' info='NULL in case of error, or a pointer to an opaque virCapabilities structure (virCapabilitiesPtr). The client must free the returned string after use.'/>
433
<arg name='conn' type='virConnectPtr' info='pointer to the hypervisor connection'/>
435
<function name='virConnectGetMaxVcpus' file='libvirt' module='libvirt'>
436
<info>Provides the maximum number of virtual CPUs supported for a guest VM of a specific type. The 'type' parameter here corresponds to the 'type' attribute in the <domain> element of the XML.</info>
437
<return type='int' info='the maximum of virtual CPU or -1 in case of error.'/>
438
<arg name='conn' type='virConnectPtr' info='pointer to the hypervisor connection'/>
439
<arg name='type' type='const char *' info='value of the 'type' attribute in the <domain> element'/>
375
441
<function name='virConnectGetType' file='libvirt' module='libvirt'>
376
442
<info>Get the name of the Hypervisor software used.</info>
377
443
<return type='const char *' info='NULL in case of error, a static zero terminated string otherwise.'/>
397
470
<arg name='ids' type='int *' info='array to collect the list of IDs of active domains'/>
398
471
<arg name='maxids' type='int' info='size of @ids'/>
473
<function name='virConnectListNetworks' file='libvirt' module='libvirt'>
474
<info>Collect the list of active networks, and store their names in @names</info>
475
<return type='int' info='the number of networks found or -1 in case of error'/>
476
<arg name='conn' type='virConnectPtr' info='pointer to the hypervisor connection'/>
477
<arg name='names' type='char ** const' info='array to collect the list of names of active networks'/>
478
<arg name='maxnames' type='int' info='size of @names'/>
400
480
<function name='virConnectNumOfDefinedDomains' file='libvirt' module='libvirt'>
401
481
<info>Provides the number of active domains.</info>
402
482
<return type='int' info='the number of domain found or -1 in case of error'/>
403
483
<arg name='conn' type='virConnectPtr' info='pointer to the hypervisor connection'/>
485
<function name='virConnectNumOfDefinedNetworks' file='libvirt' module='libvirt'>
486
<info>Provides the number of inactive networks.</info>
487
<return type='int' info='the number of networks found or -1 in case of error'/>
488
<arg name='conn' type='virConnectPtr' info='pointer to the hypervisor connection'/>
405
490
<function name='virConnectNumOfDomains' file='libvirt' module='libvirt'>
406
491
<info>Provides the number of active domains.</info>
407
492
<return type='int' info='the number of domain found or -1 in case of error'/>
408
493
<arg name='conn' type='virConnectPtr' info='pointer to the hypervisor connection'/>
495
<function name='virConnectNumOfNetworks' file='libvirt' module='libvirt'>
496
<info>Provides the number of active networks.</info>
497
<return type='int' info='the number of network found or -1 in case of error'/>
498
<arg name='conn' type='virConnectPtr' info='pointer to the hypervisor connection'/>
410
500
<function name='virConnectOpen' file='libvirt' module='libvirt'>
411
501
<info>This function should be called first to get a connection to the Hypervisor and xen store</info>
412
502
<return type='virConnectPtr' info='a pointer to the hypervisor connection or NULL in case of error'/>
427
517
<return type='void'/>
428
518
<arg name='err' type='virErrorPtr' info='pointer to the error.'/>
520
<function name='virDomainAttachDevice' file='libvirt' module='libvirt'>
521
<info>Create a virtual device attachment to backend.</info>
522
<return type='int' info='0 in case of success, -1 in case of failure.'/>
523
<arg name='domain' type='virDomainPtr' info='pointer to domain object'/>
524
<arg name='xml' type='char *' info='pointer to XML description of one device'/>
526
<function name='virDomainCoreDump' file='libvirt' module='libvirt'>
527
<info>This method will dump the core of a domain on a given file for analysis. Note that for remote Xen Daemon the file path will be interpreted in the remote host.</info>
528
<return type='int' info='0 in case of success and -1 in case of failure.'/>
529
<arg name='domain' type='virDomainPtr' info='a domain object'/>
530
<arg name='to' type='const char *' info='path for the core file'/>
531
<arg name='flags' type='int' info='extra flags, currently unused'/>
430
533
<function name='virDomainCreate' file='libvirt' module='libvirt'>
431
534
<info>launch a defined domain. If the call succeed the domain moves from the defined to the running domains pools.</info>
432
535
<return type='int' info='0 in case of success, -1 in case of error'/>
450
553
<return type='int' info='0 in case of success and -1 in case of failure.'/>
451
554
<arg name='domain' type='virDomainPtr' info='a domain object'/>
556
<function name='virDomainDetachDevice' file='libvirt' module='libvirt'>
557
<info>Destroy a virtual device attachment to backend.</info>
558
<return type='int' info='0 in case of success, -1 in case of failure.'/>
559
<arg name='domain' type='virDomainPtr' info='pointer to domain object'/>
560
<arg name='xml' type='char *' info='pointer to XML description of one device'/>
453
562
<function name='virDomainFree' file='libvirt' module='libvirt'>
454
563
<info>Free the domain object. The running instance is kept alive. The data structure is freed and should not be used thereafter.</info>
455
564
<return type='int' info='0 in case of success and -1 in case of failure.'/>
456
565
<arg name='domain' type='virDomainPtr' info='a domain object'/>
567
<function name='virDomainGetAutostart' file='libvirt' module='libvirt'>
568
<info>Provides a boolean value indicating whether the domain configured to be automatically started when the host machine boots.</info>
569
<return type='int' info='-1 in case of error, 0 in case of success'/>
570
<arg name='domain' type='virDomainPtr' info='a domain object'/>
571
<arg name='autostart' type='int *' info='the value returned'/>
458
573
<function name='virDomainGetID' file='libvirt' module='libvirt'>
459
574
<info>Get the hypervisor ID number for the domain</info>
460
575
<return type='unsigned int' info='the domain ID number or (unsigned int) -1 in case of error'/>
617
743
<info>Initialize the library. It's better to call this routine at startup in multithreaded applications to avoid potential race when initializing the library.</info>
618
744
<return type='int' info='0 in case of success, -1 in case of error'/>
746
<function name='virNetworkCreate' file='libvirt' module='libvirt'>
747
<info>Create and start a defined network. If the call succeed the network moves from the defined to the running networks pools.</info>
748
<return type='int' info='0 in case of success, -1 in case of error'/>
749
<arg name='network' type='virNetworkPtr' info='pointer to a defined network'/>
751
<function name='virNetworkCreateXML' file='libvirt' module='libvirt'>
752
<info>Create and start a new virtual network, based on an XML description similar to the one returned by virNetworkGetXMLDesc()</info>
753
<return type='virNetworkPtr' info='a new network object or NULL in case of failure'/>
754
<arg name='conn' type='virConnectPtr' info='pointer to the hypervisor connection'/>
755
<arg name='xmlDesc' type='const char *' info='an XML description of the network'/>
757
<function name='virNetworkDefineXML' file='libvirt' module='libvirt'>
758
<info>Define a network, but does not create it</info>
759
<return type='virNetworkPtr' info='NULL in case of error, a pointer to the network otherwise'/>
760
<arg name='conn' type='virConnectPtr' info='pointer to the hypervisor connection'/>
761
<arg name='xml' type='const char *' info='the XML description for the network, preferably in UTF-8'/>
763
<function name='virNetworkDestroy' file='libvirt' module='libvirt'>
764
<info>Destroy the network object. The running instance is shutdown if not down already and all resources used by it are given back to the hypervisor. The data structure is freed and should not be used thereafter if the call does not return an error. This function may requires priviledged access</info>
765
<return type='int' info='0 in case of success and -1 in case of failure.'/>
766
<arg name='network' type='virNetworkPtr' info='a network object'/>
768
<function name='virNetworkFree' file='libvirt' module='libvirt'>
769
<info>Free the network object. The running instance is kept alive. The data structure is freed and should not be used thereafter.</info>
770
<return type='int' info='0 in case of success and -1 in case of failure.'/>
771
<arg name='network' type='virNetworkPtr' info='a network object'/>
773
<function name='virNetworkGetAutostart' file='libvirt' module='libvirt'>
774
<info>Provides a boolean value indicating whether the network configured to be automatically started when the host machine boots.</info>
775
<return type='int' info='-1 in case of error, 0 in case of success'/>
776
<arg name='network' type='virNetworkPtr' info='a network object'/>
777
<arg name='autostart' type='int *' info='the value returned'/>
779
<function name='virNetworkGetBridgeName' file='libvirt' module='libvirt'>
780
<info>Provides a bridge interface name to which a domain may connect a network interface in order to join the network.</info>
781
<return type='char *' info='a 0 terminated interface name, or NULL in case of error. the caller must free() the returned value.'/>
782
<arg name='network' type='virNetworkPtr' info='a network object'/>
784
<function name='virNetworkGetName' file='libvirt' module='libvirt'>
785
<info>Get the public name for that network</info>
786
<return type='const char *' info='a pointer to the name or NULL, the string need not be deallocated its lifetime will be the same as the network object.'/>
787
<arg name='network' type='virNetworkPtr' info='a network object'/>
789
<function name='virNetworkGetUUID' file='libvirt' module='libvirt'>
790
<info>Get the UUID for a network</info>
791
<return type='int' info='-1 in case of error, 0 in case of success'/>
792
<arg name='network' type='virNetworkPtr' info='a network object'/>
793
<arg name='uuid' type='unsigned char *' info='pointer to a VIR_UUID_BUFLEN bytes array'/>
795
<function name='virNetworkGetUUIDString' file='libvirt' module='libvirt'>
796
<info>Get the UUID for a network as string. For more information about UUID see RFC4122.</info>
797
<return type='int' info='-1 in case of error, 0 in case of success'/>
798
<arg name='network' type='virNetworkPtr' info='a network object'/>
799
<arg name='buf' type='char *' info='pointer to a VIR_UUID_STRING_BUFLEN bytes array'/>
801
<function name='virNetworkGetXMLDesc' file='libvirt' module='libvirt'>
802
<info>Provide an XML description of the network. The description may be reused later to relaunch the network with virNetworkCreateXML().</info>
803
<return type='char *' info='a 0 terminated UTF-8 encoded XML instance, or NULL in case of error. the caller must free() the returned value.'/>
804
<arg name='network' type='virNetworkPtr' info='a network object'/>
805
<arg name='flags' type='int' info='and OR'ed set of extraction flags, not used yet'/>
807
<function name='virNetworkLookupByName' file='libvirt' module='libvirt'>
808
<info>Try to lookup a network on the given hypervisor based on its name.</info>
809
<return type='virNetworkPtr' info='a new network object or NULL in case of failure'/>
810
<arg name='conn' type='virConnectPtr' info='pointer to the hypervisor connection'/>
811
<arg name='name' type='const char *' info='name for the network'/>
813
<function name='virNetworkLookupByUUID' file='libvirt' module='libvirt'>
814
<info>Try to lookup a network on the given hypervisor based on its UUID.</info>
815
<return type='virNetworkPtr' info='a new network object or NULL in case of failure'/>
816
<arg name='conn' type='virConnectPtr' info='pointer to the hypervisor connection'/>
817
<arg name='uuid' type='const unsigned char *' info='the raw UUID for the network'/>
819
<function name='virNetworkLookupByUUIDString' file='libvirt' module='libvirt'>
820
<info>Try to lookup a network on the given hypervisor based on its UUID.</info>
821
<return type='virNetworkPtr' info='a new network object or NULL in case of failure'/>
822
<arg name='conn' type='virConnectPtr' info='pointer to the hypervisor connection'/>
823
<arg name='uuidstr' type='const char *' info='the string UUID for the network'/>
825
<function name='virNetworkSetAutostart' file='libvirt' module='libvirt'>
826
<info>Configure the network to be automatically started when the host machine boots.</info>
827
<return type='int' info='-1 in case of error, 0 in case of success'/>
828
<arg name='network' type='virNetworkPtr' info='a network object'/>
829
<arg name='autostart' type='int' info='whether the network should be automatically started 0 or 1'/>
831
<function name='virNetworkUndefine' file='libvirt' module='libvirt'>
832
<info>Undefine a network but does not stop it if it is running</info>
833
<return type='int' info='0 in case of success, -1 in case of error'/>
834
<arg name='network' type='virNetworkPtr' info='pointer to a defined network'/>
620
836
<function name='virNodeGetInfo' file='libvirt' module='libvirt'>
621
837
<info>Extract hardware information about the node.</info>
622
838
<return type='int' info='0 in case of success and -1 in case of failure.'/>