ruby-libvirt 0.8.0 → 0.8.1

Sign up to get free protection for your applications and to get access to all the features.
data/ext/libvirt/stream.c CHANGED
@@ -26,7 +26,6 @@
26
26
  #include "connect.h"
27
27
  #include "extconf.h"
28
28
 
29
- #if HAVE_TYPE_VIRSTREAMPTR
30
29
  static VALUE c_stream;
31
30
 
32
31
  static void stream_free(void *s)
@@ -48,7 +47,7 @@ VALUE ruby_libvirt_stream_new(virStreamPtr s, VALUE conn)
48
47
  * call-seq:
49
48
  * stream.send(buffer) -> Fixnum
50
49
  *
51
- * Call virStreamSend[http://www.libvirt.org/html/libvirt-libvirt-stream.html#virStreamSend]
50
+ * Call virStreamSend[https://libvirt.org/html/libvirt-libvirt-stream.html#virStreamSend]
52
51
  * to send the data in buffer out to the stream. The return value is the
53
52
  * number of bytes sent, which may be less than the size of the buffer. If
54
53
  * an error occurred, -1 is returned. If the transmit buffers are full and the
@@ -72,7 +71,7 @@ static VALUE libvirt_stream_send(VALUE s, VALUE buffer)
72
71
  * call-seq:
73
72
  * stream.recv(bytes) -> [return_value, data]
74
73
  *
75
- * Call virStreamRecv[http://www.libvirt.org/html/libvirt-libvirt-stream.html#virStreamRecv]
74
+ * Call virStreamRecv[https://libvirt.org/html/libvirt-libvirt-stream.html#virStreamRecv]
76
75
  * to receive up to bytes amount of data from the stream. The return is an
77
76
  * array with two elements; the return code from the virStreamRecv call and
78
77
  * the data (as a String) read from the stream. If an error occurred, the
@@ -138,7 +137,7 @@ static int internal_sendall(virStreamPtr RUBY_LIBVIRT_UNUSED(st), char *data,
138
137
  * call-seq:
139
138
  * stream.sendall(opaque=nil){|opaque, nbytes| send block} -> nil
140
139
  *
141
- * Call virStreamSendAll[http://www.libvirt.org/html/libvirt-libvirt-stream.html#virStreamSendAll]
140
+ * Call virStreamSendAll[https://libvirt.org/html/libvirt-libvirt-stream.html#virStreamSendAll]
142
141
  * to send the entire data stream. The send block is required and is executed
143
142
  * one or more times to send data. Each invocation of the send block yields
144
143
  * the opaque data passed into the initial call and the number of bytes this
@@ -184,7 +183,7 @@ static int internal_recvall(virStreamPtr RUBY_LIBVIRT_UNUSED(st),
184
183
  * call-seq:
185
184
  * stream.recvall(opaque){|data, opaque| receive block} -> nil
186
185
  *
187
- * Call virStreamRecvAll[http://www.libvirt.org/html/libvirt-libvirt-stream.html#virStreamRecvAll]
186
+ * Call virStreamRecvAll[https://libvirt.org/html/libvirt-libvirt-stream.html#virStreamRecvAll]
188
187
  * to receive the entire data stream. The receive block is required and is
189
188
  * called one or more times to receive data. Each invocation of the receive
190
189
  * block yields the data received and the opaque data passed into the initial
@@ -246,7 +245,7 @@ static void stream_event_callback(virStreamPtr st, int events, void *opaque)
246
245
  * call-seq:
247
246
  * stream.event_add_callback(events, callback, opaque=nil) -> nil
248
247
  *
249
- * Call virStreamEventAddCallback[http://www.libvirt.org/html/libvirt-libvirt-stream.html#virStreamEventAddCallback]
248
+ * Call virStreamEventAddCallback[https://libvirt.org/html/libvirt-libvirt-stream.html#virStreamEventAddCallback]
250
249
  * to register a callback to be notified when a stream becomes readable or
251
250
  * writeable. The events parameter is an integer representing the events the
252
251
  * user is interested in; it should be one or more of EVENT_READABLE,
@@ -288,7 +287,7 @@ static VALUE libvirt_stream_event_add_callback(int argc, VALUE *argv, VALUE s)
288
287
  * call-seq:
289
288
  * stream.event_update_callback(events) -> nil
290
289
  *
291
- * Call virStreamEventUpdateCallback[http://www.libvirt.org/html/libvirt-libvirt-stream.html#virStreamEventUpdateCallback]
290
+ * Call virStreamEventUpdateCallback[https://libvirt.org/html/libvirt-libvirt-stream.html#virStreamEventUpdateCallback]
292
291
  * to change the events that the event callback is looking for. The events
293
292
  * parameter is an integer representing the events the user is interested in;
294
293
  * it should be one or more of EVENT_READABLE, EVENT_WRITABLE, EVENT_ERROR,
@@ -305,7 +304,7 @@ static VALUE libvirt_stream_event_update_callback(VALUE s, VALUE events)
305
304
  * call-seq:
306
305
  * stream.event_remove_callback -> nil
307
306
  *
308
- * Call virStreamEventRemoveCallback[http://www.libvirt.org/html/libvirt-libvirt-stream.html#virStreamEventRemoveCallback]
307
+ * Call virStreamEventRemoveCallback[https://libvirt.org/html/libvirt-libvirt-stream.html#virStreamEventRemoveCallback]
309
308
  * to remove the event callback currently registered to this stream.
310
309
  */
311
310
  static VALUE libvirt_stream_event_remove_callback(VALUE s)
@@ -319,7 +318,7 @@ static VALUE libvirt_stream_event_remove_callback(VALUE s)
319
318
  * call-seq:
320
319
  * stream.finish -> nil
321
320
  *
322
- * Call virStreamFinish[http://www.libvirt.org/html/libvirt-libvirt-stream.html#virStreamFinish]
321
+ * Call virStreamFinish[https://libvirt.org/html/libvirt-libvirt-stream.html#virStreamFinish]
323
322
  * to finish this stream. Finish is typically used when the stream is no
324
323
  * longer needed and needs to be cleaned up.
325
324
  */
@@ -333,7 +332,7 @@ static VALUE libvirt_stream_finish(VALUE s)
333
332
  * call-seq:
334
333
  * stream.abort -> nil
335
334
  *
336
- * Call virStreamAbort[http://www.libvirt.org/html/libvirt-libvirt-stream.html#virStreamAbort]
335
+ * Call virStreamAbort[https://libvirt.org/html/libvirt-libvirt-stream.html#virStreamAbort]
337
336
  * to abort this stream. Abort is typically used when something on the stream
338
337
  * has failed, and the stream needs to be cleaned up.
339
338
  */
@@ -347,21 +346,19 @@ static VALUE libvirt_stream_abort(VALUE s)
347
346
  * call-seq:
348
347
  * stream.free -> nil
349
348
  *
350
- * Call virStreamFree[http://www.libvirt.org/html/libvirt-libvirt-stream.html#virStreamFree]
349
+ * Call virStreamFree[https://libvirt.org/html/libvirt-libvirt-stream.html#virStreamFree]
351
350
  * to free this stream. The object will no longer be valid after this call.
352
351
  */
353
352
  static VALUE libvirt_stream_free(VALUE s)
354
353
  {
355
354
  ruby_libvirt_generate_call_free(Stream, s);
356
355
  }
357
- #endif
358
356
 
359
357
  /*
360
358
  * Class Libvirt::Stream
361
359
  */
362
360
  void ruby_libvirt_stream_init(void)
363
361
  {
364
- #if HAVE_TYPE_VIRSTREAMPTR
365
362
  c_stream = rb_define_class_under(m_libvirt, "Stream", rb_cObject);
366
363
 
367
364
  rb_define_attr(c_stream, "connection", 1, 0);
@@ -388,5 +385,4 @@ void ruby_libvirt_stream_init(void)
388
385
  rb_define_method(c_stream, "finish", libvirt_stream_finish, 0);
389
386
  rb_define_method(c_stream, "abort", libvirt_stream_abort, 0);
390
387
  rb_define_method(c_stream, "free", libvirt_stream_free, 0);
391
- #endif
392
388
  }
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: ruby-libvirt
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.8.0
4
+ version: 0.8.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - David Lutterkort, Chris Lalancette
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2021-11-16 00:00:00.000000000 Z
11
+ date: 2024-02-08 00:00:00.000000000 Z
12
12
  dependencies: []
13
13
  description: Ruby bindings for libvirt.
14
14
  email: libvir-list@redhat.com
@@ -57,7 +57,7 @@ files:
57
57
  - tests/test_storage.rb
58
58
  - tests/test_stream.rb
59
59
  - tests/test_utils.rb
60
- homepage: http://libvirt.org/ruby/
60
+ homepage: https://ruby.libvirt.org/
61
61
  licenses:
62
62
  - LGPL-2.1-or-later
63
63
  metadata: {}
@@ -76,7 +76,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
76
76
  - !ruby/object:Gem::Version
77
77
  version: '0'
78
78
  requirements: []
79
- rubygems_version: 3.2.22
79
+ rubygems_version: 3.4.10
80
80
  signing_key:
81
81
  specification_version: 4
82
82
  summary: Ruby bindings for LIBVIRT