ruby-libvirt 0.6.0 → 0.7.0

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 3ce28a7acf62c75daca90571b9d7cc7beb97840b
4
- data.tar.gz: be65964253ac857f6c13d0d911328fc85d324bfd
3
+ metadata.gz: aefbd15c7fe0242b743e1becd08d6c11ea350c60
4
+ data.tar.gz: 74c7cc7a1e23315ab302138dfa902d587c9a6c08
5
5
  SHA512:
6
- metadata.gz: a0528322015406a30845559328ee61d150b5048d3c49db7c70bc4a973af46d43c28dfbb926d3897dcafccedd1b0c67f6aef63110ba8835927fbe82df544bd568
7
- data.tar.gz: 73fec1c760666644057b4c2361641f042e236f299f91b98aae79f89dcab1005bb74686122929e64c06722da55c0d24e9d09e3ea1a0fb87a7eafbaddb3103ba89
6
+ metadata.gz: 0ed0431364ffad0687758004ca0a301e98f3bf7e802d2b68dec34b8f210ec91277a001add9efa08770b65b908b0683b1bf989afed736b7223f54f8520f4efec5
7
+ data.tar.gz: eb0e7146cd6e515c05937150be52b4050f73dfe4ce6840c29e7ec741addd49e9fe2c148f90d4aec85f9ba99f5ff1deea126aa2c652c3e028bc73a3928bd7ac6d
data/COPYING CHANGED
@@ -3,7 +3,7 @@
3
3
  Version 2.1, February 1999
4
4
 
5
5
  Copyright (C) 1991, 1999 Free Software Foundation, Inc.
6
- 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
6
+ 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA
7
7
  Everyone is permitted to copy and distribute verbatim copies
8
8
  of this license document, but changing it is not allowed.
9
9
 
data/NEWS CHANGED
@@ -1,3 +1,14 @@
1
+ 2016-09-22 0.7.0
2
+ * Fix network lease API to allow arguments that libvirt allows
3
+ * Implement VIRT_STORAGE_POOL_CREATE flags
4
+ * Implement more VIR_STORAGE_VOL flags
5
+ * Implement VIR_DOMAIN_QEMU_AGENT_COMMAND_SHUTDOWN
6
+ * Implement virDomainDefineXMLFlags
7
+ * Implement virDomainRename
8
+ * Implement virDomainSetUserPassword
9
+ * Implement VIR_DOMAIN_TIME_SYNC
10
+ * Fix the return value from virStreamSourceFunc so volume upload works
11
+
1
12
  2015-11-20 0.6.0
2
13
  * Fix possible buffer overflow
3
14
  * Fix storage volume creation error messages
data/Rakefile CHANGED
@@ -21,7 +21,7 @@ require 'rubygems/package_task'
21
21
  require 'rbconfig'
22
22
 
23
23
  PKG_NAME='ruby-libvirt'
24
- PKG_VERSION='0.6.0'
24
+ PKG_VERSION='0.7.0'
25
25
 
26
26
  EXT_CONF='ext/libvirt/extconf.rb'
27
27
  MAKEFILE="ext/libvirt/Makefile"
@@ -2,7 +2,7 @@
2
2
  * libvirt.c: Ruby bindings for libvirt
3
3
  *
4
4
  * Copyright (C) 2007,2010 Red Hat Inc.
5
- * Copyright (C) 2013 Chris Lalancette <clalancette@gmail.com>
5
+ * Copyright (C) 2013-2016 Chris Lalancette <clalancette@gmail.com>
6
6
  *
7
7
  * This library is free software; you can redistribute it and/or
8
8
  * modify it under the terms of the GNU Lesser General Public
@@ -60,7 +60,7 @@ static void rubyLibvirtErrorFunc(void *RUBY_LIBVIRT_UNUSED(userdata),
60
60
  * call-seq:
61
61
  * Libvirt::version(type=nil) -> [ libvirt_version, type_version ]
62
62
  *
63
- * Call virGetVersion[http://www.libvirt.org/html/libvirt-libvirt.html#virGetVersion]
63
+ * Call virGetVersion[http://www.libvirt.org/html/libvirt-libvirt-host.html#virGetVersion]
64
64
  * to get the version of libvirt and of the hypervisor TYPE.
65
65
  */
66
66
  static VALUE libvirt_version(int argc, VALUE *argv,
@@ -90,7 +90,7 @@ static VALUE libvirt_version(int argc, VALUE *argv,
90
90
  * call-seq:
91
91
  * Libvirt::open(uri=nil) -> Libvirt::Connect
92
92
  *
93
- * Call virConnectOpen[http://www.libvirt.org/html/libvirt-libvirt.html#virConnectOpen]
93
+ * Call virConnectOpen[http://www.libvirt.org/html/libvirt-libvirt-host.html#virConnectOpen]
94
94
  * to open a connection to a URL.
95
95
  */
96
96
  static VALUE libvirt_open(int argc, VALUE *argv, VALUE RUBY_LIBVIRT_UNUSED(m))
@@ -111,7 +111,7 @@ static VALUE libvirt_open(int argc, VALUE *argv, VALUE RUBY_LIBVIRT_UNUSED(m))
111
111
  * call-seq:
112
112
  * Libvirt::open_read_only(uri=nil) -> Libvirt::Connect
113
113
  *
114
- * Call virConnectOpenReadOnly[http://www.libvirt.org/html/libvirt-libvirt.html#virConnectOpenReadOnly]
114
+ * Call virConnectOpenReadOnly[http://www.libvirt.org/html/libvirt-libvirt-host.html#virConnectOpenReadOnly]
115
115
  * to open a read-only connection to a URL.
116
116
  */
117
117
  static VALUE libvirt_open_read_only(int argc, VALUE *argv,
@@ -184,7 +184,7 @@ static int libvirt_auth_callback_wrapper(virConnectCredentialPtr cred,
184
184
  * call-seq:
185
185
  * Libvirt::open_auth(uri=nil, credlist=nil, userdata=nil, flags=0) {|...| authentication block} -> Libvirt::Connect
186
186
  *
187
- * Call virConnectOpenAuth[http://www.libvirt.org/html/libvirt-libvirt.html#virConnectOpenAuth]
187
+ * Call virConnectOpenAuth[http://www.libvirt.org/html/libvirt-libvirt-host.html#virConnectOpenAuth]
188
188
  * to open a connection to a libvirt URI, with a possible authentication block.
189
189
  * If an authentication block is desired, then credlist should be an array that
190
190
  * specifies which credentials the authentication block is willing to support;
@@ -575,7 +575,7 @@ static int is_symbol_proc_or_nil(VALUE handle)
575
575
  * call-seq:
576
576
  * Libvirt::event_register_impl(add_handle=nil, update_handle=nil, remove_handle=nil, add_timeout=nil, update_timeout=nil, remove_timeout=nil) -> Qnil
577
577
  *
578
- * Call virEventRegisterImpl[http://www.libvirt.org/html/libvirt-libvirt.html#virEventRegisterImpl]
578
+ * Call virEventRegisterImpl[http://www.libvirt.org/html/libvirt-libvirt-event.html#virEventRegisterImpl]
579
579
  * to register callback handlers for handles and timeouts. These handles and
580
580
  * timeouts are used as part of the libvirt infrastructure for generating
581
581
  * domain events. Each callback must be a Symbol (that is the name of a
@@ -652,7 +652,7 @@ static VALUE libvirt_conn_event_register_impl(int argc, VALUE *argv,
652
652
  * call-seq:
653
653
  * Libvirt::lxc_enter_security_label(model, label, flags=0) -> Libvirt::Domain::SecurityLabel
654
654
  *
655
- * Call virDomainLxcEnterSecurityLabel[http://www.libvirt.org/html/libvirt-libvirt.html#virDomainLxcEnterSecurityLabel]
655
+ * Call virDomainLxcEnterSecurityLabel
656
656
  * to attach to the security label specified by label in the security model
657
657
  * specified by model. The return object is a Libvirt::Domain::SecurityLabel
658
658
  * which may be able to be used to move back to the previous label.
@@ -2,7 +2,7 @@
2
2
  * common.c: Common utilities for the ruby libvirt bindings
3
3
  *
4
4
  * Copyright (C) 2007,2010 Red Hat Inc.
5
- * Copyright (C) 2013,2014 Chris Lalancette <clalancette@gmail.com>
5
+ * Copyright (C) 2013-2016 Chris Lalancette <clalancette@gmail.com>
6
6
  *
7
7
  * This library is free software; you can redistribute it and/or
8
8
  * modify it under the terms of the GNU Lesser General Public
@@ -2,7 +2,7 @@
2
2
  * connect.c: virConnect methods
3
3
  *
4
4
  * Copyright (C) 2007,2010 Red Hat Inc.
5
- * Copyright (C) 2013,2014 Chris Lalancette <clalancette@gmail.com>
5
+ * Copyright (C) 2013-2016 Chris Lalancette <clalancette@gmail.com>
6
6
  *
7
7
  * This library is free software; you can redistribute it and/or
8
8
  * modify it under the terms of the GNU Lesser General Public
@@ -112,7 +112,7 @@ virConnectPtr ruby_libvirt_connect_get(VALUE c)
112
112
  * call-seq:
113
113
  * conn.close -> nil
114
114
  *
115
- * Call virConnectClose[http://www.libvirt.org/html/libvirt-libvirt.html#virConnectClose]
115
+ * Call virConnectClose[http://www.libvirt.org/html/libvirt-libvirt-host.html#virConnectClose]
116
116
  * to close the connection.
117
117
  */
118
118
  static VALUE libvirt_connect_close(VALUE c)
@@ -145,7 +145,7 @@ static VALUE libvirt_connect_closed_p(VALUE c)
145
145
  * call-seq:
146
146
  * conn.type -> String
147
147
  *
148
- * Call virConnectGetType[http://www.libvirt.org/html/libvirt-libvirt.html#virConnectGetType]
148
+ * Call virConnectGetType[http://www.libvirt.org/html/libvirt-libvirt-host.html#virConnectGetType]
149
149
  * to retrieve the type of hypervisor for this connection.
150
150
  */
151
151
  static VALUE libvirt_connect_type(VALUE c)
@@ -159,7 +159,7 @@ static VALUE libvirt_connect_type(VALUE c)
159
159
  * call-seq:
160
160
  * conn.version -> Fixnum
161
161
  *
162
- * Call virConnectGetVersion[http://www.libvirt.org/html/libvirt-libvirt.html#virConnectGetVersion]
162
+ * Call virConnectGetVersion[http://www.libvirt.org/html/libvirt-libvirt-host.html#virConnectGetVersion]
163
163
  * to retrieve the version of the hypervisor for this connection.
164
164
  */
165
165
  static VALUE libvirt_connect_version(VALUE c)
@@ -179,7 +179,7 @@ static VALUE libvirt_connect_version(VALUE c)
179
179
  * call-seq:
180
180
  * conn.libversion -> Fixnum
181
181
  *
182
- * Call virConnectGetLibVersion[http://www.libvirt.org/html/libvirt-libvirt.html#virConnectGetLibVersion]
182
+ * Call virConnectGetLibVersion[http://www.libvirt.org/html/libvirt-libvirt-host.html#virConnectGetLibVersion]
183
183
  * to retrieve the version of the libvirt library for this connection.
184
184
  */
185
185
  static VALUE libvirt_connect_libversion(VALUE c)
@@ -200,7 +200,7 @@ static VALUE libvirt_connect_libversion(VALUE c)
200
200
  * call-seq:
201
201
  * conn.hostname -> String
202
202
  *
203
- * Call virConnectGetHostname[http://www.libvirt.org/html/libvirt-libvirt.html#virConnectGetHostname]
203
+ * Call virConnectGetHostname[http://www.libvirt.org/html/libvirt-libvirt-host.html#virConnectGetHostname]
204
204
  * to retrieve the hostname of the hypervisor for this connection.
205
205
  */
206
206
  static VALUE libvirt_connect_hostname(VALUE c)
@@ -214,7 +214,7 @@ static VALUE libvirt_connect_hostname(VALUE c)
214
214
  * call-seq:
215
215
  * conn.uri -> String
216
216
  *
217
- * Call virConnectGetURI[http://www.libvirt.org/html/libvirt-libvirt.html#virConnectGetURI]
217
+ * Call virConnectGetURI[http://www.libvirt.org/html/libvirt-libvirt-host.html#virConnectGetURI]
218
218
  * to retrieve the canonical URI for this connection.
219
219
  */
220
220
  static VALUE libvirt_connect_uri(VALUE c)
@@ -228,7 +228,7 @@ static VALUE libvirt_connect_uri(VALUE c)
228
228
  * call-seq:
229
229
  * conn.max_vcpus(type=nil) -> Fixnum
230
230
  *
231
- * Call virConnectGetMaxVcpus[http://www.libvirt.org/html/libvirt-libvirt.html#virConnectGetMaxVcpus]
231
+ * Call virConnectGetMaxVcpus[http://www.libvirt.org/html/libvirt-libvirt-host.html#virConnectGetMaxVcpus]
232
232
  * to retrieve the maximum number of virtual cpus supported by the hypervisor
233
233
  * for this connection.
234
234
  */
@@ -248,7 +248,7 @@ static VALUE libvirt_connect_max_vcpus(int argc, VALUE *argv, VALUE c)
248
248
  * call-seq:
249
249
  * conn.node_info -> Libvirt::Connect::Nodeinfo
250
250
  *
251
- * Call virNodeGetInfo[http://www.libvirt.org/html/libvirt-libvirt.html#virNodeGetInfo]
251
+ * Call virNodeGetInfo[http://www.libvirt.org/html/libvirt-libvirt-host.html#virNodeGetInfo]
252
252
  * to retrieve information about the node for this connection.
253
253
  */
254
254
  static VALUE libvirt_connect_node_info(VALUE c)
@@ -278,7 +278,7 @@ static VALUE libvirt_connect_node_info(VALUE c)
278
278
  * call-seq:
279
279
  * conn.node_free_memory -> Fixnum
280
280
  *
281
- * Call virNodeGetFreeMemory[http://www.libvirt.org/html/libvirt-libvirt.html#virNodeGetFreeMemory]
281
+ * Call virNodeGetFreeMemory[http://www.libvirt.org/html/libvirt-libvirt-host.html#virNodeGetFreeMemory]
282
282
  * to retrieve the amount of free memory available on the host for this
283
283
  * connection.
284
284
  */
@@ -299,7 +299,7 @@ static VALUE libvirt_connect_node_free_memory(VALUE c)
299
299
  * call-seq:
300
300
  * conn.node_cells_free_memory(startCell=0, maxCells=#nodeCells) -> list
301
301
  *
302
- * Call virNodeGetCellsFreeMemory[http://www.libvirt.org/html/libvirt-libvirt.html#virNodeGetCellsFreeMemory]
302
+ * Call virNodeGetCellsFreeMemory[http://www.libvirt.org/html/libvirt-libvirt-host.html#virNodeGetCellsFreeMemory]
303
303
  * to retrieve the amount of free memory in each NUMA cell on the host for
304
304
  * this connection.
305
305
  */
@@ -352,7 +352,7 @@ static VALUE libvirt_connect_node_cells_free_memory(int argc, VALUE *argv,
352
352
  * call-seq:
353
353
  * conn.node_security_model -> Libvirt::Connect::NodeSecurityModel
354
354
  *
355
- * Call virNodeGetSecurityModel[http://www.libvirt.org/html/libvirt-libvirt.html#virNodeGetSecurityModel]
355
+ * Call virNodeGetSecurityModel[http://www.libvirt.org/html/libvirt-libvirt-host.html#virNodeGetSecurityModel]
356
356
  * to retrieve the security model in use on the host for this connection.
357
357
  */
358
358
  static VALUE libvirt_connect_node_security_model(VALUE c)
@@ -379,7 +379,7 @@ static VALUE libvirt_connect_node_security_model(VALUE c)
379
379
  * call-seq:
380
380
  * conn.encrypted? -> [True|False]
381
381
  *
382
- * Call virConnectIsEncrypted[http://www.libvirt.org/html/libvirt-libvirt.html#virConnectIsEncrypted]
382
+ * Call virConnectIsEncrypted[http://www.libvirt.org/html/libvirt-libvirt-host.html#virConnectIsEncrypted]
383
383
  * to determine if the connection is encrypted.
384
384
  */
385
385
  static VALUE libvirt_connect_encrypted_p(VALUE c)
@@ -395,7 +395,7 @@ static VALUE libvirt_connect_encrypted_p(VALUE c)
395
395
  * call-seq:
396
396
  * conn.secure? -> [True|False]
397
397
  *
398
- * Call virConnectIsSecure[http://www.libvirt.org/html/libvirt-libvirt.html#virConnectIsSecure]
398
+ * Call virConnectIsSecure[http://www.libvirt.org/html/libvirt-libvirt-host.html#virConnectIsSecure]
399
399
  * to determine if the connection is secure.
400
400
  */
401
401
  static VALUE libvirt_connect_secure_p(VALUE c)
@@ -410,7 +410,7 @@ static VALUE libvirt_connect_secure_p(VALUE c)
410
410
  * call-seq:
411
411
  * conn.capabilities -> String
412
412
  *
413
- * Call virConnectGetCapabilities[http://www.libvirt.org/html/libvirt-libvirt.html#virConnectGetCapabilities]
413
+ * Call virConnectGetCapabilities[http://www.libvirt.org/html/libvirt-libvirt-host.html#virConnectGetCapabilities]
414
414
  * to retrieve the capabilities XML for this connection.
415
415
  */
416
416
  static VALUE libvirt_connect_capabilities(VALUE c)
@@ -425,7 +425,7 @@ static VALUE libvirt_connect_capabilities(VALUE c)
425
425
  * call-seq:
426
426
  * conn.compare_cpu(xml, flags=0) -> compareflag
427
427
  *
428
- * Call virConnectCompareCPU[http://www.libvirt.org/html/libvirt-libvirt.html#virConnectCompareCPU]
428
+ * Call virConnectCompareCPU[http://www.libvirt.org/html/libvirt-libvirt-host.html#virConnectCompareCPU]
429
429
  * to compare the host CPU with the XML contained in xml. Returns one of
430
430
  * Libvirt::CPU_COMPARE_ERROR, Libvirt::CPU_COMPARE_INCOMPATIBLE,
431
431
  * Libvirt::CPU_COMPARE_IDENTICAL, or Libvirt::CPU_COMPARE_SUPERSET.
@@ -450,7 +450,7 @@ static VALUE libvirt_connect_compare_cpu(int argc, VALUE *argv, VALUE c)
450
450
  * call-seq:
451
451
  * conn.baseline_cpu([xml, xml2, ...], flags=0) -> XML
452
452
  *
453
- * Call virConnectBaselineCPU[http://www.libvirt.org/html/libvirt-libvirt.html#virConnectBaselineCPU]
453
+ * Call virConnectBaselineCPU[http://www.libvirt.org/html/libvirt-libvirt-host.html#virConnectBaselineCPU]
454
454
  * to compare the most feature-rich CPU which is compatible with all
455
455
  * given host CPUs.
456
456
  */
@@ -788,7 +788,7 @@ static int domain_event_graphics_callback(virConnectPtr conn, virDomainPtr dom,
788
788
  * call-seq:
789
789
  * conn.domain_event_register_any(eventID, callback, dom=nil, opaque=nil) -> Fixnum
790
790
  *
791
- * Call virConnectDomainEventRegisterAny[http://www.libvirt.org/html/libvirt-libvirt.html#virConnectDomainEventRegisterAny]
791
+ * Call virConnectDomainEventRegisterAny[http://www.libvirt.org/html/libvirt-libvirt-domain.html#virConnectDomainEventRegisterAny]
792
792
  * to register callback for eventID with libvirt. The eventID must be one of
793
793
  * the Libvirt::Connect::DOMAIN_EVENT_ID_* constants. The callback can either
794
794
  * be a Symbol (that is the name of a method to callback) or a Proc. Note that
@@ -873,7 +873,7 @@ static VALUE libvirt_connect_domain_event_register_any(int argc, VALUE *argv,
873
873
  * call-seq:
874
874
  * conn.domain_event_deregister_any(callbackID) -> nil
875
875
  *
876
- * Call virConnectDomainEventDeregisterAny[http://www.libvirt.org/html/libvirt-libvirt.html#virConnectDomainEventDeregisterAny]
876
+ * Call virConnectDomainEventDeregisterAny[http://www.libvirt.org/html/libvirt-libvirt-domain.html#virConnectDomainEventDeregisterAny]
877
877
  * to deregister a callback from libvirt. The callbackID must be a
878
878
  * libvirt-specific handle returned by domain_event_register_any.
879
879
  */
@@ -905,7 +905,7 @@ static int domain_event_callback(virConnectPtr conn,
905
905
  * call-seq:
906
906
  * conn.domain_event_register(callback, opaque=nil) -> nil
907
907
  *
908
- * Call virConnectDomainEventRegister[http://www.libvirt.org/html/libvirt-libvirt.html#virConnectDomainEventRegister]
908
+ * Call virConnectDomainEventRegister[http://www.libvirt.org/html/libvirt-libvirt-domain.html#virConnectDomainEventRegister]
909
909
  * to register callback for domain lifecycle events with libvirt. The
910
910
  * callback can either be a Symbol (that is the name of a method to callback)
911
911
  * or a Proc. The callback must accept 5 parameters: Libvirt::Connect,
@@ -941,7 +941,7 @@ static VALUE libvirt_connect_domain_event_register(int argc, VALUE *argv,
941
941
  * call-seq:
942
942
  * conn.domain_event_deregister(callback) -> nil
943
943
  *
944
- * Call virConnectDomainEventDeregister[http://www.libvirt.org/html/libvirt-libvirt.html#virConnectDomainEventDeregister]
944
+ * Call virConnectDomainEventDeregister[http://www.libvirt.org/html/libvirt-libvirt-domain.html#virConnectDomainEventDeregister]
945
945
  * to deregister the event callback from libvirt. This method is deprecated
946
946
  * in favor of domain_event_deregister_any (though they cannot be mixed; if
947
947
  * the callback was registered with domain_event_register, it must be
@@ -960,7 +960,7 @@ static VALUE libvirt_connect_domain_event_deregister(VALUE c)
960
960
  * call-seq:
961
961
  * conn.num_of_domains -> Fixnum
962
962
  *
963
- * Call virConnectNumOfDomains[http://www.libvirt.org/html/libvirt-libvirt.html#virConnectNumOfDomains]
963
+ * Call virConnectNumOfDomains[http://www.libvirt.org/html/libvirt-libvirt-domain.html#virConnectNumOfDomains]
964
964
  * to retrieve the number of active domains on this connection.
965
965
  */
966
966
  static VALUE libvirt_connect_num_of_domains(VALUE c)
@@ -972,7 +972,7 @@ static VALUE libvirt_connect_num_of_domains(VALUE c)
972
972
  * call-seq:
973
973
  * conn.list_domains -> list
974
974
  *
975
- * Call virConnectListDomains[http://www.libvirt.org/html/libvirt-libvirt.html#virConnectListDomains]
975
+ * Call virConnectListDomains[http://www.libvirt.org/html/libvirt-libvirt-domain.html#virConnectListDomains]
976
976
  * to retrieve a list of active domain IDs on this connection.
977
977
  */
978
978
  static VALUE libvirt_connect_list_domains(VALUE c)
@@ -1008,7 +1008,7 @@ static VALUE libvirt_connect_list_domains(VALUE c)
1008
1008
  * call-seq:
1009
1009
  * conn.num_of_defined_domains -> Fixnum
1010
1010
  *
1011
- * Call virConnectNumOfDefinedDomains[http://www.libvirt.org/html/libvirt-libvirt.html#virConnectNumOfDefinedDomains]
1011
+ * Call virConnectNumOfDefinedDomains[http://www.libvirt.org/html/libvirt-libvirt-domain.html#virConnectNumOfDefinedDomains]
1012
1012
  * to retrieve the number of inactive domains on this connection.
1013
1013
  */
1014
1014
  static VALUE libvirt_connect_num_of_defined_domains(VALUE c)
@@ -1020,7 +1020,7 @@ static VALUE libvirt_connect_num_of_defined_domains(VALUE c)
1020
1020
  * call-seq:
1021
1021
  * conn.list_defined_domains -> list
1022
1022
  *
1023
- * Call virConnectListDefinedDomains[http://www.libvirt.org/html/libvirt-libvirt.html#virConnectListDefinedDomains]
1023
+ * Call virConnectListDefinedDomains[http://www.libvirt.org/html/libvirt-libvirt-domain.html#virConnectListDefinedDomains]
1024
1024
  * to retrieve a list of inactive domain names on this connection.
1025
1025
  */
1026
1026
  static VALUE libvirt_connect_list_defined_domains(VALUE c)
@@ -1032,7 +1032,7 @@ static VALUE libvirt_connect_list_defined_domains(VALUE c)
1032
1032
  * call-seq:
1033
1033
  * conn.create_domain_linux(xml, flags=0) -> Libvirt::Domain
1034
1034
  *
1035
- * Call virDomainCreateLinux[http://www.libvirt.org/html/libvirt-libvirt.html#virDomainCreateLinux]
1035
+ * Call virDomainCreateLinux[http://www.libvirt.org/html/libvirt-libvirt-domain.html#virDomainCreateLinux]
1036
1036
  * to start a transient domain from the given XML. Deprecated; use
1037
1037
  * conn.create_domain_xml instead.
1038
1038
  */
@@ -1057,7 +1057,7 @@ static VALUE libvirt_connect_create_linux(int argc, VALUE *argv, VALUE c)
1057
1057
  * call-seq:
1058
1058
  * conn.create_domain_xml(xml, flags=0) -> Libvirt::Domain
1059
1059
  *
1060
- * Call virDomainCreateXML[http://www.libvirt.org/html/libvirt-libvirt.html#virDomainCreateXML]
1060
+ * Call virDomainCreateXML[http://www.libvirt.org/html/libvirt-libvirt-domain.html#virDomainCreateXML]
1061
1061
  * to start a transient domain from the given XML.
1062
1062
  */
1063
1063
  static VALUE libvirt_connect_create_domain_xml(int argc, VALUE *argv, VALUE c)
@@ -1080,7 +1080,7 @@ static VALUE libvirt_connect_create_domain_xml(int argc, VALUE *argv, VALUE c)
1080
1080
  * call-seq:
1081
1081
  * conn.lookup_domain_by_name(name) -> Libvirt::Domain
1082
1082
  *
1083
- * Call virDomainLookupByName[http://www.libvirt.org/html/libvirt-libvirt.html#virDomainLookupByName]
1083
+ * Call virDomainLookupByName[http://www.libvirt.org/html/libvirt-libvirt-domain.html#virDomainLookupByName]
1084
1084
  * to retrieve a domain object for name.
1085
1085
  */
1086
1086
  static VALUE libvirt_connect_lookup_domain_by_name(VALUE c, VALUE name)
@@ -1100,7 +1100,7 @@ static VALUE libvirt_connect_lookup_domain_by_name(VALUE c, VALUE name)
1100
1100
  * call-seq:
1101
1101
  * conn.lookup_domain_by_id(id) -> Libvirt::Domain
1102
1102
  *
1103
- * Call virDomainLookupByID[http://www.libvirt.org/html/libvirt-libvirt.html#virDomainLookupByID]
1103
+ * Call virDomainLookupByID[http://www.libvirt.org/html/libvirt-libvirt-domain.html#virDomainLookupByID]
1104
1104
  * to retrieve a domain object for id.
1105
1105
  */
1106
1106
  static VALUE libvirt_connect_lookup_domain_by_id(VALUE c, VALUE id)
@@ -1119,7 +1119,7 @@ static VALUE libvirt_connect_lookup_domain_by_id(VALUE c, VALUE id)
1119
1119
  * call-seq:
1120
1120
  * conn.lookup_domain_by_uuid(uuid) -> Libvirt::Domain
1121
1121
  *
1122
- * Call virDomainLookupByUUIDString[http://www.libvirt.org/html/libvirt-libvirt.html#virDomainLookupByUUIDString]
1122
+ * Call virDomainLookupByUUIDString[http://www.libvirt.org/html/libvirt-libvirt-domain.html#virDomainLookupByUUIDString]
1123
1123
  * to retrieve a domain object for uuid.
1124
1124
  */
1125
1125
  static VALUE libvirt_connect_lookup_domain_by_uuid(VALUE c, VALUE uuid)
@@ -1137,16 +1137,30 @@ static VALUE libvirt_connect_lookup_domain_by_uuid(VALUE c, VALUE uuid)
1137
1137
 
1138
1138
  /*
1139
1139
  * call-seq:
1140
- * conn.define_domain_xml(xml) -> Libvirt::Domain
1140
+ * conn.define_domain_xml(xml, flags=0) -> Libvirt::Domain
1141
1141
  *
1142
- * Call virDomainDefineXML[http://www.libvirt.org/html/libvirt-libvirt.html#virDomainDefineXML]
1142
+ * Call virDomainDefineXML[http://www.libvirt.org/html/libvirt-libvirt-domain.html#virDomainDefineXML]
1143
1143
  * to define a permanent domain on this connection.
1144
1144
  */
1145
- static VALUE libvirt_connect_define_domain_xml(VALUE c, VALUE xml)
1145
+ static VALUE libvirt_connect_define_domain_xml(int argc, VALUE *argv, VALUE c)
1146
1146
  {
1147
1147
  virDomainPtr dom;
1148
+ VALUE xml;
1149
+ VALUE flags;
1150
+
1151
+ rb_scan_args(argc, argv, "11", &xml, &flags);
1148
1152
 
1153
+ #if HAVE_VIRDOMAINDEFINEXMLFLAGS
1154
+ dom = virDomainDefineXMLFlags(ruby_libvirt_connect_get(c),
1155
+ StringValueCStr(xml),
1156
+ ruby_libvirt_value_to_uint(flags));
1157
+ #else
1158
+ if (ruby_libvirt_value_to_uint(flags) != 0) {
1159
+ rb_raise(e_NoSupportError, "Non-zero flags not supported");
1160
+ }
1149
1161
  dom = virDomainDefineXML(ruby_libvirt_connect_get(c), StringValueCStr(xml));
1162
+ #endif
1163
+
1150
1164
  ruby_libvirt_raise_error_if(dom == NULL, e_DefinitionError,
1151
1165
  "virDomainDefineXML",
1152
1166
  ruby_libvirt_connect_get(c));
@@ -1159,7 +1173,7 @@ static VALUE libvirt_connect_define_domain_xml(VALUE c, VALUE xml)
1159
1173
  * call-seq:
1160
1174
  * conn.domain_xml_from_native(nativeFormat, xml, flags=0) -> String
1161
1175
  *
1162
- * Call virConnectDomainXMLFromNative[http://www.libvirt.org/html/libvirt-libvirt.html#virConnectDomainXMLFromNative]
1176
+ * Call virConnectDomainXMLFromNative[http://www.libvirt.org/html/libvirt-libvirt-domain.html#virConnectDomainXMLFromNative]
1163
1177
  * to convert a native hypervisor domain representation to libvirt XML.
1164
1178
  */
1165
1179
  static VALUE libvirt_connect_domain_xml_from_native(int argc, VALUE *argv,
@@ -1183,7 +1197,7 @@ static VALUE libvirt_connect_domain_xml_from_native(int argc, VALUE *argv,
1183
1197
  * call-seq:
1184
1198
  * conn.domain_xml_to_native(nativeFormat, xml, flags=0) -> String
1185
1199
  *
1186
- * Call virConnectDomainXMLToNative[http://www.libvirt.org/html/libvirt-libvirt.html#virConnectDomainXMLToNative]
1200
+ * Call virConnectDomainXMLToNative[http://www.libvirt.org/html/libvirt-libvirt-domain.html#virConnectDomainXMLToNative]
1187
1201
  * to convert libvirt XML to a native domain hypervisor representation.
1188
1202
  */
1189
1203
  static VALUE libvirt_connect_domain_xml_to_native(int argc, VALUE *argv,
@@ -1207,7 +1221,7 @@ static VALUE libvirt_connect_domain_xml_to_native(int argc, VALUE *argv,
1207
1221
  * call-seq:
1208
1222
  * conn.num_of_interfaces -> Fixnum
1209
1223
  *
1210
- * Call virConnectNumOfInterfaces[http://www.libvirt.org/html/libvirt-libvirt.html#virConnectNumOfInterfaces]
1224
+ * Call virConnectNumOfInterfaces[http://www.libvirt.org/html/libvirt-libvirt-interface.html#virConnectNumOfInterfaces]
1211
1225
  * to retrieve the number of active interfaces on this connection.
1212
1226
  */
1213
1227
  static VALUE libvirt_connect_num_of_interfaces(VALUE c)
@@ -1219,7 +1233,7 @@ static VALUE libvirt_connect_num_of_interfaces(VALUE c)
1219
1233
  * call-seq:
1220
1234
  * conn.list_interfaces -> list
1221
1235
  *
1222
- * Call virConnectListInterfaces[http://www.libvirt.org/html/libvirt-libvirt.html#virConnectListInterfaces]
1236
+ * Call virConnectListInterfaces[http://www.libvirt.org/html/libvirt-libvirt-interface.html#virConnectListInterfaces]
1223
1237
  * to retrieve a list of active interface names on this connection.
1224
1238
  */
1225
1239
  static VALUE libvirt_connect_list_interfaces(VALUE c)
@@ -1231,7 +1245,7 @@ static VALUE libvirt_connect_list_interfaces(VALUE c)
1231
1245
  * call-seq:
1232
1246
  * conn.num_of_defined_interfaces -> Fixnum
1233
1247
  *
1234
- * Call virConnectNumOfDefinedInterfaces[http://www.libvirt.org/html/libvirt-libvirt.html#virConnectNumOfDefinedInterfaces]
1248
+ * Call virConnectNumOfDefinedInterfaces[http://www.libvirt.org/html/libvirt-libvirt-interface.html#virConnectNumOfDefinedInterfaces]
1235
1249
  * to retrieve the number of inactive interfaces on this connection.
1236
1250
  */
1237
1251
  static VALUE libvirt_connect_num_of_defined_interfaces(VALUE c)
@@ -1243,7 +1257,7 @@ static VALUE libvirt_connect_num_of_defined_interfaces(VALUE c)
1243
1257
  * call-seq:
1244
1258
  * conn.list_defined_interfaces -> list
1245
1259
  *
1246
- * Call virConnectListDefinedInterfaces[http://www.libvirt.org/html/libvirt-libvirt.html#virConnectListDefinedInterfaces]
1260
+ * Call virConnectListDefinedInterfaces[http://www.libvirt.org/html/libvirt-libvirt-interface.html#virConnectListDefinedInterfaces]
1247
1261
  * to retrieve a list of inactive interface names on this connection.
1248
1262
  */
1249
1263
  static VALUE libvirt_connect_list_defined_interfaces(VALUE c)
@@ -1255,7 +1269,7 @@ static VALUE libvirt_connect_list_defined_interfaces(VALUE c)
1255
1269
  * call-seq:
1256
1270
  * conn.lookup_interface_by_name(name) -> Libvirt::Interface
1257
1271
  *
1258
- * Call virInterfaceLookupByName[http://www.libvirt.org/html/libvirt-libvirt.html#virInterfaceLookupByName]
1272
+ * Call virInterfaceLookupByName[http://www.libvirt.org/html/libvirt-libvirt-interface.html#virInterfaceLookupByName]
1259
1273
  * to retrieve an interface object by name.
1260
1274
  */
1261
1275
  static VALUE libvirt_connect_lookup_interface_by_name(VALUE c, VALUE name)
@@ -1275,7 +1289,7 @@ static VALUE libvirt_connect_lookup_interface_by_name(VALUE c, VALUE name)
1275
1289
  * call-seq:
1276
1290
  * conn.lookup_interface_by_mac(mac) -> Libvirt::Interface
1277
1291
  *
1278
- * Call virInterfaceLookupByMACString[http://www.libvirt.org/html/libvirt-libvirt.html#virInterfaceLookupByMACString]
1292
+ * Call virInterfaceLookupByMACString[http://www.libvirt.org/html/libvirt-libvirt-interface.html#virInterfaceLookupByMACString]
1279
1293
  * to retrieve an interface object by MAC address.
1280
1294
  */
1281
1295
  static VALUE libvirt_connect_lookup_interface_by_mac(VALUE c, VALUE mac)
@@ -1295,7 +1309,7 @@ static VALUE libvirt_connect_lookup_interface_by_mac(VALUE c, VALUE mac)
1295
1309
  * call-seq:
1296
1310
  * conn.define_interface_xml(xml, flags=0) -> Libvirt::Interface
1297
1311
  *
1298
- * Call virInterfaceDefineXML[http://www.libvirt.org/html/libvirt-libvirt.html#virInterfaceDefineXML]
1312
+ * Call virInterfaceDefineXML[http://www.libvirt.org/html/libvirt-libvirt-interface.html#virInterfaceDefineXML]
1299
1313
  * to define a new interface from xml.
1300
1314
  */
1301
1315
  static VALUE libvirt_connect_define_interface_xml(int argc, VALUE *argv,
@@ -1321,7 +1335,7 @@ static VALUE libvirt_connect_define_interface_xml(int argc, VALUE *argv,
1321
1335
  * call-seq:
1322
1336
  * conn.num_of_networks -> Fixnum
1323
1337
  *
1324
- * Call virConnectNumOfNetworks[http://www.libvirt.org/html/libvirt-libvirt.html#virConnectNumOfNetworks]
1338
+ * Call virConnectNumOfNetworks[http://www.libvirt.org/html/libvirt-libvirt-network.html#virConnectNumOfNetworks]
1325
1339
  * to retrieve the number of active networks on this connection.
1326
1340
  */
1327
1341
  static VALUE libvirt_connect_num_of_networks(VALUE c)
@@ -1333,7 +1347,7 @@ static VALUE libvirt_connect_num_of_networks(VALUE c)
1333
1347
  * call-seq:
1334
1348
  * conn.list_networks -> list
1335
1349
  *
1336
- * Call virConnectListNetworks[http://www.libvirt.org/html/libvirt-libvirt.html#virConnectListNetworks]
1350
+ * Call virConnectListNetworks[http://www.libvirt.org/html/libvirt-libvirt-network.html#virConnectListNetworks]
1337
1351
  * to retrieve a list of active network names on this connection.
1338
1352
  */
1339
1353
  static VALUE libvirt_connect_list_networks(VALUE c)
@@ -1345,7 +1359,7 @@ static VALUE libvirt_connect_list_networks(VALUE c)
1345
1359
  * call-seq:
1346
1360
  * conn.num_of_defined_networks -> Fixnum
1347
1361
  *
1348
- * Call virConnectNumOfDefinedNetworks[http://www.libvirt.org/html/libvirt-libvirt.html#virConnectNumOfDefinedNetworks]
1362
+ * Call virConnectNumOfDefinedNetworks[http://www.libvirt.org/html/libvirt-libvirt-network.html#virConnectNumOfDefinedNetworks]
1349
1363
  * to retrieve the number of inactive networks on this connection.
1350
1364
  */
1351
1365
  static VALUE libvirt_connect_num_of_defined_networks(VALUE c)
@@ -1357,7 +1371,7 @@ static VALUE libvirt_connect_num_of_defined_networks(VALUE c)
1357
1371
  * call-seq:
1358
1372
  * conn.list_of_defined_networks -> list
1359
1373
  *
1360
- * Call virConnectListDefinedNetworks[http://www.libvirt.org/html/libvirt-libvirt.html#virConnectListDefinedNetworks]
1374
+ * Call virConnectListDefinedNetworks[http://www.libvirt.org/html/libvirt-libvirt-network.html#virConnectListDefinedNetworks]
1361
1375
  * to retrieve a list of inactive network names on this connection.
1362
1376
  */
1363
1377
  static VALUE libvirt_connect_list_defined_networks(VALUE c)
@@ -1369,7 +1383,7 @@ static VALUE libvirt_connect_list_defined_networks(VALUE c)
1369
1383
  * call-seq:
1370
1384
  * conn.lookup_network_by_name(name) -> Libvirt::Network
1371
1385
  *
1372
- * Call virNetworkLookupByName[http://www.libvirt.org/html/libvirt-libvirt.html#virNetworkLookupByName]
1386
+ * Call virNetworkLookupByName[http://www.libvirt.org/html/libvirt-libvirt-network.html#virNetworkLookupByName]
1373
1387
  * to retrieve a network object by name.
1374
1388
  */
1375
1389
  static VALUE libvirt_connect_lookup_network_by_name(VALUE c, VALUE name)
@@ -1389,7 +1403,7 @@ static VALUE libvirt_connect_lookup_network_by_name(VALUE c, VALUE name)
1389
1403
  * call-seq:
1390
1404
  * conn.lookup_network_by_uuid(uuid) -> Libvirt::Network
1391
1405
  *
1392
- * Call virNetworkLookupByUUIDString[http://www.libvirt.org/html/libvirt-libvirt.html#virNetworkLookupByUUIDString]
1406
+ * Call virNetworkLookupByUUIDString[http://www.libvirt.org/html/libvirt-libvirt-network.html#virNetworkLookupByUUIDString]
1393
1407
  * to retrieve a network object by UUID.
1394
1408
  */
1395
1409
  static VALUE libvirt_connect_lookup_network_by_uuid(VALUE c, VALUE uuid)
@@ -1409,7 +1423,7 @@ static VALUE libvirt_connect_lookup_network_by_uuid(VALUE c, VALUE uuid)
1409
1423
  * call-seq:
1410
1424
  * conn.create_network_xml(xml) -> Libvirt::Network
1411
1425
  *
1412
- * Call virNetworkCreateXML[http://www.libvirt.org/html/libvirt-libvirt.html#virNetworkCreateXML]
1426
+ * Call virNetworkCreateXML[http://www.libvirt.org/html/libvirt-libvirt-network.html#virNetworkCreateXML]
1413
1427
  * to start a new transient network from xml.
1414
1428
  */
1415
1429
  static VALUE libvirt_connect_create_network_xml(VALUE c, VALUE xml)
@@ -1428,7 +1442,7 @@ static VALUE libvirt_connect_create_network_xml(VALUE c, VALUE xml)
1428
1442
  * call-seq:
1429
1443
  * conn.define_network_xml(xml) -> Libvirt::Network
1430
1444
  *
1431
- * Call virNetworkDefineXML[http://www.libvirt.org/html/libvirt-libvirt.html#virNetworkDefineXML]
1445
+ * Call virNetworkDefineXML[http://www.libvirt.org/html/libvirt-libvirt-network.html#virNetworkDefineXML]
1432
1446
  * to define a new permanent network from xml.
1433
1447
  */
1434
1448
  static VALUE libvirt_connect_define_network_xml(VALUE c, VALUE xml)
@@ -1450,7 +1464,7 @@ static VALUE libvirt_connect_define_network_xml(VALUE c, VALUE xml)
1450
1464
  * call-seq:
1451
1465
  * conn.num_of_nodedevices(cap=nil, flags=0) -> Fixnum
1452
1466
  *
1453
- * Call virNodeNumOfDevices[http://www.libvirt.org/html/libvirt-libvirt.html#virNodeNumOfDevices]
1467
+ * Call virNodeNumOfDevices[http://www.libvirt.org/html/libvirt-libvirt-nodedev.html#virNodeNumOfDevices]
1454
1468
  * to retrieve the number of node devices on this connection.
1455
1469
  */
1456
1470
  static VALUE libvirt_connect_num_of_nodedevices(int argc, VALUE *argv, VALUE c)
@@ -1474,7 +1488,7 @@ static VALUE libvirt_connect_num_of_nodedevices(int argc, VALUE *argv, VALUE c)
1474
1488
  * call-seq:
1475
1489
  * conn.list_nodedevices(cap=nil, flags=0) -> list
1476
1490
  *
1477
- * Call virNodeListDevices[http://www.libvirt.org/html/libvirt-libvirt.html#virNodeListDevices]
1491
+ * Call virNodeListDevices[http://www.libvirt.org/html/libvirt-libvirt-nodedev.html#virNodeListDevices]
1478
1492
  * to retrieve a list of node device names on this connection.
1479
1493
  */
1480
1494
  static VALUE libvirt_connect_list_nodedevices(int argc, VALUE *argv, VALUE c)
@@ -1515,7 +1529,7 @@ static VALUE libvirt_connect_list_nodedevices(int argc, VALUE *argv, VALUE c)
1515
1529
  * call-seq:
1516
1530
  * conn.lookup_nodedevice_by_name(name) -> Libvirt::NodeDevice
1517
1531
  *
1518
- * Call virNodeDeviceLookupByName[http://www.libvirt.org/html/libvirt-libvirt.html#virNodeDeviceLookupByName]
1532
+ * Call virNodeDeviceLookupByName[http://www.libvirt.org/html/libvirt-libvirt-nodedev.html#virNodeDeviceLookupByName]
1519
1533
  * to retrieve a nodedevice object by name.
1520
1534
  */
1521
1535
  static VALUE libvirt_connect_lookup_nodedevice_by_name(VALUE c, VALUE name)
@@ -1537,7 +1551,7 @@ static VALUE libvirt_connect_lookup_nodedevice_by_name(VALUE c, VALUE name)
1537
1551
  * call-seq:
1538
1552
  * conn.create_nodedevice_xml(xml, flags=0) -> Libvirt::NodeDevice
1539
1553
  *
1540
- * Call virNodeDeviceCreateXML[http://www.libvirt.org/html/libvirt-libvirt.html#virNodeDeviceCreateXML]
1554
+ * Call virNodeDeviceCreateXML[http://www.libvirt.org/html/libvirt-libvirt-nodedev.html#virNodeDeviceCreateXML]
1541
1555
  * to create a new node device from xml.
1542
1556
  */
1543
1557
  static VALUE libvirt_connect_create_nodedevice_xml(int argc, VALUE *argv,
@@ -1566,7 +1580,7 @@ static VALUE libvirt_connect_create_nodedevice_xml(int argc, VALUE *argv,
1566
1580
  * call-seq:
1567
1581
  * conn.num_of_nwfilters -> Fixnum
1568
1582
  *
1569
- * Call virConnectNumOfNWFilters[http://www.libvirt.org/html/libvirt-libvirt.html#virConnectNumOfNWFilters]
1583
+ * Call virConnectNumOfNWFilters[http://www.libvirt.org/html/libvirt-libvirt-nwfilter.html#virConnectNumOfNWFilters]
1570
1584
  * to retrieve the number of network filters on this connection.
1571
1585
  */
1572
1586
  static VALUE libvirt_connect_num_of_nwfilters(VALUE c)
@@ -1578,7 +1592,7 @@ static VALUE libvirt_connect_num_of_nwfilters(VALUE c)
1578
1592
  * call-seq:
1579
1593
  * conn.list_nwfilters -> list
1580
1594
  *
1581
- * Call virConnectListNWFilters[http://www.libvirt.org/html/libvirt-libvirt.html#virConnectListNWFilters]
1595
+ * Call virConnectListNWFilters[http://www.libvirt.org/html/libvirt-libvirt-nwfilter.html#virConnectListNWFilters]
1582
1596
  * to retrieve a list of network filter names on this connection.
1583
1597
  */
1584
1598
  static VALUE libvirt_connect_list_nwfilters(VALUE c)
@@ -1590,7 +1604,7 @@ static VALUE libvirt_connect_list_nwfilters(VALUE c)
1590
1604
  * call-seq:
1591
1605
  * conn.lookup_nwfilter_by_name(name) -> Libvirt::NWFilter
1592
1606
  *
1593
- * Call virNWFilterLookupByName[http://www.libvirt.org/html/libvirt-libvirt.html#virNWFilterLookupByName]
1607
+ * Call virNWFilterLookupByName[http://www.libvirt.org/html/libvirt-libvirt-nwfilter.html#virNWFilterLookupByName]
1594
1608
  * to retrieve a network filter object by name.
1595
1609
  */
1596
1610
  static VALUE libvirt_connect_lookup_nwfilter_by_name(VALUE c, VALUE name)
@@ -1610,7 +1624,7 @@ static VALUE libvirt_connect_lookup_nwfilter_by_name(VALUE c, VALUE name)
1610
1624
  * call-seq:
1611
1625
  * conn.lookup_nwfilter_by_uuid(uuid) -> Libvirt::NWFilter
1612
1626
  *
1613
- * Call virNWFilterLookupByUUIDString[http://www.libvirt.org/html/libvirt-libvirt.html#virNWFilterLookupByUUIDString]
1627
+ * Call virNWFilterLookupByUUIDString[http://www.libvirt.org/html/libvirt-libvirt-nwfilter.html#virNWFilterLookupByUUIDString]
1614
1628
  * to retrieve a network filter object by UUID.
1615
1629
  */
1616
1630
  static VALUE libvirt_connect_lookup_nwfilter_by_uuid(VALUE c, VALUE uuid)
@@ -1630,7 +1644,7 @@ static VALUE libvirt_connect_lookup_nwfilter_by_uuid(VALUE c, VALUE uuid)
1630
1644
  * call-seq:
1631
1645
  * conn.define_nwfilter_xml(xml) -> Libvirt::NWFilter
1632
1646
  *
1633
- * Call virNWFilterDefineXML[http://www.libvirt.org/html/libvirt-libvirt.html#virNWFilterDefineXML]
1647
+ * Call virNWFilterDefineXML[http://www.libvirt.org/html/libvirt-libvirt-nwfilter.html#virNWFilterDefineXML]
1634
1648
  * to define a new network filter from xml.
1635
1649
  */
1636
1650
  static VALUE libvirt_connect_define_nwfilter_xml(VALUE c, VALUE xml)
@@ -1653,7 +1667,7 @@ static VALUE libvirt_connect_define_nwfilter_xml(VALUE c, VALUE xml)
1653
1667
  * call-seq:
1654
1668
  * conn.num_of_secrets -> Fixnum
1655
1669
  *
1656
- * Call virConnectNumOfSecrets[http://www.libvirt.org/html/libvirt-libvirt.html#virConnectNumOfSecrets]
1670
+ * Call virConnectNumOfSecrets[http://www.libvirt.org/html/libvirt-libvirt-secret.html#virConnectNumOfSecrets]
1657
1671
  * to retrieve the number of secrets on this connection.
1658
1672
  */
1659
1673
  static VALUE libvirt_connect_num_of_secrets(VALUE c)
@@ -1665,7 +1679,7 @@ static VALUE libvirt_connect_num_of_secrets(VALUE c)
1665
1679
  * call-seq:
1666
1680
  * conn.list_secrets -> list
1667
1681
  *
1668
- * Call virConnectListSecrets[http://www.libvirt.org/html/libvirt-libvirt.html#virConnectListSecrets]
1682
+ * Call virConnectListSecrets[http://www.libvirt.org/html/libvirt-libvirt-secret.html#virConnectListSecrets]
1669
1683
  * to retrieve a list of secret UUIDs on this connection.
1670
1684
  */
1671
1685
  static VALUE libvirt_connect_list_secrets(VALUE c)
@@ -1677,7 +1691,7 @@ static VALUE libvirt_connect_list_secrets(VALUE c)
1677
1691
  * call-seq:
1678
1692
  * conn.lookup_secret_by_uuid(uuid) -> Libvirt::Secret
1679
1693
  *
1680
- * Call virSecretLookupByUUID[http://www.libvirt.org/html/libvirt-libvirt.html#virSecretLookupByUUID]
1694
+ * Call virSecretLookupByUUID[http://www.libvirt.org/html/libvirt-libvirt-secret.html#virSecretLookupByUUID]
1681
1695
  * to retrieve a network object from uuid.
1682
1696
  */
1683
1697
  static VALUE libvirt_connect_lookup_secret_by_uuid(VALUE c, VALUE uuid)
@@ -1697,7 +1711,7 @@ static VALUE libvirt_connect_lookup_secret_by_uuid(VALUE c, VALUE uuid)
1697
1711
  * call-seq:
1698
1712
  * conn.lookup_secret_by_usage(usagetype, usageID) -> Libvirt::Secret
1699
1713
  *
1700
- * Call virSecretLookupByUsage[http://www.libvirt.org/html/libvirt-libvirt.html#virSecretLookupByUsage]
1714
+ * Call virSecretLookupByUsage[http://www.libvirt.org/html/libvirt-libvirt-secret.html#virSecretLookupByUsage]
1701
1715
  * to retrieve a secret by usagetype.
1702
1716
  */
1703
1717
  static VALUE libvirt_connect_lookup_secret_by_usage(VALUE c, VALUE usagetype,
@@ -1719,7 +1733,7 @@ static VALUE libvirt_connect_lookup_secret_by_usage(VALUE c, VALUE usagetype,
1719
1733
  * call-seq:
1720
1734
  * conn.define_secret_xml(xml, flags=0) -> Libvirt::Secret
1721
1735
  *
1722
- * Call virSecretDefineXML[http://www.libvirt.org/html/libvirt-libvirt.html#virSecretDefineXML]
1736
+ * Call virSecretDefineXML[http://www.libvirt.org/html/libvirt-libvirt-secret.html#virSecretDefineXML]
1723
1737
  * to define a new secret from xml.
1724
1738
  */
1725
1739
  static VALUE libvirt_connect_define_secret_xml(int argc, VALUE *argv, VALUE c)
@@ -1748,7 +1762,7 @@ VALUE pool_new(virStoragePoolPtr n, VALUE conn);
1748
1762
  * call-seq:
1749
1763
  * conn.list_storage_pools -> list
1750
1764
  *
1751
- * Call virConnectListStoragePools[http://www.libvirt.org/html/libvirt-libvirt.html#virConnectListStoragePools]
1765
+ * Call virConnectListStoragePools[http://www.libvirt.org/html/libvirt-libvirt-storage.html#virConnectListStoragePools]
1752
1766
  * to retrieve a list of active storage pool names on this connection.
1753
1767
  */
1754
1768
  static VALUE libvirt_connect_list_storage_pools(VALUE c)
@@ -1760,7 +1774,7 @@ static VALUE libvirt_connect_list_storage_pools(VALUE c)
1760
1774
  * call-seq:
1761
1775
  * conn.num_of_storage_pools -> Fixnum
1762
1776
  *
1763
- * Call virConnectNumOfStoragePools[http://www.libvirt.org/html/libvirt-libvirt.html#virConnectNumOfStoragePools]
1777
+ * Call virConnectNumOfStoragePools[http://www.libvirt.org/html/libvirt-libvirt-storage.html#virConnectNumOfStoragePools]
1764
1778
  * to retrieve the number of active storage pools on this connection.
1765
1779
  */
1766
1780
  static VALUE libvirt_connect_num_of_storage_pools(VALUE c)
@@ -1772,7 +1786,7 @@ static VALUE libvirt_connect_num_of_storage_pools(VALUE c)
1772
1786
  * call-seq:
1773
1787
  * conn.list_defined_storage_pools -> list
1774
1788
  *
1775
- * Call virConnectListDefinedStoragePools[http://www.libvirt.org/html/libvirt-libvirt.html#virConnectListDefinedStoragePools]
1789
+ * Call virConnectListDefinedStoragePools[http://www.libvirt.org/html/libvirt-libvirt-storage.html#virConnectListDefinedStoragePools]
1776
1790
  * to retrieve a list of inactive storage pool names on this connection.
1777
1791
  */
1778
1792
  static VALUE libvirt_connect_list_defined_storage_pools(VALUE c)
@@ -1784,7 +1798,7 @@ static VALUE libvirt_connect_list_defined_storage_pools(VALUE c)
1784
1798
  * call-seq:
1785
1799
  * conn.num_of_defined_storage_pools -> Fixnum
1786
1800
  *
1787
- * Call virConnectNumOfDefinedStoragePools[http://www.libvirt.org/html/libvirt-libvirt.html#virConnectNumOfDefinedStoragePools]
1801
+ * Call virConnectNumOfDefinedStoragePools[http://www.libvirt.org/html/libvirt-libvirt-storage.html#virConnectNumOfDefinedStoragePools]
1788
1802
  * to retrieve the number of inactive storage pools on this connection.
1789
1803
  */
1790
1804
  static VALUE libvirt_connect_num_of_defined_storage_pools(VALUE c)
@@ -1796,7 +1810,7 @@ static VALUE libvirt_connect_num_of_defined_storage_pools(VALUE c)
1796
1810
  * call-seq:
1797
1811
  * conn.lookup_storage_pool_by_name(name) -> Libvirt::StoragePool
1798
1812
  *
1799
- * Call virStoragePoolLookupByName[http://www.libvirt.org/html/libvirt-libvirt.html#virStoragePoolLookupByName]
1813
+ * Call virStoragePoolLookupByName[http://www.libvirt.org/html/libvirt-libvirt-storage.html#virStoragePoolLookupByName]
1800
1814
  * to retrieve a storage pool object by name.
1801
1815
  */
1802
1816
  static VALUE libvirt_connect_lookup_pool_by_name(VALUE c, VALUE name)
@@ -1816,7 +1830,7 @@ static VALUE libvirt_connect_lookup_pool_by_name(VALUE c, VALUE name)
1816
1830
  * call-seq:
1817
1831
  * conn.lookup_storage_pool_by_uuid(uuid) -> Libvirt::StoragePool
1818
1832
  *
1819
- * Call virStoragePoolLookupByUUIDString[http://www.libvirt.org/html/libvirt-libvirt.html#virStoragePoolLookupByUUIDString]
1833
+ * Call virStoragePoolLookupByUUIDString[http://www.libvirt.org/html/libvirt-libvirt-storage.html#virStoragePoolLookupByUUIDString]
1820
1834
  * to retrieve a storage pool object by uuid.
1821
1835
  */
1822
1836
  static VALUE libvirt_connect_lookup_pool_by_uuid(VALUE c, VALUE uuid)
@@ -1836,7 +1850,7 @@ static VALUE libvirt_connect_lookup_pool_by_uuid(VALUE c, VALUE uuid)
1836
1850
  * call-seq:
1837
1851
  * conn.create_storage_pool_xml(xml, flags=0) -> Libvirt::StoragePool
1838
1852
  *
1839
- * Call virStoragePoolCreateXML[http://www.libvirt.org/html/libvirt-libvirt.html#virStoragePoolCreateXML]
1853
+ * Call virStoragePoolCreateXML[http://www.libvirt.org/html/libvirt-libvirt-storage.html#virStoragePoolCreateXML]
1840
1854
  * to start a new transient storage pool from xml.
1841
1855
  */
1842
1856
  static VALUE libvirt_connect_create_pool_xml(int argc, VALUE *argv, VALUE c)
@@ -1860,7 +1874,7 @@ static VALUE libvirt_connect_create_pool_xml(int argc, VALUE *argv, VALUE c)
1860
1874
  * call-seq:
1861
1875
  * conn.define_storage_pool_xml(xml, flags=0) -> Libvirt::StoragePool
1862
1876
  *
1863
- * Call virStoragePoolDefineXML[http://www.libvirt.org/html/libvirt-libvirt.html#virStoragePoolDefineXML]
1877
+ * Call virStoragePoolDefineXML[http://www.libvirt.org/html/libvirt-libvirt-storage.html#virStoragePoolDefineXML]
1864
1878
  * to define a permanent storage pool from xml.
1865
1879
  */
1866
1880
  static VALUE libvirt_connect_define_pool_xml(int argc, VALUE *argv, VALUE c)
@@ -1884,7 +1898,7 @@ static VALUE libvirt_connect_define_pool_xml(int argc, VALUE *argv, VALUE c)
1884
1898
  * call-seq:
1885
1899
  * conn.discover_storage_pool_sources(type, srcSpec=nil, flags=0) -> String
1886
1900
  *
1887
- * Call virConnectFindStoragePoolSources[http://www.libvirt.org/html/libvirt-libvirt.html#virConnectFindStoragePoolSources]
1901
+ * Call virConnectFindStoragePoolSources[http://www.libvirt.org/html/libvirt-libvirt-storage.html#virConnectFindStoragePoolSources]
1888
1902
  * to find the storage pool sources corresponding to type.
1889
1903
  */
1890
1904
  static VALUE libvirt_connect_find_storage_pool_sources(int argc, VALUE *argv,
@@ -1908,7 +1922,7 @@ static VALUE libvirt_connect_find_storage_pool_sources(int argc, VALUE *argv,
1908
1922
  * call-seq:
1909
1923
  * conn.sys_info(flags=0) -> String
1910
1924
  *
1911
- * Call virConnectGetSysinfo[http://www.libvirt.org/html/libvirt-libvirt.html#virConnectGetSysinfo]
1925
+ * Call virConnectGetSysinfo[http://www.libvirt.org/html/libvirt-libvirt-host.html#virConnectGetSysinfo]
1912
1926
  * to get machine-specific information about the hypervisor. This may include
1913
1927
  * data such as the host UUID, the BIOS version, etc.
1914
1928
  */
@@ -1931,7 +1945,7 @@ static VALUE libvirt_connect_sys_info(int argc, VALUE *argv, VALUE c)
1931
1945
  * call-seq:
1932
1946
  * conn.stream(flags=0) -> Libvirt::Stream
1933
1947
  *
1934
- * Call virStreamNew[http://www.libvirt.org/html/libvirt-libvirt.html#virStreamNew]
1948
+ * Call virStreamNew[http://www.libvirt.org/html/libvirt-libvirt-stream.html#virStreamNew]
1935
1949
  * to create a new stream.
1936
1950
  */
1937
1951
  static VALUE libvirt_connect_stream(int argc, VALUE *argv, VALUE c)
@@ -1956,7 +1970,7 @@ static VALUE libvirt_connect_stream(int argc, VALUE *argv, VALUE c)
1956
1970
  * call-seq:
1957
1971
  * conn.interface_change_begin(flags=0) -> nil
1958
1972
  *
1959
- * Call virInterfaceChangeBegin[http://www.libvirt.org/html/libvirt-libvirt.html#virInterfaceChangeBegin]
1973
+ * Call virInterfaceChangeBegin[http://www.libvirt.org/html/libvirt-libvirt-interface.html#virInterfaceChangeBegin]
1960
1974
  * to create a restore point for interface changes. Once changes have been
1961
1975
  * made, conn.interface_change_commit can be used to commit the result or
1962
1976
  * conn.interface_change_rollback can be used to rollback to this restore point.
@@ -1978,7 +1992,7 @@ static VALUE libvirt_connect_interface_change_begin(int argc, VALUE *argv,
1978
1992
  * call-seq:
1979
1993
  * conn.interface_change_commit(flags=0) -> nil
1980
1994
  *
1981
- * Call virInterfaceChangeCommit[http://www.libvirt.org/html/libvirt-libvirt.html#virInterfaceChangeCommit]
1995
+ * Call virInterfaceChangeCommit[http://www.libvirt.org/html/libvirt-libvirt-interface.html#virInterfaceChangeCommit]
1982
1996
  * to commit the interface changes since the last conn.interface_change_begin.
1983
1997
  */
1984
1998
  static VALUE libvirt_connect_interface_change_commit(int argc, VALUE *argv,
@@ -1998,7 +2012,7 @@ static VALUE libvirt_connect_interface_change_commit(int argc, VALUE *argv,
1998
2012
  * call-seq:
1999
2013
  * conn.interface_change_rollback(flags=0) -> nil
2000
2014
  *
2001
- * Call virInterfaceChangeRollback[http://www.libvirt.org/html/libvirt-libvirt.html#virInterfaceChangeRollback]
2015
+ * Call virInterfaceChangeRollback[http://www.libvirt.org/html/libvirt-libvirt-interface.html#virInterfaceChangeRollback]
2002
2016
  * to rollback to the restore point saved by conn.interface_change_begin.
2003
2017
  */
2004
2018
  static VALUE libvirt_connect_interface_change_rollback(int argc, VALUE *argv,
@@ -2055,7 +2069,7 @@ static const char *cpu_stats_get(VALUE d, unsigned int flags, void *voidparams,
2055
2069
  * call-seq:
2056
2070
  * conn.node_cpu_stats(cpuNum=-1, flags=0) -> Hash
2057
2071
  *
2058
- * Call virNodeGetCPUStats[http://www.libvirt.org/html/libvirt-libvirt.html#virNodeGetCPUStats]
2072
+ * Call virNodeGetCPUStats[http://www.libvirt.org/html/libvirt-libvirt-host.html#virNodeGetCPUStats]
2059
2073
  * to retrieve cpu statistics from the virtualization host.
2060
2074
  */
2061
2075
  static VALUE libvirt_connect_node_cpu_stats(int argc, VALUE *argv, VALUE c)
@@ -2115,7 +2129,7 @@ static const char *memory_stats_get(VALUE d, unsigned int flags,
2115
2129
  * call-seq:
2116
2130
  * conn.node_memory_stats(cellNum=-1, flags=0) -> Hash
2117
2131
  *
2118
- * Call virNodeGetMemoryStats[http://www.libvirt.org/html/libvirt-libvirt.html#virNodeGetMemoryStats]
2132
+ * Call virNodeGetMemoryStats[http://www.libvirt.org/html/libvirt-libvirt-host.html#virNodeGetMemoryStats]
2119
2133
  * to retrieve memory statistics from the virtualization host.
2120
2134
  */
2121
2135
  static VALUE libvirt_connect_node_memory_stats(int argc, VALUE *argv, VALUE c)
@@ -2139,7 +2153,7 @@ static VALUE libvirt_connect_node_memory_stats(int argc, VALUE *argv, VALUE c)
2139
2153
  * call-seq:
2140
2154
  * conn.save_image_xml_desc(filename, flags=0) -> String
2141
2155
  *
2142
- * Call virDomainSaveImageGetXMLDesc[http://www.libvirt.org/html/libvirt-libvirt.html#virDomainSaveImageGetXMLDesc]
2156
+ * Call virDomainSaveImageGetXMLDesc[http://www.libvirt.org/html/libvirt-libvirt-domain.html#virDomainSaveImageGetXMLDesc]
2143
2157
  * to get the XML corresponding to a save file.
2144
2158
  */
2145
2159
  static VALUE libvirt_connect_save_image_xml_desc(int argc, VALUE *argv, VALUE c)
@@ -2159,7 +2173,7 @@ static VALUE libvirt_connect_save_image_xml_desc(int argc, VALUE *argv, VALUE c)
2159
2173
  * call-seq:
2160
2174
  * conn.define_save_image_xml(filename, newxml, flags=0) -> nil
2161
2175
  *
2162
- * Call virDomainSaveImageDefineXML[http://www.libvirt.org/html/libvirt-libvirt.html#virDomainSaveImageDefineXML]
2176
+ * Call virDomainSaveImageDefineXML[http://www.libvirt.org/html/libvirt-libvirt-domain.html#virDomainSaveImageDefineXML]
2163
2177
  * to define new XML for a saved image.
2164
2178
  */
2165
2179
  static VALUE libvirt_connect_define_save_image_xml(int argc, VALUE *argv,
@@ -2183,7 +2197,7 @@ static VALUE libvirt_connect_define_save_image_xml(int argc, VALUE *argv,
2183
2197
  * call-seq:
2184
2198
  * conn.node_suspend_for_duration(target, duration, flags=0) -> nil
2185
2199
  *
2186
- * Call virNodeSuspendForDuration[http://www.libvirt.org/html/libvirt-libvirt.html#virNodeSuspendForDuration]
2200
+ * Call virNodeSuspendForDuration[http://www.libvirt.org/html/libvirt-libvirt-host.html#virNodeSuspendForDuration]
2187
2201
  * to suspend the hypervisor for the specified duration.
2188
2202
  */
2189
2203
  static VALUE libvirt_connect_node_suspend_for_duration(int argc, VALUE *argv,
@@ -2242,7 +2256,7 @@ static const char *node_memory_set(VALUE d, unsigned int flags,
2242
2256
  * call-seq:
2243
2257
  * conn.node_memory_parameters(flags=0) -> Hash
2244
2258
  *
2245
- * Call virNodeGetMemoryParameters[http://www.libvirt.org/html/libvirt-libvirt.html#virNodeGetMemoryParameters]
2259
+ * Call virNodeGetMemoryParameters[http://www.libvirt.org/html/libvirt-libvirt-host.html#virNodeGetMemoryParameters]
2246
2260
  * to get information about memory on the host node.
2247
2261
  */
2248
2262
  static VALUE libvirt_connect_node_memory_parameters(int argc, VALUE *argv,
@@ -2275,7 +2289,7 @@ static struct ruby_libvirt_typed_param memory_allowed[] = {
2275
2289
  * call-seq:
2276
2290
  * conn.node_memory_parameters = Hash,flags=0
2277
2291
  *
2278
- * Call virNodeSetMemoryParameters[http://www.libvirt.org/html/libvirt-libvirt.html#virNodeSetMemoryParameters]
2292
+ * Call virNodeSetMemoryParameters[http://www.libvirt.org/html/libvirt-libvirt-host.html#virNodeSetMemoryParameters]
2279
2293
  * to set the memory parameters for this host node.
2280
2294
  */
2281
2295
  static VALUE libvirt_connect_node_memory_parameters_equal(VALUE c, VALUE input)
@@ -2313,7 +2327,7 @@ static VALUE cpu_map_field_to_value(VALUE input)
2313
2327
  * call-seq:
2314
2328
  * conn.node_cpu_map -> Hash
2315
2329
  *
2316
- * Call virNodeGetCPUMap[http://www.libvirt.org/html/libvirt-libvirt.html#virNodeGetCPUMap]
2330
+ * Call virNodeGetCPUMap[http://www.libvirt.org/html/libvirt-libvirt-host.html#virNodeGetCPUMap]
2317
2331
  * to get a map of online host CPUs.
2318
2332
  */
2319
2333
  static VALUE libvirt_connect_node_cpu_map(int argc, VALUE *argv, VALUE c)
@@ -2355,7 +2369,7 @@ static VALUE libvirt_connect_node_cpu_map(int argc, VALUE *argv, VALUE c)
2355
2369
  * call-seq:
2356
2370
  * conn.set_keepalive(interval, count) -> Fixnum
2357
2371
  *
2358
- * Call virConnectSetKeepAlive[http://www.libvirt.org/html/libvirt-libvirt.html#virConnectSetKeepAlive]
2372
+ * Call virConnectSetKeepAlive[http://www.libvirt.org/html/libvirt-libvirt-host.html#virConnectSetKeepAlive]
2359
2373
  * to start sending keepalive messages. Deprecated; use conn.keepalive=
2360
2374
  * instead.
2361
2375
  */
@@ -2371,7 +2385,7 @@ static VALUE libvirt_connect_set_keepalive(VALUE c, VALUE interval, VALUE count)
2371
2385
  * call-seq:
2372
2386
  * conn.keepalive = interval,count
2373
2387
  *
2374
- * Call virConnectSetKeepAlive[http://www.libvirt.org/html/libvirt-libvirt.html#virConnectSetKeepAlive]
2388
+ * Call virConnectSetKeepAlive[http://www.libvirt.org/html/libvirt-libvirt-host.html#virConnectSetKeepAlive]
2375
2389
  * to start sending keepalive messages.
2376
2390
  */
2377
2391
  static VALUE libvirt_connect_keepalive_equal(VALUE c, VALUE in)
@@ -2400,7 +2414,7 @@ static VALUE libvirt_connect_keepalive_equal(VALUE c, VALUE in)
2400
2414
  * call-seq:
2401
2415
  * conn.list_all_domains(flags=0) -> Array
2402
2416
  *
2403
- * Call virConnectListAllDomains[http://www.libvirt.org/html/libvirt-libvirt.html#virConnectListAllDomains]
2417
+ * Call virConnectListAllDomains[http://www.libvirt.org/html/libvirt-libvirt-domain.html#virConnectListAllDomains]
2404
2418
  * to get an array of domain objects for all domains.
2405
2419
  */
2406
2420
  static VALUE libvirt_connect_list_all_domains(int argc, VALUE *argv, VALUE c)
@@ -2417,7 +2431,7 @@ static VALUE libvirt_connect_list_all_domains(int argc, VALUE *argv, VALUE c)
2417
2431
  * call-seq:
2418
2432
  * conn.list_all_networks(flags=0) -> Array
2419
2433
  *
2420
- * Call virConnectListAllNetworks[http://www.libvirt.org/html/libvirt-libvirt.html#virConnectListAllNetworks]
2434
+ * Call virConnectListAllNetworks[http://www.libvirt.org/html/libvirt-libvirt-network.html#virConnectListAllNetworks]
2421
2435
  * to get an array of network objects for all networks.
2422
2436
  */
2423
2437
  static VALUE libvirt_connect_list_all_networks(int argc, VALUE *argv, VALUE c)
@@ -2435,7 +2449,7 @@ static VALUE libvirt_connect_list_all_networks(int argc, VALUE *argv, VALUE c)
2435
2449
  * call-seq:
2436
2450
  * conn.list_all_interfaces(flags=0) -> Array
2437
2451
  *
2438
- * Call virConnectListAllInterfaces[http://www.libvirt.org/html/libvirt-libvirt.html#virConnectListAllInterfaces]
2452
+ * Call virConnectListAllInterfaces[http://www.libvirt.org/html/libvirt-libvirt-interface.html#virConnectListAllInterfaces]
2439
2453
  * to get an array of interface objects for all interfaces.
2440
2454
  */
2441
2455
  static VALUE libvirt_connect_list_all_interfaces(int argc, VALUE *argv, VALUE c)
@@ -2453,7 +2467,7 @@ static VALUE libvirt_connect_list_all_interfaces(int argc, VALUE *argv, VALUE c)
2453
2467
  * call-seq:
2454
2468
  * conn.list_all_secrets(flags=0) -> Array
2455
2469
  *
2456
- * Call virConnectListAllSecrets[http://www.libvirt.org/html/libvirt-libvirt.html#virConnectListAllSecrets]
2470
+ * Call virConnectListAllSecrets[http://www.libvirt.org/html/libvirt-libvirt-secret.html#virConnectListAllSecrets]
2457
2471
  * to get an array of secret objects for all secrets.
2458
2472
  */
2459
2473
  static VALUE libvirt_connect_list_all_secrets(int argc, VALUE *argv, VALUE c)
@@ -2470,7 +2484,7 @@ static VALUE libvirt_connect_list_all_secrets(int argc, VALUE *argv, VALUE c)
2470
2484
  * call-seq:
2471
2485
  * conn.list_all_nodedevices(flags=0) -> Array
2472
2486
  *
2473
- * Call virConnectListAllNodeDevices[http://www.libvirt.org/html/libvirt-libvirt.html#virConnectListAllNodeDevices]
2487
+ * Call virConnectListAllNodeDevices[http://www.libvirt.org/html/libvirt-libvirt-nodedev.html#virConnectListAllNodeDevices]
2474
2488
  * to get an array of nodedevice objects for all nodedevices.
2475
2489
  */
2476
2490
  static VALUE libvirt_connect_list_all_nodedevices(int argc, VALUE *argv,
@@ -2489,7 +2503,7 @@ static VALUE libvirt_connect_list_all_nodedevices(int argc, VALUE *argv,
2489
2503
  * call-seq:
2490
2504
  * conn.list_all_storage_pools(flags=0) -> Array
2491
2505
  *
2492
- * Call virConnectListAllStoragePools[http://www.libvirt.org/html/libvirt-libvirt.html#virConnectListAllStoragePools]
2506
+ * Call virConnectListAllStoragePools[http://www.libvirt.org/html/libvirt-libvirt-storage.html#virConnectListAllStoragePools]
2493
2507
  * to get an array of storage pool objects for all storage pools.
2494
2508
  */
2495
2509
  static VALUE libvirt_connect_list_all_storage_pools(int argc, VALUE *argv,
@@ -2507,7 +2521,7 @@ static VALUE libvirt_connect_list_all_storage_pools(int argc, VALUE *argv,
2507
2521
  * call-seq:
2508
2522
  * conn.list_all_nwfilters(flags=0) -> Array
2509
2523
  *
2510
- * Call virConnectListAllNWFilters[http://www.libvirt.org/html/libvirt-libvirt.html#virConnectListAllNWFilters]
2524
+ * Call virConnectListAllNWFilters[http://www.libvirt.org/html/libvirt-libvirt-nwfilter.html#virConnectListAllNWFilters]
2511
2525
  * to get an array of nwfilters for all nwfilter objects.
2512
2526
  */
2513
2527
  static VALUE libvirt_connect_list_all_nwfilters(int argc, VALUE *argv, VALUE c)
@@ -2525,7 +2539,7 @@ static VALUE libvirt_connect_list_all_nwfilters(int argc, VALUE *argv, VALUE c)
2525
2539
  * call-seq:
2526
2540
  * conn.alive? -> [True|False]
2527
2541
  *
2528
- * Call virConnectIsAlive[http://www.libvirt.org/html/libvirt-libvirt.html#virConnectIsAlive]
2542
+ * Call virConnectIsAlive[http://www.libvirt.org/html/libvirt-libvirt-host.html#virConnectIsAlive]
2529
2543
  * to determine if the connection is alive.
2530
2544
  */
2531
2545
  static VALUE libvirt_connect_alive_p(VALUE c)
@@ -2541,7 +2555,7 @@ static VALUE libvirt_connect_alive_p(VALUE c)
2541
2555
  * call-seq:
2542
2556
  * conn.create_domain_xml_with_files(xml, fds=nil, flags=0) -> Libvirt::Domain
2543
2557
  *
2544
- * Call virDomainCreateXMLWithFiles[http://www.libvirt.org/html/libvirt-libvirt.html#virDomainCreateXMLWithFiles]
2558
+ * Call virDomainCreateXMLWithFiles[http://www.libvirt.org/html/libvirt-libvirt-domain.html#virDomainCreateXMLWithFiles]
2545
2559
  * to launch a new guest domain with a set of open file descriptors.
2546
2560
  */
2547
2561
  static VALUE libvirt_connect_create_domain_xml_with_files(int argc, VALUE *argv,
@@ -2588,7 +2602,7 @@ static VALUE libvirt_connect_create_domain_xml_with_files(int argc, VALUE *argv,
2588
2602
  * call-seq:
2589
2603
  * conn.qemu_attach(pid, flags=0) -> Libvirt::Domain
2590
2604
  *
2591
- * Call virDomainQemuAttach[http://www.libvirt.org/html/libvirt-libvirt.html#virDomainQemuAttach]
2605
+ * Call virDomainQemuAttach
2592
2606
  * to attach to the Qemu process pid.
2593
2607
  */
2594
2608
  static VALUE libvirt_connect_qemu_attach(int argc, VALUE *argv, VALUE c)
@@ -2612,7 +2626,7 @@ static VALUE libvirt_connect_qemu_attach(int argc, VALUE *argv, VALUE c)
2612
2626
  * call-seq:
2613
2627
  * conn.cpu_model_names(arch, flags=0) -> Array
2614
2628
  *
2615
- * Call virConnectGetCPUModelNames[http://www.libvirt.org/html/libvirt-libvirt.html#virConnectGetCPUModelNames]
2629
+ * Call virConnectGetCPUModelNames[http://www.libvirt.org/html/libvirt-libvirt-host.html#virConnectGetCPUModelNames]
2616
2630
  * to get an array of CPU model names.
2617
2631
  */
2618
2632
  static VALUE libvirt_connect_cpu_model_names(int argc, VALUE *argv, VALUE c)
@@ -2669,7 +2683,7 @@ error:
2669
2683
  * call-seq:
2670
2684
  * conn.node_alloc_pages(page_arr, cells=nil, flags=0) -> Fixnum
2671
2685
  *
2672
- * Call virNodeAllocPages[http://www.libvirt.org/html/libvirt-libvirt.html#virNodeAllocPages]
2686
+ * Call virNodeAllocPages[http://www.libvirt.org/html/libvirt-libvirt-host.html#virNodeAllocPages]
2673
2687
  * to reserve huge pages in the system pool.
2674
2688
  */
2675
2689
  static VALUE libvirt_connect_node_alloc_pages(int argc, VALUE *argv, VALUE c)
@@ -2735,7 +2749,7 @@ static VALUE libvirt_connect_node_alloc_pages(int argc, VALUE *argv, VALUE c)
2735
2749
  * call-seq:
2736
2750
  * conn.domain_capabilities(emulatorbin, arch, machine, virttype, flags=0) -> String
2737
2751
  *
2738
- * Call virNodeAllocPages[http://www.libvirt.org/html/libvirt-libvirt.html#virConnectGetDomainCapabilities]
2752
+ * Call virConnectGetDomainCapabilities[http://www.libvirt.org/html/libvirt-libvirt-domain.html#virConnectGetDomainCapabilities]
2739
2753
  * to get the capabilities of the underlying emulator.
2740
2754
  */
2741
2755
  static VALUE libvirt_connect_domain_capabilities(int argc, VALUE *argv, VALUE c)
@@ -2761,7 +2775,7 @@ static VALUE libvirt_connect_domain_capabilities(int argc, VALUE *argv, VALUE c)
2761
2775
  * call-seq:
2762
2776
  * conn.node_free_pages(pages, cells, flags=0) -> Hash
2763
2777
  *
2764
- * Call virNodeGetFreePages[http://www.libvirt.org/html/libvirt-libvirt.html#virNodeGetFreePages]
2778
+ * Call virNodeGetFreePages[http://www.libvirt.org/html/libvirt-libvirt-host.html#virNodeGetFreePages]
2765
2779
  * to query the host system on free pages of specified size.
2766
2780
  */
2767
2781
  static VALUE libvirt_connect_node_free_pages(int argc, VALUE *argv, VALUE c)
@@ -3108,8 +3122,12 @@ void ruby_libvirt_connect_init(void)
3108
3122
  libvirt_connect_lookup_domain_by_id, 1);
3109
3123
  rb_define_method(c_connect, "lookup_domain_by_uuid",
3110
3124
  libvirt_connect_lookup_domain_by_uuid, 1);
3125
+ #if HAVE_CONST_VIR_DOMAIN_DEFINE_VALIDATE
3126
+ rb_define_const(c_connect, "DOMAIN_DEFINE_VALIDATE",
3127
+ INT2NUM(VIR_DOMAIN_DEFINE_VALIDATE));
3128
+ #endif
3111
3129
  rb_define_method(c_connect, "define_domain_xml",
3112
- libvirt_connect_define_domain_xml, 1);
3130
+ libvirt_connect_define_domain_xml, -1);
3113
3131
 
3114
3132
  #if HAVE_VIRCONNECTDOMAINXMLFROMNATIVE
3115
3133
  rb_define_method(c_connect, "domain_xml_from_native",