czmq-ffi-gen 0.10.0-x64-mingw32 → 0.12.0-x64-mingw32

Sign up to get free protection for your applications and to get access to all the features.
Files changed (43) hide show
  1. checksums.yaml +4 -4
  2. data/CHANGES.md +8 -0
  3. data/lib/czmq-ffi-gen/czmq/ffi.rb +345 -209
  4. data/lib/czmq-ffi-gen/czmq/ffi/version.rb +1 -1
  5. data/lib/czmq-ffi-gen/czmq/ffi/zcert.rb +0 -12
  6. data/lib/czmq-ffi-gen/czmq/ffi/zcertstore.rb +0 -12
  7. data/lib/czmq-ffi-gen/czmq/ffi/zhash.rb +0 -31
  8. data/lib/czmq-ffi-gen/czmq/ffi/zhashx.rb +0 -44
  9. data/lib/czmq-ffi-gen/czmq/ffi/zsock.rb +706 -0
  10. data/lib/czmq-ffi-gen/gem_version.rb +1 -1
  11. data/vendor/local/bin/inproc_lat.exe +0 -0
  12. data/vendor/local/bin/inproc_thr.exe +0 -0
  13. data/vendor/local/bin/libczmq.dll +0 -0
  14. data/vendor/local/bin/libzmq.dll +0 -0
  15. data/vendor/local/bin/local_lat.exe +0 -0
  16. data/vendor/local/bin/local_thr.exe +0 -0
  17. data/vendor/local/bin/remote_lat.exe +0 -0
  18. data/vendor/local/bin/remote_thr.exe +0 -0
  19. data/vendor/local/include/czmq.h +8 -0
  20. data/vendor/local/include/czmq_library.h +2 -29
  21. data/vendor/local/include/zauth.h +1 -1
  22. data/vendor/local/include/zcert.h +0 -8
  23. data/vendor/local/include/zcertstore.h +0 -8
  24. data/vendor/local/include/zhash.h +0 -13
  25. data/vendor/local/include/zhashx.h +0 -21
  26. data/vendor/local/include/zloop.h +7 -12
  27. data/vendor/local/include/zpoller.h +7 -12
  28. data/vendor/local/include/zsock.h +159 -44
  29. data/vendor/local/include/zsock_option.inc +578 -0
  30. data/vendor/local/include/zsys.h +9 -0
  31. data/vendor/local/lib/libczmq.dll.a +0 -0
  32. data/vendor/local/lib/liblibzmq.dll.a +0 -0
  33. data/vendor/local/lib/pkgconfig/libczmq.pc +2 -1
  34. metadata +2 -11
  35. data/vendor/local/include/zauth_v2.h +0 -88
  36. data/vendor/local/include/zbeacon_v2.h +0 -75
  37. data/vendor/local/include/zctx.h +0 -107
  38. data/vendor/local/include/zmonitor_v2.h +0 -56
  39. data/vendor/local/include/zmutex.h +0 -55
  40. data/vendor/local/include/zproxy_v2.h +0 -62
  41. data/vendor/local/include/zsocket.h +0 -110
  42. data/vendor/local/include/zsockopt.h +0 -256
  43. data/vendor/local/include/zthread.h +0 -50
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 907a9b4a09e5273a93bbd837c71f380990a60e11
4
- data.tar.gz: 9bb667005e6b025483d051294634812a96494993
3
+ metadata.gz: c0c539f0cb86b06082daf7460ede60e0a9eae858
4
+ data.tar.gz: 9b8da4ca795df8c22ba5cc3dfae7046b521e395e
5
5
  SHA512:
6
- metadata.gz: 0fa9d207505e9ee646c383d658c3403a9ee01a0f7dcd65b1a0965895b6e825a51ffa8af2d8316b99a682a9f6e53b686c7cc86637cbe1d9bba2dc24fe9a9de298
7
- data.tar.gz: ab90841f42cb47a24a8c4b1026cbbc2b7ee8c4945e2dc7647dc24c78600e42c8b2d3b1f6e48e5f5d51fe05e14e29078746abd4e80cd340ccdd7653146b676b17
6
+ metadata.gz: 7cd8fbb02dee9059cead3d0609056dfebe0d043c1e72b22d8dd1f5a84f9659eb86ee1c091dcfc5ec14672507bd9f072dcfcba4abc2f489027072e8ffb8443a1a
7
+ data.tar.gz: 26f533bb747b737c526549bb7d0b82a57e1f8f04eaa69ff707ed48970696f650469747ee7160a09bbfa55e09d81225a45af78193f0ed6e5b4d626f05147deff6
data/CHANGES.md CHANGED
@@ -1,3 +1,11 @@
1
+ 0.12.0 (11/02/2016)
2
+ -----
3
+ * update CZMQ low-level binding to v4.0.0
4
+
5
+ 0.11.0 (11/02/2016)
6
+ -----
7
+ * update CZMQ low-level binding to v4.0.0-rc1
8
+
1
9
  0.10.0 (09/25/2016)
2
10
  -----
3
11
  * update CZMQ low-level binding to honor the LIBCZMQ_PATH environment variable
@@ -23,8 +23,8 @@ module CZMQ
23
23
  begin
24
24
  lib_name = 'libczmq'
25
25
  lib_dirs = ['/usr/local/lib', '/opt/local/lib', '/usr/lib64']
26
- env_path = ENV["#{lib_name.upcase}_PATH"]
27
- lib_dirs = [*env_path.split(':'), *lib_dirs] if env_path
26
+ env_name = "#{lib_name.upcase}_PATH"
27
+ lib_dirs = [*ENV[env_name].split(':'), *lib_dirs] if ENV[env_name]
28
28
  lib_paths = lib_dirs.map { |path| "#{path}/#{lib_name}.#{::FFI::Platform::LIBSUFFIX}" }
29
29
  ffi_lib lib_paths + [lib_name]
30
30
  @available = true
@@ -84,8 +84,11 @@ module CZMQ
84
84
  attach_function :zcert_unset_meta, [:pointer, :string], :void, **opts
85
85
  rescue ::FFI::NotFoundError
86
86
  if $VERBOSE || $DEBUG
87
- warn "The function zcert_unset_meta() can't be used through " +
88
- "this Ruby binding because it's not available."
87
+ warn "The DRAFT function zcert_unset_meta()" +
88
+ " is not provided by the installed CZMQ library."
89
+ end
90
+ def self.zcert_unset_meta(*)
91
+ raise NotImplementedError, "compile CZMQ with --enable-drafts"
89
92
  end
90
93
  end
91
94
  attach_function :zcert_meta, [:pointer, :string], :string, **opts
@@ -97,7 +100,6 @@ module CZMQ
97
100
  attach_function :zcert_dup, [:pointer], :pointer, **opts
98
101
  attach_function :zcert_eq, [:pointer, :pointer], :bool, **opts
99
102
  attach_function :zcert_print, [:pointer], :void, **opts
100
- attach_function :zcert_fprint, [:pointer, :pointer], :void, **opts
101
103
  attach_function :zcert_test, [:bool], :void, **opts
102
104
 
103
105
  require_relative 'ffi/zcert'
@@ -108,8 +110,11 @@ module CZMQ
108
110
  attach_function :zcertstore_set_loader, [:pointer, :pointer, :pointer, :pointer], :void, **opts
109
111
  rescue ::FFI::NotFoundError
110
112
  if $VERBOSE || $DEBUG
111
- warn "The function zcertstore_set_loader() can't be used through " +
112
- "this Ruby binding because it's not available."
113
+ warn "The DRAFT function zcertstore_set_loader()" +
114
+ " is not provided by the installed CZMQ library."
115
+ end
116
+ def self.zcertstore_set_loader(*)
117
+ raise NotImplementedError, "compile CZMQ with --enable-drafts"
113
118
  end
114
119
  end
115
120
  attach_function :zcertstore_lookup, [:pointer, :string], :pointer, **opts
@@ -118,12 +123,14 @@ module CZMQ
118
123
  attach_function :zcertstore_empty, [:pointer], :void, **opts
119
124
  rescue ::FFI::NotFoundError
120
125
  if $VERBOSE || $DEBUG
121
- warn "The function zcertstore_empty() can't be used through " +
122
- "this Ruby binding because it's not available."
126
+ warn "The DRAFT function zcertstore_empty()" +
127
+ " is not provided by the installed CZMQ library."
128
+ end
129
+ def self.zcertstore_empty(*)
130
+ raise NotImplementedError, "compile CZMQ with --enable-drafts"
123
131
  end
124
132
  end
125
133
  attach_function :zcertstore_print, [:pointer], :void, **opts
126
- attach_function :zcertstore_fprint, [:pointer, :pointer], :void, **opts
127
134
  attach_function :zcertstore_test, [:bool], :void, **opts
128
135
 
129
136
  require_relative 'ffi/zcertstore'
@@ -286,32 +293,44 @@ module CZMQ
286
293
  attach_function :zframe_routing_id, [:pointer], :uint32, **opts
287
294
  rescue ::FFI::NotFoundError
288
295
  if $VERBOSE || $DEBUG
289
- warn "The function zframe_routing_id() can't be used through " +
290
- "this Ruby binding because it's not available."
296
+ warn "The DRAFT function zframe_routing_id()" +
297
+ " is not provided by the installed CZMQ library."
298
+ end
299
+ def self.zframe_routing_id(*)
300
+ raise NotImplementedError, "compile CZMQ with --enable-drafts"
291
301
  end
292
302
  end
293
303
  begin # DRAFT method
294
304
  attach_function :zframe_set_routing_id, [:pointer, :uint32], :void, **opts
295
305
  rescue ::FFI::NotFoundError
296
306
  if $VERBOSE || $DEBUG
297
- warn "The function zframe_set_routing_id() can't be used through " +
298
- "this Ruby binding because it's not available."
307
+ warn "The DRAFT function zframe_set_routing_id()" +
308
+ " is not provided by the installed CZMQ library."
309
+ end
310
+ def self.zframe_set_routing_id(*)
311
+ raise NotImplementedError, "compile CZMQ with --enable-drafts"
299
312
  end
300
313
  end
301
314
  begin # DRAFT method
302
315
  attach_function :zframe_group, [:pointer], :string, **opts
303
316
  rescue ::FFI::NotFoundError
304
317
  if $VERBOSE || $DEBUG
305
- warn "The function zframe_group() can't be used through " +
306
- "this Ruby binding because it's not available."
318
+ warn "The DRAFT function zframe_group()" +
319
+ " is not provided by the installed CZMQ library."
320
+ end
321
+ def self.zframe_group(*)
322
+ raise NotImplementedError, "compile CZMQ with --enable-drafts"
307
323
  end
308
324
  end
309
325
  begin # DRAFT method
310
326
  attach_function :zframe_set_group, [:pointer, :string], :int, **opts
311
327
  rescue ::FFI::NotFoundError
312
328
  if $VERBOSE || $DEBUG
313
- warn "The function zframe_set_group() can't be used through " +
314
- "this Ruby binding because it's not available."
329
+ warn "The DRAFT function zframe_set_group()" +
330
+ " is not provided by the installed CZMQ library."
331
+ end
332
+ def self.zframe_set_group(*)
333
+ raise NotImplementedError, "compile CZMQ with --enable-drafts"
315
334
  end
316
335
  end
317
336
  attach_function :zframe_eq, [:pointer, :pointer], :bool, **opts
@@ -343,7 +362,6 @@ module CZMQ
343
362
  attach_function :zhash_load, [:pointer, :string], :int, **opts
344
363
  attach_function :zhash_refresh, [:pointer], :int, **opts
345
364
  attach_function :zhash_autofree, [:pointer], :void, **opts
346
- attach_function :zhash_foreach, [:pointer, :pointer, :pointer], :int, **opts
347
365
  attach_function :zhash_test, [:bool], :void, **opts
348
366
 
349
367
  require_relative 'ffi/zhash'
@@ -354,8 +372,11 @@ module CZMQ
354
372
  attach_function :zhashx_unpack_own, [:pointer, :pointer], :pointer, **opts
355
373
  rescue ::FFI::NotFoundError
356
374
  if $VERBOSE || $DEBUG
357
- warn "The function zhashx_unpack_own() can't be used through " +
358
- "this Ruby binding because it's not available."
375
+ warn "The DRAFT function zhashx_unpack_own()" +
376
+ " is not provided by the installed CZMQ library."
377
+ end
378
+ def self.zhashx_unpack_own(*)
379
+ raise NotImplementedError, "compile CZMQ with --enable-drafts"
359
380
  end
360
381
  end
361
382
  attach_function :zhashx_destroy, [:pointer], :void, **opts
@@ -381,8 +402,11 @@ module CZMQ
381
402
  attach_function :zhashx_pack_own, [:pointer, :pointer], :pointer, **opts
382
403
  rescue ::FFI::NotFoundError
383
404
  if $VERBOSE || $DEBUG
384
- warn "The function zhashx_pack_own() can't be used through " +
385
- "this Ruby binding because it's not available."
405
+ warn "The DRAFT function zhashx_pack_own()" +
406
+ " is not provided by the installed CZMQ library."
407
+ end
408
+ def self.zhashx_pack_own(*)
409
+ raise NotImplementedError, "compile CZMQ with --enable-drafts"
386
410
  end
387
411
  end
388
412
  attach_function :zhashx_dup, [:pointer], :pointer, **opts
@@ -393,8 +417,6 @@ module CZMQ
393
417
  attach_function :zhashx_set_key_comparator, [:pointer, :pointer], :void, **opts
394
418
  attach_function :zhashx_set_key_hasher, [:pointer, :pointer], :void, **opts
395
419
  attach_function :zhashx_dup_v2, [:pointer], :pointer, **opts
396
- attach_function :zhashx_autofree, [:pointer], :void, **opts
397
- attach_function :zhashx_foreach, [:pointer, :pointer, :pointer], :int, **opts
398
420
  attach_function :zhashx_test, [:bool], :void, **opts
399
421
 
400
422
  require_relative 'ffi/zhashx'
@@ -485,14 +507,7 @@ module CZMQ
485
507
  attach_function :zloop_set_ticket_delay, [:pointer, :size_t], :void, **opts
486
508
  attach_function :zloop_set_max_timers, [:pointer, :size_t], :void, **opts
487
509
  attach_function :zloop_set_verbose, [:pointer, :bool], :void, **opts
488
- begin # DRAFT method
489
- attach_function :zloop_set_nonstop, [:pointer, :bool], :void, **opts
490
- rescue ::FFI::NotFoundError
491
- if $VERBOSE || $DEBUG
492
- warn "The function zloop_set_nonstop() can't be used through " +
493
- "this Ruby binding because it's not available."
494
- end
495
- end
510
+ attach_function :zloop_set_nonstop, [:pointer, :bool], :void, **opts
496
511
  attach_function :zloop_start, [:pointer], :int, **opts
497
512
  attach_function :zloop_test, [:bool], :void, **opts
498
513
 
@@ -512,16 +527,22 @@ module CZMQ
512
527
  attach_function :zmsg_routing_id, [:pointer], :uint32, **opts
513
528
  rescue ::FFI::NotFoundError
514
529
  if $VERBOSE || $DEBUG
515
- warn "The function zmsg_routing_id() can't be used through " +
516
- "this Ruby binding because it's not available."
530
+ warn "The DRAFT function zmsg_routing_id()" +
531
+ " is not provided by the installed CZMQ library."
532
+ end
533
+ def self.zmsg_routing_id(*)
534
+ raise NotImplementedError, "compile CZMQ with --enable-drafts"
517
535
  end
518
536
  end
519
537
  begin # DRAFT method
520
538
  attach_function :zmsg_set_routing_id, [:pointer, :uint32], :void, **opts
521
539
  rescue ::FFI::NotFoundError
522
540
  if $VERBOSE || $DEBUG
523
- warn "The function zmsg_set_routing_id() can't be used through " +
524
- "this Ruby binding because it's not available."
541
+ warn "The DRAFT function zmsg_set_routing_id()" +
542
+ " is not provided by the installed CZMQ library."
543
+ end
544
+ def self.zmsg_set_routing_id(*)
545
+ raise NotImplementedError, "compile CZMQ with --enable-drafts"
525
546
  end
526
547
  end
527
548
  attach_function :zmsg_prepend, [:pointer, :pointer], :int, **opts
@@ -555,14 +576,7 @@ module CZMQ
555
576
  attach_function :zpoller_destroy, [:pointer], :void, **opts
556
577
  attach_function :zpoller_add, [:pointer, :pointer], :int, **opts
557
578
  attach_function :zpoller_remove, [:pointer, :pointer], :int, **opts
558
- begin # DRAFT method
559
- attach_function :zpoller_set_nonstop, [:pointer, :bool], :void, **opts
560
- rescue ::FFI::NotFoundError
561
- if $VERBOSE || $DEBUG
562
- warn "The function zpoller_set_nonstop() can't be used through " +
563
- "this Ruby binding because it's not available."
564
- end
565
- end
579
+ attach_function :zpoller_set_nonstop, [:pointer, :bool], :void, **opts
566
580
  attach_function :zpoller_wait, [:pointer, :int], :pointer, **opts
567
581
  attach_function :zpoller_expired, [:pointer], :bool, **opts
568
582
  attach_function :zpoller_terminated, [:pointer], :bool, **opts
@@ -574,152 +588,209 @@ module CZMQ
574
588
  attach_function :zproc_czmq_version, [], :int, **opts
575
589
  rescue ::FFI::NotFoundError
576
590
  if $VERBOSE || $DEBUG
577
- warn "The function zproc_czmq_version() can't be used through " +
578
- "this Ruby binding because it's not available."
591
+ warn "The DRAFT function zproc_czmq_version()" +
592
+ " is not provided by the installed CZMQ library."
593
+ end
594
+ def self.zproc_czmq_version(*)
595
+ raise NotImplementedError, "compile CZMQ with --enable-drafts"
579
596
  end
580
597
  end
581
598
  begin # DRAFT method
582
599
  attach_function :zproc_interrupted, [], :bool, **opts
583
600
  rescue ::FFI::NotFoundError
584
601
  if $VERBOSE || $DEBUG
585
- warn "The function zproc_interrupted() can't be used through " +
586
- "this Ruby binding because it's not available."
602
+ warn "The DRAFT function zproc_interrupted()" +
603
+ " is not provided by the installed CZMQ library."
604
+ end
605
+ def self.zproc_interrupted(*)
606
+ raise NotImplementedError, "compile CZMQ with --enable-drafts"
587
607
  end
588
608
  end
589
609
  begin # DRAFT method
590
610
  attach_function :zproc_has_curve, [], :bool, **opts
591
611
  rescue ::FFI::NotFoundError
592
612
  if $VERBOSE || $DEBUG
593
- warn "The function zproc_has_curve() can't be used through " +
594
- "this Ruby binding because it's not available."
613
+ warn "The DRAFT function zproc_has_curve()" +
614
+ " is not provided by the installed CZMQ library."
615
+ end
616
+ def self.zproc_has_curve(*)
617
+ raise NotImplementedError, "compile CZMQ with --enable-drafts"
595
618
  end
596
619
  end
597
620
  begin # DRAFT method
598
621
  attach_function :zproc_hostname, [], :pointer, **opts
599
622
  rescue ::FFI::NotFoundError
600
623
  if $VERBOSE || $DEBUG
601
- warn "The function zproc_hostname() can't be used through " +
602
- "this Ruby binding because it's not available."
624
+ warn "The DRAFT function zproc_hostname()" +
625
+ " is not provided by the installed CZMQ library."
626
+ end
627
+ def self.zproc_hostname(*)
628
+ raise NotImplementedError, "compile CZMQ with --enable-drafts"
603
629
  end
604
630
  end
605
631
  begin # DRAFT method
606
632
  attach_function :zproc_daemonize, [:string], :void, **opts
607
633
  rescue ::FFI::NotFoundError
608
634
  if $VERBOSE || $DEBUG
609
- warn "The function zproc_daemonize() can't be used through " +
610
- "this Ruby binding because it's not available."
635
+ warn "The DRAFT function zproc_daemonize()" +
636
+ " is not provided by the installed CZMQ library."
637
+ end
638
+ def self.zproc_daemonize(*)
639
+ raise NotImplementedError, "compile CZMQ with --enable-drafts"
611
640
  end
612
641
  end
613
642
  begin # DRAFT method
614
643
  attach_function :zproc_run_as, [:string, :string, :string], :void, **opts
615
644
  rescue ::FFI::NotFoundError
616
645
  if $VERBOSE || $DEBUG
617
- warn "The function zproc_run_as() can't be used through " +
618
- "this Ruby binding because it's not available."
646
+ warn "The DRAFT function zproc_run_as()" +
647
+ " is not provided by the installed CZMQ library."
648
+ end
649
+ def self.zproc_run_as(*)
650
+ raise NotImplementedError, "compile CZMQ with --enable-drafts"
619
651
  end
620
652
  end
621
653
  begin # DRAFT method
622
654
  attach_function :zproc_set_io_threads, [:size_t], :void, **opts
623
655
  rescue ::FFI::NotFoundError
624
656
  if $VERBOSE || $DEBUG
625
- warn "The function zproc_set_io_threads() can't be used through " +
626
- "this Ruby binding because it's not available."
657
+ warn "The DRAFT function zproc_set_io_threads()" +
658
+ " is not provided by the installed CZMQ library."
659
+ end
660
+ def self.zproc_set_io_threads(*)
661
+ raise NotImplementedError, "compile CZMQ with --enable-drafts"
627
662
  end
628
663
  end
629
664
  begin # DRAFT method
630
665
  attach_function :zproc_set_max_sockets, [:size_t], :void, **opts
631
666
  rescue ::FFI::NotFoundError
632
667
  if $VERBOSE || $DEBUG
633
- warn "The function zproc_set_max_sockets() can't be used through " +
634
- "this Ruby binding because it's not available."
668
+ warn "The DRAFT function zproc_set_max_sockets()" +
669
+ " is not provided by the installed CZMQ library."
670
+ end
671
+ def self.zproc_set_max_sockets(*)
672
+ raise NotImplementedError, "compile CZMQ with --enable-drafts"
635
673
  end
636
674
  end
637
675
  begin # DRAFT method
638
676
  attach_function :zproc_set_biface, [:string], :void, **opts
639
677
  rescue ::FFI::NotFoundError
640
678
  if $VERBOSE || $DEBUG
641
- warn "The function zproc_set_biface() can't be used through " +
642
- "this Ruby binding because it's not available."
679
+ warn "The DRAFT function zproc_set_biface()" +
680
+ " is not provided by the installed CZMQ library."
681
+ end
682
+ def self.zproc_set_biface(*)
683
+ raise NotImplementedError, "compile CZMQ with --enable-drafts"
643
684
  end
644
685
  end
645
686
  begin # DRAFT method
646
687
  attach_function :zproc_biface, [], :string, **opts
647
688
  rescue ::FFI::NotFoundError
648
689
  if $VERBOSE || $DEBUG
649
- warn "The function zproc_biface() can't be used through " +
650
- "this Ruby binding because it's not available."
690
+ warn "The DRAFT function zproc_biface()" +
691
+ " is not provided by the installed CZMQ library."
692
+ end
693
+ def self.zproc_biface(*)
694
+ raise NotImplementedError, "compile CZMQ with --enable-drafts"
651
695
  end
652
696
  end
653
697
  begin # DRAFT method
654
698
  attach_function :zproc_set_log_ident, [:string], :void, **opts
655
699
  rescue ::FFI::NotFoundError
656
700
  if $VERBOSE || $DEBUG
657
- warn "The function zproc_set_log_ident() can't be used through " +
658
- "this Ruby binding because it's not available."
701
+ warn "The DRAFT function zproc_set_log_ident()" +
702
+ " is not provided by the installed CZMQ library."
703
+ end
704
+ def self.zproc_set_log_ident(*)
705
+ raise NotImplementedError, "compile CZMQ with --enable-drafts"
659
706
  end
660
707
  end
661
708
  begin # DRAFT method
662
709
  attach_function :zproc_set_log_sender, [:string], :void, **opts
663
710
  rescue ::FFI::NotFoundError
664
711
  if $VERBOSE || $DEBUG
665
- warn "The function zproc_set_log_sender() can't be used through " +
666
- "this Ruby binding because it's not available."
712
+ warn "The DRAFT function zproc_set_log_sender()" +
713
+ " is not provided by the installed CZMQ library."
714
+ end
715
+ def self.zproc_set_log_sender(*)
716
+ raise NotImplementedError, "compile CZMQ with --enable-drafts"
667
717
  end
668
718
  end
669
719
  begin # DRAFT method
670
720
  attach_function :zproc_set_log_system, [:bool], :void, **opts
671
721
  rescue ::FFI::NotFoundError
672
722
  if $VERBOSE || $DEBUG
673
- warn "The function zproc_set_log_system() can't be used through " +
674
- "this Ruby binding because it's not available."
723
+ warn "The DRAFT function zproc_set_log_system()" +
724
+ " is not provided by the installed CZMQ library."
725
+ end
726
+ def self.zproc_set_log_system(*)
727
+ raise NotImplementedError, "compile CZMQ with --enable-drafts"
675
728
  end
676
729
  end
677
730
  begin # DRAFT method
678
731
  attach_function :zproc_log_error, [:string, :varargs], :void, **opts
679
732
  rescue ::FFI::NotFoundError
680
733
  if $VERBOSE || $DEBUG
681
- warn "The function zproc_log_error() can't be used through " +
682
- "this Ruby binding because it's not available."
734
+ warn "The DRAFT function zproc_log_error()" +
735
+ " is not provided by the installed CZMQ library."
736
+ end
737
+ def self.zproc_log_error(*)
738
+ raise NotImplementedError, "compile CZMQ with --enable-drafts"
683
739
  end
684
740
  end
685
741
  begin # DRAFT method
686
742
  attach_function :zproc_log_warning, [:string, :varargs], :void, **opts
687
743
  rescue ::FFI::NotFoundError
688
744
  if $VERBOSE || $DEBUG
689
- warn "The function zproc_log_warning() can't be used through " +
690
- "this Ruby binding because it's not available."
745
+ warn "The DRAFT function zproc_log_warning()" +
746
+ " is not provided by the installed CZMQ library."
747
+ end
748
+ def self.zproc_log_warning(*)
749
+ raise NotImplementedError, "compile CZMQ with --enable-drafts"
691
750
  end
692
751
  end
693
752
  begin # DRAFT method
694
753
  attach_function :zproc_log_notice, [:string, :varargs], :void, **opts
695
754
  rescue ::FFI::NotFoundError
696
755
  if $VERBOSE || $DEBUG
697
- warn "The function zproc_log_notice() can't be used through " +
698
- "this Ruby binding because it's not available."
756
+ warn "The DRAFT function zproc_log_notice()" +
757
+ " is not provided by the installed CZMQ library."
758
+ end
759
+ def self.zproc_log_notice(*)
760
+ raise NotImplementedError, "compile CZMQ with --enable-drafts"
699
761
  end
700
762
  end
701
763
  begin # DRAFT method
702
764
  attach_function :zproc_log_info, [:string, :varargs], :void, **opts
703
765
  rescue ::FFI::NotFoundError
704
766
  if $VERBOSE || $DEBUG
705
- warn "The function zproc_log_info() can't be used through " +
706
- "this Ruby binding because it's not available."
767
+ warn "The DRAFT function zproc_log_info()" +
768
+ " is not provided by the installed CZMQ library."
769
+ end
770
+ def self.zproc_log_info(*)
771
+ raise NotImplementedError, "compile CZMQ with --enable-drafts"
707
772
  end
708
773
  end
709
774
  begin # DRAFT method
710
775
  attach_function :zproc_log_debug, [:string, :varargs], :void, **opts
711
776
  rescue ::FFI::NotFoundError
712
777
  if $VERBOSE || $DEBUG
713
- warn "The function zproc_log_debug() can't be used through " +
714
- "this Ruby binding because it's not available."
778
+ warn "The DRAFT function zproc_log_debug()" +
779
+ " is not provided by the installed CZMQ library."
780
+ end
781
+ def self.zproc_log_debug(*)
782
+ raise NotImplementedError, "compile CZMQ with --enable-drafts"
715
783
  end
716
784
  end
717
785
  begin # DRAFT method
718
786
  attach_function :zproc_test, [:bool], :void, **opts
719
787
  rescue ::FFI::NotFoundError
720
788
  if $VERBOSE || $DEBUG
721
- warn "The function zproc_test() can't be used through " +
722
- "this Ruby binding because it's not available."
789
+ warn "The DRAFT function zproc_test()" +
790
+ " is not provided by the installed CZMQ library."
791
+ end
792
+ def self.zproc_test(*)
793
+ raise NotImplementedError, "compile CZMQ with --enable-drafts"
723
794
  end
724
795
  end
725
796
 
@@ -742,48 +813,66 @@ module CZMQ
742
813
  attach_function :zsock_new_server, [:string], :pointer, **opts
743
814
  rescue ::FFI::NotFoundError
744
815
  if $VERBOSE || $DEBUG
745
- warn "The function zsock_new_server() can't be used through " +
746
- "this Ruby binding because it's not available."
816
+ warn "The DRAFT function zsock_new_server()" +
817
+ " is not provided by the installed CZMQ library."
818
+ end
819
+ def self.zsock_new_server(*)
820
+ raise NotImplementedError, "compile CZMQ with --enable-drafts"
747
821
  end
748
822
  end
749
823
  begin # DRAFT method
750
824
  attach_function :zsock_new_client, [:string], :pointer, **opts
751
825
  rescue ::FFI::NotFoundError
752
826
  if $VERBOSE || $DEBUG
753
- warn "The function zsock_new_client() can't be used through " +
754
- "this Ruby binding because it's not available."
827
+ warn "The DRAFT function zsock_new_client()" +
828
+ " is not provided by the installed CZMQ library."
829
+ end
830
+ def self.zsock_new_client(*)
831
+ raise NotImplementedError, "compile CZMQ with --enable-drafts"
755
832
  end
756
833
  end
757
834
  begin # DRAFT method
758
835
  attach_function :zsock_new_radio, [:string], :pointer, **opts
759
836
  rescue ::FFI::NotFoundError
760
837
  if $VERBOSE || $DEBUG
761
- warn "The function zsock_new_radio() can't be used through " +
762
- "this Ruby binding because it's not available."
838
+ warn "The DRAFT function zsock_new_radio()" +
839
+ " is not provided by the installed CZMQ library."
840
+ end
841
+ def self.zsock_new_radio(*)
842
+ raise NotImplementedError, "compile CZMQ with --enable-drafts"
763
843
  end
764
844
  end
765
845
  begin # DRAFT method
766
846
  attach_function :zsock_new_dish, [:string], :pointer, **opts
767
847
  rescue ::FFI::NotFoundError
768
848
  if $VERBOSE || $DEBUG
769
- warn "The function zsock_new_dish() can't be used through " +
770
- "this Ruby binding because it's not available."
849
+ warn "The DRAFT function zsock_new_dish()" +
850
+ " is not provided by the installed CZMQ library."
851
+ end
852
+ def self.zsock_new_dish(*)
853
+ raise NotImplementedError, "compile CZMQ with --enable-drafts"
771
854
  end
772
855
  end
773
856
  begin # DRAFT method
774
857
  attach_function :zsock_new_gather, [:string], :pointer, **opts
775
858
  rescue ::FFI::NotFoundError
776
859
  if $VERBOSE || $DEBUG
777
- warn "The function zsock_new_gather() can't be used through " +
778
- "this Ruby binding because it's not available."
860
+ warn "The DRAFT function zsock_new_gather()" +
861
+ " is not provided by the installed CZMQ library."
862
+ end
863
+ def self.zsock_new_gather(*)
864
+ raise NotImplementedError, "compile CZMQ with --enable-drafts"
779
865
  end
780
866
  end
781
867
  begin # DRAFT method
782
868
  attach_function :zsock_new_scatter, [:string], :pointer, **opts
783
869
  rescue ::FFI::NotFoundError
784
870
  if $VERBOSE || $DEBUG
785
- warn "The function zsock_new_scatter() can't be used through " +
786
- "this Ruby binding because it's not available."
871
+ warn "The DRAFT function zsock_new_scatter()" +
872
+ " is not provided by the installed CZMQ library."
873
+ end
874
+ def self.zsock_new_scatter(*)
875
+ raise NotImplementedError, "compile CZMQ with --enable-drafts"
787
876
  end
788
877
  end
789
878
  attach_function :zsock_destroy, [:pointer], :void, **opts
@@ -804,16 +893,22 @@ module CZMQ
804
893
  attach_function :zsock_routing_id, [:pointer], :uint32, **opts
805
894
  rescue ::FFI::NotFoundError
806
895
  if $VERBOSE || $DEBUG
807
- warn "The function zsock_routing_id() can't be used through " +
808
- "this Ruby binding because it's not available."
896
+ warn "The DRAFT function zsock_routing_id()" +
897
+ " is not provided by the installed CZMQ library."
898
+ end
899
+ def self.zsock_routing_id(*)
900
+ raise NotImplementedError, "compile CZMQ with --enable-drafts"
809
901
  end
810
902
  end
811
903
  begin # DRAFT method
812
904
  attach_function :zsock_set_routing_id, [:pointer, :uint32], :void, **opts
813
905
  rescue ::FFI::NotFoundError
814
906
  if $VERBOSE || $DEBUG
815
- warn "The function zsock_set_routing_id() can't be used through " +
816
- "this Ruby binding because it's not available."
907
+ warn "The DRAFT function zsock_set_routing_id()" +
908
+ " is not provided by the installed CZMQ library."
909
+ end
910
+ def self.zsock_set_routing_id(*)
911
+ raise NotImplementedError, "compile CZMQ with --enable-drafts"
817
912
  end
818
913
  end
819
914
  attach_function :zsock_set_unbounded, [:pointer], :void, **opts
@@ -824,87 +919,65 @@ module CZMQ
824
919
  attach_function :zsock_join, [:pointer, :string], :int, **opts
825
920
  rescue ::FFI::NotFoundError
826
921
  if $VERBOSE || $DEBUG
827
- warn "The function zsock_join() can't be used through " +
828
- "this Ruby binding because it's not available."
922
+ warn "The DRAFT function zsock_join()" +
923
+ " is not provided by the installed CZMQ library."
924
+ end
925
+ def self.zsock_join(*)
926
+ raise NotImplementedError, "compile CZMQ with --enable-drafts"
829
927
  end
830
928
  end
831
929
  begin # DRAFT method
832
930
  attach_function :zsock_leave, [:pointer, :string], :int, **opts
833
931
  rescue ::FFI::NotFoundError
834
932
  if $VERBOSE || $DEBUG
835
- warn "The function zsock_leave() can't be used through " +
836
- "this Ruby binding because it's not available."
933
+ warn "The DRAFT function zsock_leave()" +
934
+ " is not provided by the installed CZMQ library."
935
+ end
936
+ def self.zsock_leave(*)
937
+ raise NotImplementedError, "compile CZMQ with --enable-drafts"
837
938
  end
838
939
  end
839
940
  attach_function :zsock_is, [:pointer], :bool, **opts
840
941
  attach_function :zsock_resolve, [:pointer], :pointer, **opts
841
- begin # DRAFT method
842
- attach_function :zsock_heartbeat_ivl, [:pointer], :int, **opts
843
- rescue ::FFI::NotFoundError
844
- if $VERBOSE || $DEBUG
845
- warn "The function zsock_heartbeat_ivl() can't be used through " +
846
- "this Ruby binding because it's not available."
847
- end
848
- end
849
- begin # DRAFT method
850
- attach_function :zsock_set_heartbeat_ivl, [:pointer, :int], :void, **opts
851
- rescue ::FFI::NotFoundError
852
- if $VERBOSE || $DEBUG
853
- warn "The function zsock_set_heartbeat_ivl() can't be used through " +
854
- "this Ruby binding because it's not available."
855
- end
856
- end
857
- begin # DRAFT method
858
- attach_function :zsock_heartbeat_ttl, [:pointer], :int, **opts
859
- rescue ::FFI::NotFoundError
860
- if $VERBOSE || $DEBUG
861
- warn "The function zsock_heartbeat_ttl() can't be used through " +
862
- "this Ruby binding because it's not available."
863
- end
864
- end
865
- begin # DRAFT method
866
- attach_function :zsock_set_heartbeat_ttl, [:pointer, :int], :void, **opts
867
- rescue ::FFI::NotFoundError
868
- if $VERBOSE || $DEBUG
869
- warn "The function zsock_set_heartbeat_ttl() can't be used through " +
870
- "this Ruby binding because it's not available."
871
- end
872
- end
873
- begin # DRAFT method
874
- attach_function :zsock_heartbeat_timeout, [:pointer], :int, **opts
875
- rescue ::FFI::NotFoundError
876
- if $VERBOSE || $DEBUG
877
- warn "The function zsock_heartbeat_timeout() can't be used through " +
878
- "this Ruby binding because it's not available."
879
- end
880
- end
881
- begin # DRAFT method
882
- attach_function :zsock_set_heartbeat_timeout, [:pointer, :int], :void, **opts
883
- rescue ::FFI::NotFoundError
884
- if $VERBOSE || $DEBUG
885
- warn "The function zsock_set_heartbeat_timeout() can't be used through " +
886
- "this Ruby binding because it's not available."
887
- end
888
- end
889
- begin # DRAFT method
890
- attach_function :zsock_use_fd, [:pointer], :int, **opts
891
- rescue ::FFI::NotFoundError
892
- if $VERBOSE || $DEBUG
893
- warn "The function zsock_use_fd() can't be used through " +
894
- "this Ruby binding because it's not available."
895
- end
896
- end
897
- begin # DRAFT method
898
- attach_function :zsock_set_use_fd, [:pointer, :int], :void, **opts
899
- rescue ::FFI::NotFoundError
900
- if $VERBOSE || $DEBUG
901
- warn "The function zsock_set_use_fd() can't be used through " +
902
- "this Ruby binding because it's not available."
903
- end
904
- end
942
+ attach_function :zsock_heartbeat_ivl, [:pointer], :int, **opts
943
+ attach_function :zsock_set_heartbeat_ivl, [:pointer, :int], :void, **opts
944
+ attach_function :zsock_heartbeat_ttl, [:pointer], :int, **opts
945
+ attach_function :zsock_set_heartbeat_ttl, [:pointer, :int], :void, **opts
946
+ attach_function :zsock_heartbeat_timeout, [:pointer], :int, **opts
947
+ attach_function :zsock_set_heartbeat_timeout, [:pointer, :int], :void, **opts
948
+ attach_function :zsock_use_fd, [:pointer], :int, **opts
949
+ attach_function :zsock_set_use_fd, [:pointer, :int], :void, **opts
950
+ attach_function :zsock_set_xpub_manual, [:pointer, :int], :void, **opts
951
+ attach_function :zsock_set_xpub_welcome_msg, [:pointer, :string], :void, **opts
952
+ attach_function :zsock_set_stream_notify, [:pointer, :int], :void, **opts
953
+ attach_function :zsock_invert_matching, [:pointer], :int, **opts
954
+ attach_function :zsock_set_invert_matching, [:pointer, :int], :void, **opts
955
+ attach_function :zsock_set_xpub_verboser, [:pointer, :int], :void, **opts
956
+ attach_function :zsock_connect_timeout, [:pointer], :int, **opts
957
+ attach_function :zsock_set_connect_timeout, [:pointer, :int], :void, **opts
958
+ attach_function :zsock_tcp_maxrt, [:pointer], :int, **opts
959
+ attach_function :zsock_set_tcp_maxrt, [:pointer, :int], :void, **opts
960
+ attach_function :zsock_thread_safe, [:pointer], :int, **opts
961
+ attach_function :zsock_multicast_maxtpdu, [:pointer], :int, **opts
962
+ attach_function :zsock_set_multicast_maxtpdu, [:pointer, :int], :void, **opts
963
+ attach_function :zsock_vmci_buffer_size, [:pointer], :int, **opts
964
+ attach_function :zsock_set_vmci_buffer_size, [:pointer, :int], :void, **opts
965
+ attach_function :zsock_vmci_buffer_min_size, [:pointer], :int, **opts
966
+ attach_function :zsock_set_vmci_buffer_min_size, [:pointer, :int], :void, **opts
967
+ attach_function :zsock_vmci_buffer_max_size, [:pointer], :int, **opts
968
+ attach_function :zsock_set_vmci_buffer_max_size, [:pointer, :int], :void, **opts
969
+ attach_function :zsock_vmci_connect_timeout, [:pointer], :int, **opts
970
+ attach_function :zsock_set_vmci_connect_timeout, [:pointer, :int], :void, **opts
905
971
  attach_function :zsock_tos, [:pointer], :int, **opts
906
972
  attach_function :zsock_set_tos, [:pointer, :int], :void, **opts
907
973
  attach_function :zsock_set_router_handover, [:pointer, :int], :void, **opts
974
+ attach_function :zsock_set_connect_rid, [:pointer, :string], :void, **opts
975
+ attach_function :zsock_set_connect_rid_bin, [:pointer, :pointer], :void, **opts
976
+ attach_function :zsock_handshake_ivl, [:pointer], :int, **opts
977
+ attach_function :zsock_set_handshake_ivl, [:pointer, :int], :void, **opts
978
+ attach_function :zsock_socks_proxy, [:pointer], :pointer, **opts
979
+ attach_function :zsock_set_socks_proxy, [:pointer, :string], :void, **opts
980
+ attach_function :zsock_set_xpub_nodrop, [:pointer, :int], :void, **opts
908
981
  attach_function :zsock_set_router_mandatory, [:pointer, :int], :void, **opts
909
982
  attach_function :zsock_set_probe_router, [:pointer, :int], :void, **opts
910
983
  attach_function :zsock_set_req_relaxed, [:pointer, :int], :void, **opts
@@ -1011,8 +1084,11 @@ module CZMQ
1011
1084
  attach_function :zstr_str, [:pointer], :pointer, **opts
1012
1085
  rescue ::FFI::NotFoundError
1013
1086
  if $VERBOSE || $DEBUG
1014
- warn "The function zstr_str() can't be used through " +
1015
- "this Ruby binding because it's not available."
1087
+ warn "The DRAFT function zstr_str()" +
1088
+ " is not provided by the installed CZMQ library."
1089
+ end
1090
+ def self.zstr_str(*)
1091
+ raise NotImplementedError, "compile CZMQ with --enable-drafts"
1016
1092
  end
1017
1093
  end
1018
1094
  attach_function :zstr_free, [:pointer], :void, **opts
@@ -1024,72 +1100,99 @@ module CZMQ
1024
1100
  attach_function :ztimerset_new, [], :pointer, **opts
1025
1101
  rescue ::FFI::NotFoundError
1026
1102
  if $VERBOSE || $DEBUG
1027
- warn "The function ztimerset_new() can't be used through " +
1028
- "this Ruby binding because it's not available."
1103
+ warn "The DRAFT function ztimerset_new()" +
1104
+ " is not provided by the installed CZMQ library."
1105
+ end
1106
+ def self.ztimerset_new(*)
1107
+ raise NotImplementedError, "compile CZMQ with --enable-drafts"
1029
1108
  end
1030
1109
  end
1031
1110
  begin # DRAFT method
1032
1111
  attach_function :ztimerset_destroy, [:pointer], :void, **opts
1033
1112
  rescue ::FFI::NotFoundError
1034
1113
  if $VERBOSE || $DEBUG
1035
- warn "The function ztimerset_destroy() can't be used through " +
1036
- "this Ruby binding because it's not available."
1114
+ warn "The DRAFT function ztimerset_destroy()" +
1115
+ " is not provided by the installed CZMQ library."
1116
+ end
1117
+ def self.ztimerset_destroy(*)
1118
+ raise NotImplementedError, "compile CZMQ with --enable-drafts"
1037
1119
  end
1038
1120
  end
1039
1121
  begin # DRAFT method
1040
1122
  attach_function :ztimerset_add, [:pointer, :size_t, :pointer, :pointer], :int, **opts
1041
1123
  rescue ::FFI::NotFoundError
1042
1124
  if $VERBOSE || $DEBUG
1043
- warn "The function ztimerset_add() can't be used through " +
1044
- "this Ruby binding because it's not available."
1125
+ warn "The DRAFT function ztimerset_add()" +
1126
+ " is not provided by the installed CZMQ library."
1127
+ end
1128
+ def self.ztimerset_add(*)
1129
+ raise NotImplementedError, "compile CZMQ with --enable-drafts"
1045
1130
  end
1046
1131
  end
1047
1132
  begin # DRAFT method
1048
1133
  attach_function :ztimerset_cancel, [:pointer, :int], :int, **opts
1049
1134
  rescue ::FFI::NotFoundError
1050
1135
  if $VERBOSE || $DEBUG
1051
- warn "The function ztimerset_cancel() can't be used through " +
1052
- "this Ruby binding because it's not available."
1136
+ warn "The DRAFT function ztimerset_cancel()" +
1137
+ " is not provided by the installed CZMQ library."
1138
+ end
1139
+ def self.ztimerset_cancel(*)
1140
+ raise NotImplementedError, "compile CZMQ with --enable-drafts"
1053
1141
  end
1054
1142
  end
1055
1143
  begin # DRAFT method
1056
1144
  attach_function :ztimerset_set_interval, [:pointer, :int, :size_t], :int, **opts
1057
1145
  rescue ::FFI::NotFoundError
1058
1146
  if $VERBOSE || $DEBUG
1059
- warn "The function ztimerset_set_interval() can't be used through " +
1060
- "this Ruby binding because it's not available."
1147
+ warn "The DRAFT function ztimerset_set_interval()" +
1148
+ " is not provided by the installed CZMQ library."
1149
+ end
1150
+ def self.ztimerset_set_interval(*)
1151
+ raise NotImplementedError, "compile CZMQ with --enable-drafts"
1061
1152
  end
1062
1153
  end
1063
1154
  begin # DRAFT method
1064
1155
  attach_function :ztimerset_reset, [:pointer, :int], :int, **opts
1065
1156
  rescue ::FFI::NotFoundError
1066
1157
  if $VERBOSE || $DEBUG
1067
- warn "The function ztimerset_reset() can't be used through " +
1068
- "this Ruby binding because it's not available."
1158
+ warn "The DRAFT function ztimerset_reset()" +
1159
+ " is not provided by the installed CZMQ library."
1160
+ end
1161
+ def self.ztimerset_reset(*)
1162
+ raise NotImplementedError, "compile CZMQ with --enable-drafts"
1069
1163
  end
1070
1164
  end
1071
1165
  begin # DRAFT method
1072
1166
  attach_function :ztimerset_timeout, [:pointer], :int, **opts
1073
1167
  rescue ::FFI::NotFoundError
1074
1168
  if $VERBOSE || $DEBUG
1075
- warn "The function ztimerset_timeout() can't be used through " +
1076
- "this Ruby binding because it's not available."
1169
+ warn "The DRAFT function ztimerset_timeout()" +
1170
+ " is not provided by the installed CZMQ library."
1171
+ end
1172
+ def self.ztimerset_timeout(*)
1173
+ raise NotImplementedError, "compile CZMQ with --enable-drafts"
1077
1174
  end
1078
1175
  end
1079
1176
  begin # DRAFT method
1080
1177
  attach_function :ztimerset_execute, [:pointer], :int, **opts
1081
1178
  rescue ::FFI::NotFoundError
1082
1179
  if $VERBOSE || $DEBUG
1083
- warn "The function ztimerset_execute() can't be used through " +
1084
- "this Ruby binding because it's not available."
1180
+ warn "The DRAFT function ztimerset_execute()" +
1181
+ " is not provided by the installed CZMQ library."
1182
+ end
1183
+ def self.ztimerset_execute(*)
1184
+ raise NotImplementedError, "compile CZMQ with --enable-drafts"
1085
1185
  end
1086
1186
  end
1087
1187
  begin # DRAFT method
1088
1188
  attach_function :ztimerset_test, [:bool], :void, **opts
1089
1189
  rescue ::FFI::NotFoundError
1090
1190
  if $VERBOSE || $DEBUG
1091
- warn "The function ztimerset_test() can't be used through " +
1092
- "this Ruby binding because it's not available."
1191
+ warn "The DRAFT function ztimerset_test()" +
1192
+ " is not provided by the installed CZMQ library."
1193
+ end
1194
+ def self.ztimerset_test(*)
1195
+ raise NotImplementedError, "compile CZMQ with --enable-drafts"
1093
1196
  end
1094
1197
  end
1095
1198
 
@@ -1099,88 +1202,121 @@ module CZMQ
1099
1202
  attach_function :ztrie_new, [:pointer], :pointer, **opts
1100
1203
  rescue ::FFI::NotFoundError
1101
1204
  if $VERBOSE || $DEBUG
1102
- warn "The function ztrie_new() can't be used through " +
1103
- "this Ruby binding because it's not available."
1205
+ warn "The DRAFT function ztrie_new()" +
1206
+ " is not provided by the installed CZMQ library."
1207
+ end
1208
+ def self.ztrie_new(*)
1209
+ raise NotImplementedError, "compile CZMQ with --enable-drafts"
1104
1210
  end
1105
1211
  end
1106
1212
  begin # DRAFT method
1107
1213
  attach_function :ztrie_destroy, [:pointer], :void, **opts
1108
1214
  rescue ::FFI::NotFoundError
1109
1215
  if $VERBOSE || $DEBUG
1110
- warn "The function ztrie_destroy() can't be used through " +
1111
- "this Ruby binding because it's not available."
1216
+ warn "The DRAFT function ztrie_destroy()" +
1217
+ " is not provided by the installed CZMQ library."
1218
+ end
1219
+ def self.ztrie_destroy(*)
1220
+ raise NotImplementedError, "compile CZMQ with --enable-drafts"
1112
1221
  end
1113
1222
  end
1114
1223
  begin # DRAFT method
1115
1224
  attach_function :ztrie_insert_route, [:pointer, :string, :pointer, :pointer], :int, **opts
1116
1225
  rescue ::FFI::NotFoundError
1117
1226
  if $VERBOSE || $DEBUG
1118
- warn "The function ztrie_insert_route() can't be used through " +
1119
- "this Ruby binding because it's not available."
1227
+ warn "The DRAFT function ztrie_insert_route()" +
1228
+ " is not provided by the installed CZMQ library."
1229
+ end
1230
+ def self.ztrie_insert_route(*)
1231
+ raise NotImplementedError, "compile CZMQ with --enable-drafts"
1120
1232
  end
1121
1233
  end
1122
1234
  begin # DRAFT method
1123
1235
  attach_function :ztrie_remove_route, [:pointer, :string], :int, **opts
1124
1236
  rescue ::FFI::NotFoundError
1125
1237
  if $VERBOSE || $DEBUG
1126
- warn "The function ztrie_remove_route() can't be used through " +
1127
- "this Ruby binding because it's not available."
1238
+ warn "The DRAFT function ztrie_remove_route()" +
1239
+ " is not provided by the installed CZMQ library."
1240
+ end
1241
+ def self.ztrie_remove_route(*)
1242
+ raise NotImplementedError, "compile CZMQ with --enable-drafts"
1128
1243
  end
1129
1244
  end
1130
1245
  begin # DRAFT method
1131
1246
  attach_function :ztrie_matches, [:pointer, :string], :bool, **opts
1132
1247
  rescue ::FFI::NotFoundError
1133
1248
  if $VERBOSE || $DEBUG
1134
- warn "The function ztrie_matches() can't be used through " +
1135
- "this Ruby binding because it's not available."
1249
+ warn "The DRAFT function ztrie_matches()" +
1250
+ " is not provided by the installed CZMQ library."
1251
+ end
1252
+ def self.ztrie_matches(*)
1253
+ raise NotImplementedError, "compile CZMQ with --enable-drafts"
1136
1254
  end
1137
1255
  end
1138
1256
  begin # DRAFT method
1139
1257
  attach_function :ztrie_hit_data, [:pointer], :pointer, **opts
1140
1258
  rescue ::FFI::NotFoundError
1141
1259
  if $VERBOSE || $DEBUG
1142
- warn "The function ztrie_hit_data() can't be used through " +
1143
- "this Ruby binding because it's not available."
1260
+ warn "The DRAFT function ztrie_hit_data()" +
1261
+ " is not provided by the installed CZMQ library."
1262
+ end
1263
+ def self.ztrie_hit_data(*)
1264
+ raise NotImplementedError, "compile CZMQ with --enable-drafts"
1144
1265
  end
1145
1266
  end
1146
1267
  begin # DRAFT method
1147
1268
  attach_function :ztrie_hit_parameter_count, [:pointer], :size_t, **opts
1148
1269
  rescue ::FFI::NotFoundError
1149
1270
  if $VERBOSE || $DEBUG
1150
- warn "The function ztrie_hit_parameter_count() can't be used through " +
1151
- "this Ruby binding because it's not available."
1271
+ warn "The DRAFT function ztrie_hit_parameter_count()" +
1272
+ " is not provided by the installed CZMQ library."
1273
+ end
1274
+ def self.ztrie_hit_parameter_count(*)
1275
+ raise NotImplementedError, "compile CZMQ with --enable-drafts"
1152
1276
  end
1153
1277
  end
1154
1278
  begin # DRAFT method
1155
1279
  attach_function :ztrie_hit_parameters, [:pointer], :pointer, **opts
1156
1280
  rescue ::FFI::NotFoundError
1157
1281
  if $VERBOSE || $DEBUG
1158
- warn "The function ztrie_hit_parameters() can't be used through " +
1159
- "this Ruby binding because it's not available."
1282
+ warn "The DRAFT function ztrie_hit_parameters()" +
1283
+ " is not provided by the installed CZMQ library."
1284
+ end
1285
+ def self.ztrie_hit_parameters(*)
1286
+ raise NotImplementedError, "compile CZMQ with --enable-drafts"
1160
1287
  end
1161
1288
  end
1162
1289
  begin # DRAFT method
1163
1290
  attach_function :ztrie_hit_asterisk_match, [:pointer], :string, **opts
1164
1291
  rescue ::FFI::NotFoundError
1165
1292
  if $VERBOSE || $DEBUG
1166
- warn "The function ztrie_hit_asterisk_match() can't be used through " +
1167
- "this Ruby binding because it's not available."
1293
+ warn "The DRAFT function ztrie_hit_asterisk_match()" +
1294
+ " is not provided by the installed CZMQ library."
1295
+ end
1296
+ def self.ztrie_hit_asterisk_match(*)
1297
+ raise NotImplementedError, "compile CZMQ with --enable-drafts"
1168
1298
  end
1169
1299
  end
1170
1300
  begin # DRAFT method
1171
1301
  attach_function :ztrie_print, [:pointer], :void, **opts
1172
1302
  rescue ::FFI::NotFoundError
1173
1303
  if $VERBOSE || $DEBUG
1174
- warn "The function ztrie_print() can't be used through " +
1175
- "this Ruby binding because it's not available."
1304
+ warn "The DRAFT function ztrie_print()" +
1305
+ " is not provided by the installed CZMQ library."
1306
+ end
1307
+ def self.ztrie_print(*)
1308
+ raise NotImplementedError, "compile CZMQ with --enable-drafts"
1176
1309
  end
1177
1310
  end
1178
1311
  begin # DRAFT method
1179
1312
  attach_function :ztrie_test, [:bool], :void, **opts
1180
1313
  rescue ::FFI::NotFoundError
1181
1314
  if $VERBOSE || $DEBUG
1182
- warn "The function ztrie_test() can't be used through " +
1183
- "this Ruby binding because it's not available."
1315
+ warn "The DRAFT function ztrie_test()" +
1316
+ " is not provided by the installed CZMQ library."
1317
+ end
1318
+ def self.ztrie_test(*)
1319
+ raise NotImplementedError, "compile CZMQ with --enable-drafts"
1184
1320
  end
1185
1321
  end
1186
1322