ruby-libvirt 0.6.0 → 0.7.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -145,6 +145,9 @@
145
145
  #define HAVE_VIRDOMAINFSTHAW 1
146
146
  #define HAVE_VIRDOMAINGETFSINFO 1
147
147
  #define HAVE_VIRNODEGETFREEPAGES 1
148
+ #define HAVE_VIRDOMAINDEFINEXMLFLAGS 1
149
+ #define HAVE_VIRDOMAINRENAME 1
150
+ #define HAVE_VIRDOMAINSETUSERPASSWORD 1
148
151
  #define HAVE_CONST_VIR_MIGRATE_LIVE 1
149
152
  #define HAVE_CONST_VIR_MIGRATE_PEER2PEER 1
150
153
  #define HAVE_CONST_VIR_MIGRATE_TUNNELLED 1
@@ -333,6 +336,15 @@
333
336
  #define HAVE_CONST_VIR_DOMAIN_BLOCK_COMMIT_ACTIVE 1
334
337
  #define HAVE_CONST_VIR_DOMAIN_BLOCK_COMMIT_RELATIVE 1
335
338
  #define HAVE_CONST_VIR_DOMAIN_BLOCK_COMMIT_BANDWIDTH_BYTES 1
339
+ #define HAVE_CONST_VIR_STORAGE_POOL_CREATE_NORMAL 1
340
+ #define HAVE_CONST_VIR_STORAGE_POOL_CREATE_WITH_BUILD 1
341
+ #define HAVE_CONST_VIR_STORAGE_POOL_CREATE_WITH_BUILD_OVERWRITE 1
342
+ #define HAVE_CONST_VIR_STORAGE_POOL_CREATE_WITH_BUILD_NO_OVERWRITE 1
343
+ #define HAVE_CONST_VIR_STORAGE_VOL_CREATE_REFLINK 1
344
+ #define HAVE_CONST_VIR_STORAGE_VOL_DELETE_WITH_SNAPSHOTS 1
345
+ #define HAVE_CONST_VIR_DOMAIN_DEFINE_VALIDATE 1
346
+ #define HAVE_CONST_VIR_DOMAIN_PASSWORD_ENCRYPTED 1
347
+ #define HAVE_CONST_VIR_DOMAIN_TIME_SYNC 1
336
348
  #define HAVE_CONST_VIR_FROM_VMWARE 1
337
349
  #define HAVE_CONST_VIR_FROM_AUDIT 1
338
350
  #define HAVE_CONST_VIR_FROM_SYSINFO 1
@@ -222,6 +222,9 @@ libvirt_funcs = [ 'virStorageVolWipe',
222
222
  'virDomainFSThaw',
223
223
  'virDomainGetFSInfo',
224
224
  'virNodeGetFreePages',
225
+ 'virDomainDefineXMLFlags',
226
+ 'virDomainRename',
227
+ 'virDomainSetUserPassword',
225
228
  ]
226
229
 
227
230
  libvirt_qemu_funcs = [ 'virDomainQemuMonitorCommand',
@@ -428,6 +431,16 @@ libvirt_consts = [ 'VIR_MIGRATE_LIVE',
428
431
  'VIR_DOMAIN_BLOCK_COMMIT_RELATIVE',
429
432
  'VIR_DOMAIN_BLOCK_COMMIT_BANDWIDTH_BYTES',
430
433
  'VIR_DOMAIN_BLOCK_IOTUNE_SIZE_IOPS_SEC',
434
+ 'VIR_STORAGE_POOL_CREATE_NORMAL',
435
+ 'VIR_STORAGE_POOL_CREATE_WITH_BUILD',
436
+ 'VIR_STORAGE_POOL_CREATE_WITH_BUILD_OVERWRITE',
437
+ 'VIR_STORAGE_POOL_CREATE_WITH_BUILD_NO_OVERWRITE',
438
+ 'VIR_STORAGE_VOL_CREATE_REFLINK',
439
+ 'VIR_STORAGE_VOL_DELETE_WITH_SNAPSHOTS',
440
+ 'VIR_DOMAIN_QEMU_AGENT_COMMAND_SHUTDOWN',
441
+ 'VIR_DOMAIN_DEFINE_VALIDATE',
442
+ 'VIR_DOMAIN_PASSWORD_ENCRYPTED',
443
+ 'VIR_DOMAIN_TIME_SYNC',
431
444
  ]
432
445
 
433
446
  virterror_consts = [
@@ -2,7 +2,7 @@
2
2
  * interface.c: virInterface methods
3
3
  *
4
4
  * Copyright (C) 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
@@ -48,7 +48,7 @@ VALUE ruby_libvirt_interface_new(virInterfacePtr i, VALUE conn)
48
48
  * call-seq:
49
49
  * interface.undefine -> nil
50
50
  *
51
- * Call virInterfaceUndefine[http://www.libvirt.org/html/libvirt-libvirt.html#virInterfaceUndefine]
51
+ * Call virInterfaceUndefine[http://www.libvirt.org/html/libvirt-libvirt-interface.html#virInterfaceUndefine]
52
52
  * to undefine this interface.
53
53
  */
54
54
  static VALUE libvirt_interface_undefine(VALUE i)
@@ -62,7 +62,7 @@ static VALUE libvirt_interface_undefine(VALUE i)
62
62
  * call-seq:
63
63
  * interface.create(flags=0) -> nil
64
64
  *
65
- * Call virInterfaceCreate[http://www.libvirt.org/html/libvirt-libvirt.html#virInterfaceCreate]
65
+ * Call virInterfaceCreate[http://www.libvirt.org/html/libvirt-libvirt-interface.html#virInterfaceCreate]
66
66
  * to start this interface.
67
67
  */
68
68
  static VALUE libvirt_interface_create(int argc, VALUE *argv, VALUE i)
@@ -81,7 +81,7 @@ static VALUE libvirt_interface_create(int argc, VALUE *argv, VALUE i)
81
81
  * call-seq:
82
82
  * interface.destroy(flags=0) -> nil
83
83
  *
84
- * Call virInterfaceDestroy[http://www.libvirt.org/html/libvirt-libvirt.html#virInterfaceDestroy]
84
+ * Call virInterfaceDestroy[http://www.libvirt.org/html/libvirt-libvirt-interface.html#virInterfaceDestroy]
85
85
  * to shutdown this interface.
86
86
  */
87
87
  static VALUE libvirt_interface_destroy(int argc, VALUE *argv, VALUE i)
@@ -101,7 +101,7 @@ static VALUE libvirt_interface_destroy(int argc, VALUE *argv, VALUE i)
101
101
  * call-seq:
102
102
  * interface.active? -> [true|false]
103
103
  *
104
- * Call virInterfaceIsActive[http://www.libvirt.org/html/libvirt-libvirt.html#virInterfaceIsActive]
104
+ * Call virInterfaceIsActive[http://www.libvirt.org/html/libvirt-libvirt-interface.html#virInterfaceIsActive]
105
105
  * to determine if this interface is currently active.
106
106
  */
107
107
  static VALUE libvirt_interface_active_p(VALUE p)
@@ -116,7 +116,7 @@ static VALUE libvirt_interface_active_p(VALUE p)
116
116
  * call-seq:
117
117
  * interface.name -> String
118
118
  *
119
- * Call virInterfaceGetName[http://www.libvirt.org/html/libvirt-libvirt.html#virInterfaceGetName]
119
+ * Call virInterfaceGetName[http://www.libvirt.org/html/libvirt-libvirt-interface.html#virInterfaceGetName]
120
120
  * to retrieve the name of this interface.
121
121
  */
122
122
  static VALUE libvirt_interface_name(VALUE i)
@@ -130,7 +130,7 @@ static VALUE libvirt_interface_name(VALUE i)
130
130
  * call-seq:
131
131
  * interface.mac -> String
132
132
  *
133
- * Call virInterfaceGetMACString[http://www.libvirt.org/html/libvirt-libvirt.html#virInterfaceGetMACString]
133
+ * Call virInterfaceGetMACString[http://www.libvirt.org/html/libvirt-libvirt-interface.html#virInterfaceGetMACString]
134
134
  * to retrieve the MAC address of this interface.
135
135
  */
136
136
  static VALUE libvirt_interface_mac(VALUE i)
@@ -144,7 +144,7 @@ static VALUE libvirt_interface_mac(VALUE i)
144
144
  * call-seq:
145
145
  * interface.xml_desc -> String
146
146
  *
147
- * Call virInterfaceGetXMLDesc[http://www.libvirt.org/html/libvirt-libvirt.html#virInterfaceGetXMLDesc]
147
+ * Call virInterfaceGetXMLDesc[http://www.libvirt.org/html/libvirt-libvirt-interface.html#virInterfaceGetXMLDesc]
148
148
  * to retrieve the XML of this interface.
149
149
  */
150
150
  static VALUE libvirt_interface_xml_desc(int argc, VALUE *argv, VALUE i)
@@ -163,7 +163,7 @@ static VALUE libvirt_interface_xml_desc(int argc, VALUE *argv, VALUE i)
163
163
  * call-seq:
164
164
  * interface.free -> nil
165
165
  *
166
- * Call virInterfaceFree[http://www.libvirt.org/html/libvirt-libvirt.html#virInterfaceFree]
166
+ * Call virInterfaceFree[http://www.libvirt.org/html/libvirt-libvirt-interface.html#virInterfaceFree]
167
167
  * to free this interface. The object will no longer be valid after this call.
168
168
  */
169
169
  static VALUE libvirt_interface_free(VALUE i)
@@ -2,7 +2,7 @@
2
2
  * network.c: virNetwork 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
@@ -48,7 +48,7 @@ VALUE ruby_libvirt_network_new(virNetworkPtr n, VALUE conn)
48
48
  * call-seq:
49
49
  * net.undefine -> nil
50
50
  *
51
- * Call virNetworkUndefine[http://www.libvirt.org/html/libvirt-libvirt.html#virNetworkUndefine]
51
+ * Call virNetworkUndefine[http://www.libvirt.org/html/libvirt-libvirt-network.html#virNetworkUndefine]
52
52
  * to undefine this network.
53
53
  */
54
54
  static VALUE libvirt_network_undefine(VALUE n)
@@ -62,7 +62,7 @@ static VALUE libvirt_network_undefine(VALUE n)
62
62
  * call-seq:
63
63
  * net.create -> nil
64
64
  *
65
- * Call virNetworkCreate[http://www.libvirt.org/html/libvirt-libvirt.html#virNetworkCreate]
65
+ * Call virNetworkCreate[http://www.libvirt.org/html/libvirt-libvirt-network.html#virNetworkCreate]
66
66
  * to start this network.
67
67
  */
68
68
  static VALUE libvirt_network_create(VALUE n)
@@ -77,7 +77,7 @@ static VALUE libvirt_network_create(VALUE n)
77
77
  * call-seq:
78
78
  * net.update -> nil
79
79
  *
80
- * Call virNetworkUpdate[http://www.libvirt.org/html/libvirt-libvirt.html#virNetworkUpdate]
80
+ * Call virNetworkUpdate[http://www.libvirt.org/html/libvirt-libvirt-network.html#virNetworkUpdate]
81
81
  * to update this network.
82
82
  */
83
83
  static VALUE libvirt_network_update(VALUE n, VALUE command, VALUE section,
@@ -95,7 +95,7 @@ static VALUE libvirt_network_update(VALUE n, VALUE command, VALUE section,
95
95
  * call-seq:
96
96
  * net.destroy -> nil
97
97
  *
98
- * Call virNetworkDestroy[http://www.libvirt.org/html/libvirt-libvirt.html#virNetworkDestroy]
98
+ * Call virNetworkDestroy[http://www.libvirt.org/html/libvirt-libvirt-network.html#virNetworkDestroy]
99
99
  * to shutdown this network.
100
100
  */
101
101
  static VALUE libvirt_network_destroy(VALUE n)
@@ -109,7 +109,7 @@ static VALUE libvirt_network_destroy(VALUE n)
109
109
  * call-seq:
110
110
  * net.name -> String
111
111
  *
112
- * Call virNetworkGetName[http://www.libvirt.org/html/libvirt-libvirt.html#virNetworkGetName]
112
+ * Call virNetworkGetName[http://www.libvirt.org/html/libvirt-libvirt-network.html#virNetworkGetName]
113
113
  * to retrieve the name of this network.
114
114
  */
115
115
  static VALUE libvirt_network_name(VALUE n)
@@ -123,7 +123,7 @@ static VALUE libvirt_network_name(VALUE n)
123
123
  * call-seq:
124
124
  * net.uuid -> String
125
125
  *
126
- * Call virNetworkGetUUIDString[http://www.libvirt.org/html/libvirt-libvirt.html#virNetworkGetUUIDString]
126
+ * Call virNetworkGetUUIDString[http://www.libvirt.org/html/libvirt-libvirt-network.html#virNetworkGetUUIDString]
127
127
  * to retrieve the UUID of this network.
128
128
  */
129
129
  static VALUE libvirt_network_uuid(VALUE n)
@@ -136,7 +136,7 @@ static VALUE libvirt_network_uuid(VALUE n)
136
136
  * call-seq:
137
137
  * net.xml_desc(flags=0) -> String
138
138
  *
139
- * Call virNetworkGetXMLDesc[http://www.libvirt.org/html/libvirt-libvirt.html#virNetworkGetXMLDesc]
139
+ * Call virNetworkGetXMLDesc[http://www.libvirt.org/html/libvirt-libvirt-network.html#virNetworkGetXMLDesc]
140
140
  * to retrieve the XML for this network.
141
141
  */
142
142
  static VALUE libvirt_network_xml_desc(int argc, VALUE *argv, VALUE n)
@@ -155,7 +155,7 @@ static VALUE libvirt_network_xml_desc(int argc, VALUE *argv, VALUE n)
155
155
  * call-seq:
156
156
  * net.bridge_name -> String
157
157
  *
158
- * Call virNetworkGetBridgeName[http://www.libvirt.org/html/libvirt-libvirt.html#virNetworkGetBridgeName]
158
+ * Call virNetworkGetBridgeName[http://www.libvirt.org/html/libvirt-libvirt-network.html#virNetworkGetBridgeName]
159
159
  * to retrieve the bridge name for this network.
160
160
  */
161
161
  static VALUE libvirt_network_bridge_name(VALUE n)
@@ -169,7 +169,7 @@ static VALUE libvirt_network_bridge_name(VALUE n)
169
169
  * call-seq:
170
170
  * net.autostart? -> [true|false]
171
171
  *
172
- * Call virNetworkGetAutostart[http://www.libvirt.org/html/libvirt-libvirt.html#virNetworkGetAutostart]
172
+ * Call virNetworkGetAutostart[http://www.libvirt.org/html/libvirt-libvirt-network.html#virNetworkGetAutostart]
173
173
  * to determine if this network will be autostarted when libvirtd starts.
174
174
  */
175
175
  static VALUE libvirt_network_autostart(VALUE n)
@@ -187,7 +187,7 @@ static VALUE libvirt_network_autostart(VALUE n)
187
187
  * call-seq:
188
188
  * net.autostart = [true|false]
189
189
  *
190
- * Call virNetworkSetAutostart[http://www.libvirt.org/html/libvirt-libvirt.html#virNetworkSetAutostart]
190
+ * Call virNetworkSetAutostart[http://www.libvirt.org/html/libvirt-libvirt-network.html#virNetworkSetAutostart]
191
191
  * to set this network to be autostarted when libvirtd starts.
192
192
  */
193
193
  static VALUE libvirt_network_autostart_equal(VALUE n, VALUE autostart)
@@ -206,7 +206,7 @@ static VALUE libvirt_network_autostart_equal(VALUE n, VALUE autostart)
206
206
  * call-seq:
207
207
  * net.free -> nil
208
208
  *
209
- * Call virNetworkFree[http://www.libvirt.org/html/libvirt-libvirt.html#virNetworkFree]
209
+ * Call virNetworkFree[http://www.libvirt.org/html/libvirt-libvirt-network.html#virNetworkFree]
210
210
  * to free this network. The object will no longer be valid after this call.
211
211
  */
212
212
  static VALUE libvirt_network_free(VALUE n)
@@ -219,7 +219,7 @@ static VALUE libvirt_network_free(VALUE n)
219
219
  * call-seq:
220
220
  * net.active? -> [true|false]
221
221
  *
222
- * Call virNetworkIsActive[http://www.libvirt.org/html/libvirt-libvirt.html#virNetworkIsActive]
222
+ * Call virNetworkIsActive[http://www.libvirt.org/html/libvirt-libvirt-network.html#virNetworkIsActive]
223
223
  * to determine if this network is currently active.
224
224
  */
225
225
  static VALUE libvirt_network_active_p(VALUE n)
@@ -235,7 +235,7 @@ static VALUE libvirt_network_active_p(VALUE n)
235
235
  * call-seq:
236
236
  * net.persistent? -> [true|false]
237
237
  *
238
- * Call virNetworkIsPersistent[http://www.libvirt.org/html/libvirt-libvirt.html#virNetworkIsPersistent]
238
+ * Call virNetworkIsPersistent[http://www.libvirt.org/html/libvirt-libvirt-network.html#virNetworkIsPersistent]
239
239
  * to determine if this network is persistent.
240
240
  */
241
241
  static VALUE libvirt_network_persistent_p(VALUE n)
@@ -269,14 +269,22 @@ static VALUE leases_wrap(VALUE arg)
269
269
  rb_hash_aset(hash, rb_str_new2("expirytime"),
270
270
  LL2NUM(lease->expirytime));
271
271
  rb_hash_aset(hash, rb_str_new2("type"), INT2NUM(lease->type));
272
- rb_hash_aset(hash, rb_str_new2("mac"), rb_str_new2(lease->mac));
273
- rb_hash_aset(hash, rb_str_new2("iaid"), rb_str_new2(lease->iaid));
272
+ if (lease->mac) {
273
+ rb_hash_aset(hash, rb_str_new2("mac"), rb_str_new2(lease->mac));
274
+ }
275
+ if (lease->iaid) {
276
+ rb_hash_aset(hash, rb_str_new2("iaid"), rb_str_new2(lease->iaid));
277
+ }
274
278
  rb_hash_aset(hash, rb_str_new2("ipaddr"), rb_str_new2(lease->ipaddr));
275
279
  rb_hash_aset(hash, rb_str_new2("prefix"), UINT2NUM(lease->prefix));
276
- rb_hash_aset(hash, rb_str_new2("hostname"),
277
- rb_str_new2(lease->hostname));
278
- rb_hash_aset(hash, rb_str_new2("clientid"),
279
- rb_str_new2(lease->clientid));
280
+ if (lease->hostname) {
281
+ rb_hash_aset(hash, rb_str_new2("hostname"),
282
+ rb_str_new2(lease->hostname));
283
+ }
284
+ if (lease->clientid) {
285
+ rb_hash_aset(hash, rb_str_new2("clientid"),
286
+ rb_str_new2(lease->clientid));
287
+ }
280
288
 
281
289
  rb_ary_store(result, i, hash);
282
290
  }
@@ -288,7 +296,7 @@ static VALUE leases_wrap(VALUE arg)
288
296
  * call-seq:
289
297
  * net.dhcp_leases(mac=nil, flags=0) -> Hash
290
298
  *
291
- * Call virNetworkGetDHCPLeases[http://www.libvirt.org/html/libvirt-libvirt.html#virNetworkGetDHCPLeases]
299
+ * Call virNetworkGetDHCPLeases[http://www.libvirt.org/html/libvirt-libvirt-network.html#virNetworkGetDHCPLeases]
292
300
  * to retrieve the leases for this network.
293
301
  */
294
302
  static VALUE libvirt_network_get_dhcp_leases(int argc, VALUE *argv, VALUE n)
@@ -2,7 +2,7 @@
2
2
  * nodedevice.c: virNodeDevice methods
3
3
  *
4
4
  * Copyright (C) 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
@@ -48,7 +48,7 @@ VALUE ruby_libvirt_nodedevice_new(virNodeDevicePtr n, VALUE conn)
48
48
  * call-seq:
49
49
  * nodedevice.name -> String
50
50
  *
51
- * Call virNodeDeviceGetName[http://www.libvirt.org/html/libvirt-libvirt.html#virNodeDeviceGetName]
51
+ * Call virNodeDeviceGetName[http://www.libvirt.org/html/libvirt-libvirt-nodedev.html#virNodeDeviceGetName]
52
52
  * to retrieve the name of the node device.
53
53
  */
54
54
  static VALUE libvirt_nodedevice_name(VALUE c)
@@ -62,7 +62,7 @@ static VALUE libvirt_nodedevice_name(VALUE c)
62
62
  * call-seq:
63
63
  * nodedevice.parent -> String
64
64
  *
65
- * Call virNodeDeviceGetParent[http://www.libvirt.org/html/libvirt-libvirt.html#virNodeDeviceGetParent]
65
+ * Call virNodeDeviceGetParent[http://www.libvirt.org/html/libvirt-libvirt-nodedev.html#virNodeDeviceGetParent]
66
66
  * to retrieve the parent of the node device.
67
67
  */
68
68
  static VALUE libvirt_nodedevice_parent(VALUE c)
@@ -87,7 +87,7 @@ static VALUE libvirt_nodedevice_parent(VALUE c)
87
87
  * call-seq:
88
88
  * nodedevice.num_of_caps -> Fixnum
89
89
  *
90
- * Call virNodeDeviceNumOfCaps[http://www.libvirt.org/html/libvirt-libvirt.html#virNodeDeviceNumOfCaps]
90
+ * Call virNodeDeviceNumOfCaps[http://www.libvirt.org/html/libvirt-libvirt-nodedev.html#virNodeDeviceNumOfCaps]
91
91
  * to retrieve the number of capabilities of the node device.
92
92
  */
93
93
  static VALUE libvirt_nodedevice_num_of_caps(VALUE c)
@@ -101,7 +101,7 @@ static VALUE libvirt_nodedevice_num_of_caps(VALUE c)
101
101
  * call-seq:
102
102
  * nodedevice.list_caps -> list
103
103
  *
104
- * Call virNodeDeviceListCaps[http://www.libvirt.org/html/libvirt-libvirt.html#virNodeDeviceListCaps]
104
+ * Call virNodeDeviceListCaps[http://www.libvirt.org/html/libvirt-libvirt-nodedev.html#virNodeDeviceListCaps]
105
105
  * to retrieve a list of capabilities of the node device.
106
106
  */
107
107
  static VALUE libvirt_nodedevice_list_caps(VALUE c)
@@ -131,7 +131,7 @@ static VALUE libvirt_nodedevice_list_caps(VALUE c)
131
131
  * call-seq:
132
132
  * nodedevice.xml_desc(flags=0) -> String
133
133
  *
134
- * Call virNodeDeviceGetXMLDesc[http://www.libvirt.org/html/libvirt-libvirt.html#virNodeDeviceGetXMLDesc]
134
+ * Call virNodeDeviceGetXMLDesc[http://www.libvirt.org/html/libvirt-libvirt-nodedev.html#virNodeDeviceGetXMLDesc]
135
135
  * to retrieve the XML for the node device.
136
136
  */
137
137
  static VALUE libvirt_nodedevice_xml_desc(int argc, VALUE *argv, VALUE n)
@@ -150,7 +150,7 @@ static VALUE libvirt_nodedevice_xml_desc(int argc, VALUE *argv, VALUE n)
150
150
  * call-seq:
151
151
  * nodedevice.detach(driver=nil, flags=0) -> nil
152
152
  *
153
- * Call virNodeDeviceDettach[http://www.libvirt.org/html/libvirt-libvirt.html#virNodeDeviceDettach]
153
+ * Call virNodeDeviceDettach[http://www.libvirt.org/html/libvirt-libvirt-nodedev.html#virNodeDeviceDettach]
154
154
  * to detach the node device from the node.
155
155
  */
156
156
  static VALUE libvirt_nodedevice_detach(int argc, VALUE *argv, VALUE n)
@@ -184,7 +184,7 @@ static VALUE libvirt_nodedevice_detach(int argc, VALUE *argv, VALUE n)
184
184
  * call-seq:
185
185
  * nodedevice.reattach -> nil
186
186
  *
187
- * Call virNodeDeviceReAttach[http://www.libvirt.org/html/libvirt-libvirt.html#virNodeDeviceReAttach]
187
+ * Call virNodeDeviceReAttach[http://www.libvirt.org/html/libvirt-libvirt-nodedev.html#virNodeDeviceReAttach]
188
188
  * to reattach the node device to the node.
189
189
  */
190
190
  static VALUE libvirt_nodedevice_reattach(VALUE n)
@@ -198,7 +198,7 @@ static VALUE libvirt_nodedevice_reattach(VALUE n)
198
198
  * call-seq:
199
199
  * nodedevice.reset -> nil
200
200
  *
201
- * Call virNodeDeviceReset[http://www.libvirt.org/html/libvirt-libvirt.html#virNodeDeviceReset]
201
+ * Call virNodeDeviceReset[http://www.libvirt.org/html/libvirt-libvirt-nodedev.html#virNodeDeviceReset]
202
202
  * to reset the node device.
203
203
  */
204
204
  static VALUE libvirt_nodedevice_reset(VALUE n)
@@ -213,7 +213,7 @@ static VALUE libvirt_nodedevice_reset(VALUE n)
213
213
  * call-seq:
214
214
  * nodedevice.destroy -> nil
215
215
  *
216
- * Call virNodeDeviceDestroy[http://www.libvirt.org/html/libvirt-libvirt.html#virNodeDeviceDestroy]
216
+ * Call virNodeDeviceDestroy[http://www.libvirt.org/html/libvirt-libvirt-nodedev.html#virNodeDeviceDestroy]
217
217
  * to shutdown the node device.
218
218
  */
219
219
  static VALUE libvirt_nodedevice_destroy(VALUE n)
@@ -228,7 +228,7 @@ static VALUE libvirt_nodedevice_destroy(VALUE n)
228
228
  * call-seq:
229
229
  * nodedevice.free -> nil
230
230
  *
231
- * Call virNodeDeviceFree[http://www.libvirt.org/html/libvirt-libvirt.html#virNodeDeviceFree]
231
+ * Call virNodeDeviceFree[http://www.libvirt.org/html/libvirt-libvirt-nodedev.html#virNodeDeviceFree]
232
232
  * to free the node device object. After this call the node device object is
233
233
  * no longer valid.
234
234
  */
@@ -242,7 +242,7 @@ static VALUE libvirt_nodedevice_free(VALUE n)
242
242
  * call-seq:
243
243
  * nodedevice.lookup_scsi_host_by_wwn(wwnn, wwpn, flags=0) -> Libvirt::NodeDevice
244
244
  *
245
- * Call virNodeDeviceLookupSCSIHostByWWN[http://www.libvirt.org/html/libvirt-libvirt.html#virNodeDeviceLookupSCSIHostByWWN]
245
+ * Call virNodeDeviceLookupSCSIHostByWWN[http://www.libvirt.org/html/libvirt-libvirt-nodedev.html#virNodeDeviceLookupSCSIHostByWWN]
246
246
  * to look up a SCSI host by its WWNN and WWPN.
247
247
  */
248
248
  static VALUE libvirt_nodedevice_lookup_scsi_host_by_wwn(int argc, VALUE *argv,
@@ -2,7 +2,7 @@
2
2
  * nwfilter.c: virNWFilter methods
3
3
  *
4
4
  * Copyright (C) 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
@@ -48,7 +48,7 @@ VALUE ruby_libvirt_nwfilter_new(virNWFilterPtr n, VALUE conn)
48
48
  * call-seq:
49
49
  * nwfilter.undefine -> nil
50
50
  *
51
- * Call virNWFilterUndefine[http://www.libvirt.org/html/libvirt-libvirt.html#virNWFilterUndefine]
51
+ * Call virNWFilterUndefine[http://www.libvirt.org/html/libvirt-libvirt-nwfilter.html#virNWFilterUndefine]
52
52
  * to undefine the network filter.
53
53
  */
54
54
  static VALUE libvirt_nwfilter_undefine(VALUE n)
@@ -62,7 +62,7 @@ static VALUE libvirt_nwfilter_undefine(VALUE n)
62
62
  * call-seq:
63
63
  * nwfilter.name -> String
64
64
  *
65
- * Call virNWFilterGetName[http://www.libvirt.org/html/libvirt-libvirt.html#virNWFilterGetName]
65
+ * Call virNWFilterGetName[http://www.libvirt.org/html/libvirt-libvirt-nwfilter.html#virNWFilterGetName]
66
66
  * to retrieve the network filter name.
67
67
  */
68
68
  static VALUE libvirt_nwfilter_name(VALUE n)
@@ -76,7 +76,7 @@ static VALUE libvirt_nwfilter_name(VALUE n)
76
76
  * call-seq:
77
77
  * nwfilter.uuid -> String
78
78
  *
79
- * Call virNWFilterGetUUIDString[http://www.libvirt.org/html/libvirt-libvirt.html#virNWFilterGetUUIDString]
79
+ * Call virNWFilterGetUUIDString[http://www.libvirt.org/html/libvirt-libvirt-nwfilter.html#virNWFilterGetUUIDString]
80
80
  * to retrieve the network filter UUID.
81
81
  */
82
82
  static VALUE libvirt_nwfilter_uuid(VALUE n)
@@ -89,7 +89,7 @@ static VALUE libvirt_nwfilter_uuid(VALUE n)
89
89
  * call-seq:
90
90
  * nwfilter.xml_desc(flags=0) -> String
91
91
  *
92
- * Call virNWFilterGetXMLDesc[http://www.libvirt.org/html/libvirt-libvirt.html#virNWFilterGetXMLDesc]
92
+ * Call virNWFilterGetXMLDesc[http://www.libvirt.org/html/libvirt-libvirt-nwfilter.html#virNWFilterGetXMLDesc]
93
93
  * to retrieve the XML for this network filter.
94
94
  */
95
95
  static VALUE libvirt_nwfilter_xml_desc(int argc, VALUE *argv, VALUE n)
@@ -108,7 +108,7 @@ static VALUE libvirt_nwfilter_xml_desc(int argc, VALUE *argv, VALUE n)
108
108
  * call-seq:
109
109
  * nwfilter.free -> nil
110
110
  *
111
- * Call virNWFilterFree[http://www.libvirt.org/html/libvirt-libvirt.html#virNWFilterFree]
111
+ * Call virNWFilterFree[http://www.libvirt.org/html/libvirt-libvirt-nwfilter.html#virNWFilterFree]
112
112
  * to free this network filter. After this call the network filter object is
113
113
  * no longer valid.
114
114
  */
@@ -2,7 +2,7 @@
2
2
  * secret.c: virSecret methods
3
3
  *
4
4
  * Copyright (C) 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
@@ -48,7 +48,7 @@ VALUE ruby_libvirt_secret_new(virSecretPtr s, VALUE conn)
48
48
  * call-seq:
49
49
  * secret.uuid -> String
50
50
  *
51
- * Call virSecretGetUUIDString[http://www.libvirt.org/html/libvirt-libvirt.html#virSecretGetUUIDString]
51
+ * Call virSecretGetUUIDString[http://www.libvirt.org/html/libvirt-libvirt-secret.html#virSecretGetUUIDString]
52
52
  * to retrieve the UUID for this secret.
53
53
  */
54
54
  static VALUE libvirt_secret_uuid(VALUE s)
@@ -61,7 +61,7 @@ static VALUE libvirt_secret_uuid(VALUE s)
61
61
  * call-seq:
62
62
  * secret.usagetype -> Fixnum
63
63
  *
64
- * Call virSecretGetUsageType[http://www.libvirt.org/html/libvirt-libvirt.html#virSecretGetUsageType]
64
+ * Call virSecretGetUsageType[http://www.libvirt.org/html/libvirt-libvirt-secret.html#virSecretGetUsageType]
65
65
  * to retrieve the usagetype for this secret.
66
66
  */
67
67
  static VALUE libvirt_secret_usagetype(VALUE s)
@@ -75,7 +75,7 @@ static VALUE libvirt_secret_usagetype(VALUE s)
75
75
  * call-seq:
76
76
  * secret.usageid -> String
77
77
  *
78
- * Call virSecretGetUsageID[http://www.libvirt.org/html/libvirt-libvirt.html#virSecretGetUsageID]
78
+ * Call virSecretGetUsageID[http://www.libvirt.org/html/libvirt-libvirt-secret.html#virSecretGetUsageID]
79
79
  * to retrieve the usageid for this secret.
80
80
  */
81
81
  static VALUE libvirt_secret_usageid(VALUE s)
@@ -89,7 +89,7 @@ static VALUE libvirt_secret_usageid(VALUE s)
89
89
  * call-seq:
90
90
  * secret.xml_desc(flags=0) -> String
91
91
  *
92
- * Call virSecretGetXMLDesc[http://www.libvirt.org/html/libvirt-libvirt.html#virSecretGetXMLDesc]
92
+ * Call virSecretGetXMLDesc[http://www.libvirt.org/html/libvirt-libvirt-secret.html#virSecretGetXMLDesc]
93
93
  * to retrieve the XML for this secret.
94
94
  */
95
95
  static VALUE libvirt_secret_xml_desc(int argc, VALUE *argv, VALUE s)
@@ -108,7 +108,7 @@ static VALUE libvirt_secret_xml_desc(int argc, VALUE *argv, VALUE s)
108
108
  * call-seq:
109
109
  * secret.set_value(value, flags=0) -> nil
110
110
  *
111
- * Call virSecretSetValue[http://www.libvirt.org/html/libvirt-libvirt.html#virSecretSetValue]
111
+ * Call virSecretSetValue[http://www.libvirt.org/html/libvirt-libvirt-secret.html#virSecretSetValue]
112
112
  * to set a new value in this secret. Deprecated; use secret.value= instead.
113
113
  */
114
114
  static VALUE libvirt_secret_set_value(int argc, VALUE *argv, VALUE s)
@@ -131,7 +131,7 @@ static VALUE libvirt_secret_set_value(int argc, VALUE *argv, VALUE s)
131
131
  * call-seq:
132
132
  * secret.value = value,flags=0
133
133
  *
134
- * Call virSecretSetValue[http://www.libvirt.org/html/libvirt-libvirt.html#virSecretSetValue]
134
+ * Call virSecretSetValue[http://www.libvirt.org/html/libvirt-libvirt-secret.html#virSecretSetValue]
135
135
  * to set a new value in this secret.
136
136
  */
137
137
  static VALUE libvirt_secret_value_equal(VALUE s, VALUE in)
@@ -168,7 +168,7 @@ static VALUE libvirt_secret_value_equal(VALUE s, VALUE in)
168
168
  * call-seq:
169
169
  * secret.value(flags=0) -> String
170
170
  *
171
- * Call virSecretGetValue[http://www.libvirt.org/html/libvirt-libvirt.html#virSecretGetValue]
171
+ * Call virSecretGetValue[http://www.libvirt.org/html/libvirt-libvirt-secret.html#virSecretGetValue]
172
172
  * to retrieve the value from this secret.
173
173
  */
174
174
  static VALUE libvirt_secret_value(int argc, VALUE *argv, VALUE s)
@@ -203,7 +203,7 @@ static VALUE libvirt_secret_value(int argc, VALUE *argv, VALUE s)
203
203
  * call-seq:
204
204
  * secret.undefine -> nil
205
205
  *
206
- * Call virSecretUndefine[http://www.libvirt.org/html/libvirt-libvirt.html#virSecretUndefine]
206
+ * Call virSecretUndefine[http://www.libvirt.org/html/libvirt-libvirt-secret.html#virSecretUndefine]
207
207
  * to undefine this secret.
208
208
  */
209
209
  static VALUE libvirt_secret_undefine(VALUE s)
@@ -217,7 +217,7 @@ static VALUE libvirt_secret_undefine(VALUE s)
217
217
  * call-seq:
218
218
  * secret.free -> nil
219
219
  *
220
- * Call virSecretFree[http://www.libvirt.org/html/libvirt-libvirt.html#virSecretFree]
220
+ * Call virSecretFree[http://www.libvirt.org/html/libvirt-libvirt-secret.html#virSecretFree]
221
221
  * to free this secret. After this call the secret object is no longer valid.
222
222
  */
223
223
  static VALUE libvirt_secret_free(VALUE s)