czmq-ffi-gen 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.
- checksums.yaml +4 -4
- data/CHANGES.md +6 -0
- data/LICENSE +1 -1
- data/README.md +38 -25
- data/lib/czmq-ffi-gen/czmq/ffi/zactor.rb +1 -1
- data/lib/czmq-ffi-gen/czmq/ffi/zarmour.rb +1 -1
- data/lib/czmq-ffi-gen/czmq/ffi/zcert.rb +1 -1
- data/lib/czmq-ffi-gen/czmq/ffi/zcertstore.rb +1 -1
- data/lib/czmq-ffi-gen/czmq/ffi/zchunk.rb +1 -1
- data/lib/czmq-ffi-gen/czmq/ffi/zclock.rb +140 -0
- data/lib/czmq-ffi-gen/czmq/ffi/zdigest.rb +156 -0
- data/lib/czmq-ffi-gen/czmq/ffi/zhash.rb +2 -4
- data/lib/czmq-ffi-gen/czmq/ffi/zhashx.rb +4 -2
- data/lib/czmq-ffi-gen/czmq/ffi/zlistx.rb +429 -0
- data/lib/czmq-ffi-gen/czmq/ffi.rb +449 -48
- data/lib/czmq-ffi-gen/gem_version.rb +1 -1
- data/lib/czmq-ffi-gen/legacy.rb +16 -0
- data/lib/czmq-ffi-gen.rb +1 -0
- metadata +6 -2
@@ -87,7 +87,14 @@ module CZMQ
|
|
87
87
|
attach_function :zcert_public_txt, [:pointer], :pointer, **opts
|
88
88
|
attach_function :zcert_secret_txt, [:pointer], :pointer, **opts
|
89
89
|
attach_function :zcert_set_meta, [:pointer, :string, :string, :varargs], :void, **opts
|
90
|
-
|
90
|
+
begin # DRAFT method
|
91
|
+
attach_function :zcert_unset_meta, [:pointer, :string], :void, **opts
|
92
|
+
rescue ::FFI::NotFoundError
|
93
|
+
if $VERBOSE || $DEBUG
|
94
|
+
warn "The function unset_meta() can't be used through " +
|
95
|
+
"this Ruby binding because it's not available."
|
96
|
+
end
|
97
|
+
end
|
91
98
|
attach_function :zcert_meta, [:pointer, :string], :pointer, **opts
|
92
99
|
attach_function :zcert_meta_keys, [:pointer], :pointer, **opts
|
93
100
|
attach_function :zcert_save, [:pointer, :string], :int, **opts
|
@@ -141,6 +148,15 @@ module CZMQ
|
|
141
148
|
|
142
149
|
require_relative 'ffi/zchunk'
|
143
150
|
|
151
|
+
attach_function :zclock_sleep, [:int], :void, **opts
|
152
|
+
attach_function :zclock_time, [], :pointer, **opts
|
153
|
+
attach_function :zclock_mono, [], :pointer, **opts
|
154
|
+
attach_function :zclock_usecs, [], :pointer, **opts
|
155
|
+
attach_function :zclock_timestr, [], :pointer, **opts
|
156
|
+
attach_function :zclock_test, [:bool], :void, **opts
|
157
|
+
|
158
|
+
require_relative 'ffi/zclock'
|
159
|
+
|
144
160
|
attach_function :zconfig_new, [:string, :pointer], :pointer, **opts
|
145
161
|
attach_function :zconfig_load, [:string], :pointer, **opts
|
146
162
|
attach_function :zconfig_loadf, [:string, :varargs], :pointer, **opts
|
@@ -174,6 +190,16 @@ module CZMQ
|
|
174
190
|
|
175
191
|
require_relative 'ffi/zconfig'
|
176
192
|
|
193
|
+
attach_function :zdigest_new, [], :pointer, **opts
|
194
|
+
attach_function :zdigest_destroy, [:pointer], :void, **opts
|
195
|
+
attach_function :zdigest_update, [:pointer, :pointer, :size_t], :void, **opts
|
196
|
+
attach_function :zdigest_data, [:pointer], :pointer, **opts
|
197
|
+
attach_function :zdigest_size, [:pointer], :size_t, **opts
|
198
|
+
attach_function :zdigest_string, [:pointer], :pointer, **opts
|
199
|
+
attach_function :zdigest_test, [:bool], :void, **opts
|
200
|
+
|
201
|
+
require_relative 'ffi/zdigest'
|
202
|
+
|
177
203
|
attach_function :zdir_new, [:string, :string], :pointer, **opts
|
178
204
|
attach_function :zdir_destroy, [:pointer], :void, **opts
|
179
205
|
attach_function :zdir_path, [:pointer], :string, **opts
|
@@ -251,8 +277,22 @@ module CZMQ
|
|
251
277
|
attach_function :zframe_streq, [:pointer, :string], :bool, **opts
|
252
278
|
attach_function :zframe_more, [:pointer], :int, **opts
|
253
279
|
attach_function :zframe_set_more, [:pointer, :int], :void, **opts
|
254
|
-
|
255
|
-
|
280
|
+
begin # DRAFT method
|
281
|
+
attach_function :zframe_routing_id, [:pointer], :uint32, **opts
|
282
|
+
rescue ::FFI::NotFoundError
|
283
|
+
if $VERBOSE || $DEBUG
|
284
|
+
warn "The function routing_id() can't be used through " +
|
285
|
+
"this Ruby binding because it's not available."
|
286
|
+
end
|
287
|
+
end
|
288
|
+
begin # DRAFT method
|
289
|
+
attach_function :zframe_set_routing_id, [:pointer, :uint32], :void, **opts
|
290
|
+
rescue ::FFI::NotFoundError
|
291
|
+
if $VERBOSE || $DEBUG
|
292
|
+
warn "The function set_routing_id() can't be used through " +
|
293
|
+
"this Ruby binding because it's not available."
|
294
|
+
end
|
295
|
+
end
|
256
296
|
attach_function :zframe_eq, [:pointer, :pointer], :bool, **opts
|
257
297
|
attach_function :zframe_reset, [:pointer, :pointer, :size_t], :void, **opts
|
258
298
|
attach_function :zframe_print, [:pointer, :string], :void, **opts
|
@@ -360,6 +400,52 @@ module CZMQ
|
|
360
400
|
|
361
401
|
require_relative 'ffi/zlist'
|
362
402
|
|
403
|
+
attach_function :zlistx_new, [], :pointer, **opts
|
404
|
+
attach_function :zlistx_destroy, [:pointer], :void, **opts
|
405
|
+
attach_function :zlistx_add_start, [:pointer, :pointer], :pointer, **opts
|
406
|
+
attach_function :zlistx_add_end, [:pointer, :pointer], :pointer, **opts
|
407
|
+
attach_function :zlistx_size, [:pointer], :size_t, **opts
|
408
|
+
begin # DRAFT method
|
409
|
+
attach_function :zlistx_head, [:pointer], :pointer, **opts
|
410
|
+
rescue ::FFI::NotFoundError
|
411
|
+
if $VERBOSE || $DEBUG
|
412
|
+
warn "The function head() can't be used through " +
|
413
|
+
"this Ruby binding because it's not available."
|
414
|
+
end
|
415
|
+
end
|
416
|
+
begin # DRAFT method
|
417
|
+
attach_function :zlistx_tail, [:pointer], :pointer, **opts
|
418
|
+
rescue ::FFI::NotFoundError
|
419
|
+
if $VERBOSE || $DEBUG
|
420
|
+
warn "The function tail() can't be used through " +
|
421
|
+
"this Ruby binding because it's not available."
|
422
|
+
end
|
423
|
+
end
|
424
|
+
attach_function :zlistx_first, [:pointer], :pointer, **opts
|
425
|
+
attach_function :zlistx_next, [:pointer], :pointer, **opts
|
426
|
+
attach_function :zlistx_prev, [:pointer], :pointer, **opts
|
427
|
+
attach_function :zlistx_last, [:pointer], :pointer, **opts
|
428
|
+
attach_function :zlistx_item, [:pointer], :pointer, **opts
|
429
|
+
attach_function :zlistx_cursor, [:pointer], :pointer, **opts
|
430
|
+
attach_function :zlistx_handle_item, [:pointer], :pointer, **opts
|
431
|
+
attach_function :zlistx_find, [:pointer, :pointer], :pointer, **opts
|
432
|
+
attach_function :zlistx_detach, [:pointer, :pointer], :pointer, **opts
|
433
|
+
attach_function :zlistx_detach_cur, [:pointer], :pointer, **opts
|
434
|
+
attach_function :zlistx_delete, [:pointer, :pointer], :int, **opts
|
435
|
+
attach_function :zlistx_move_start, [:pointer, :pointer], :void, **opts
|
436
|
+
attach_function :zlistx_move_end, [:pointer, :pointer], :void, **opts
|
437
|
+
attach_function :zlistx_purge, [:pointer], :void, **opts
|
438
|
+
attach_function :zlistx_sort, [:pointer], :void, **opts
|
439
|
+
attach_function :zlistx_insert, [:pointer, :pointer, :bool], :pointer, **opts
|
440
|
+
attach_function :zlistx_reorder, [:pointer, :pointer, :bool], :void, **opts
|
441
|
+
attach_function :zlistx_dup, [:pointer], :pointer, **opts
|
442
|
+
attach_function :zlistx_set_destructor, [:pointer, :pointer], :void, **opts
|
443
|
+
attach_function :zlistx_set_duplicator, [:pointer, :pointer], :void, **opts
|
444
|
+
attach_function :zlistx_set_comparator, [:pointer, :pointer], :void, **opts
|
445
|
+
attach_function :zlistx_test, [:bool], :void, **opts
|
446
|
+
|
447
|
+
require_relative 'ffi/zlistx'
|
448
|
+
|
363
449
|
attach_function :zloop_new, [], :pointer, **opts
|
364
450
|
attach_function :zloop_destroy, [:pointer], :void, **opts
|
365
451
|
attach_function :zloop_reader, [:pointer, :pointer, :pointer, :pointer], :int, **opts
|
@@ -376,7 +462,14 @@ module CZMQ
|
|
376
462
|
attach_function :zloop_set_ticket_delay, [:pointer, :size_t], :void, **opts
|
377
463
|
attach_function :zloop_set_max_timers, [:pointer, :size_t], :void, **opts
|
378
464
|
attach_function :zloop_set_verbose, [:pointer, :bool], :void, **opts
|
379
|
-
|
465
|
+
begin # DRAFT method
|
466
|
+
attach_function :zloop_set_nonstop, [:pointer, :bool], :void, **opts
|
467
|
+
rescue ::FFI::NotFoundError
|
468
|
+
if $VERBOSE || $DEBUG
|
469
|
+
warn "The function set_nonstop() can't be used through " +
|
470
|
+
"this Ruby binding because it's not available."
|
471
|
+
end
|
472
|
+
end
|
380
473
|
attach_function :zloop_start, [:pointer], :int, **opts
|
381
474
|
attach_function :zloop_test, [:bool], :void, **opts
|
382
475
|
|
@@ -392,8 +485,22 @@ module CZMQ
|
|
392
485
|
attach_function :zmsg_sendm, [:pointer, :pointer], :int, **opts
|
393
486
|
attach_function :zmsg_size, [:pointer], :size_t, **opts
|
394
487
|
attach_function :zmsg_content_size, [:pointer], :size_t, **opts
|
395
|
-
|
396
|
-
|
488
|
+
begin # DRAFT method
|
489
|
+
attach_function :zmsg_routing_id, [:pointer], :uint32, **opts
|
490
|
+
rescue ::FFI::NotFoundError
|
491
|
+
if $VERBOSE || $DEBUG
|
492
|
+
warn "The function routing_id() can't be used through " +
|
493
|
+
"this Ruby binding because it's not available."
|
494
|
+
end
|
495
|
+
end
|
496
|
+
begin # DRAFT method
|
497
|
+
attach_function :zmsg_set_routing_id, [:pointer, :uint32], :void, **opts
|
498
|
+
rescue ::FFI::NotFoundError
|
499
|
+
if $VERBOSE || $DEBUG
|
500
|
+
warn "The function set_routing_id() can't be used through " +
|
501
|
+
"this Ruby binding because it's not available."
|
502
|
+
end
|
503
|
+
end
|
397
504
|
attach_function :zmsg_prepend, [:pointer, :pointer], :int, **opts
|
398
505
|
attach_function :zmsg_append, [:pointer, :pointer], :int, **opts
|
399
506
|
attach_function :zmsg_pop, [:pointer], :pointer, **opts
|
@@ -425,7 +532,14 @@ module CZMQ
|
|
425
532
|
attach_function :zpoller_destroy, [:pointer], :void, **opts
|
426
533
|
attach_function :zpoller_add, [:pointer, :pointer], :int, **opts
|
427
534
|
attach_function :zpoller_remove, [:pointer, :pointer], :int, **opts
|
428
|
-
|
535
|
+
begin # DRAFT method
|
536
|
+
attach_function :zpoller_set_nonstop, [:pointer, :bool], :void, **opts
|
537
|
+
rescue ::FFI::NotFoundError
|
538
|
+
if $VERBOSE || $DEBUG
|
539
|
+
warn "The function set_nonstop() can't be used through " +
|
540
|
+
"this Ruby binding because it's not available."
|
541
|
+
end
|
542
|
+
end
|
429
543
|
attach_function :zpoller_wait, [:pointer, :int], :pointer, **opts
|
430
544
|
attach_function :zpoller_expired, [:pointer], :bool, **opts
|
431
545
|
attach_function :zpoller_terminated, [:pointer], :bool, **opts
|
@@ -433,25 +547,158 @@ module CZMQ
|
|
433
547
|
|
434
548
|
require_relative 'ffi/zpoller'
|
435
549
|
|
436
|
-
|
437
|
-
|
438
|
-
|
439
|
-
|
440
|
-
|
441
|
-
|
442
|
-
|
443
|
-
|
444
|
-
|
445
|
-
|
446
|
-
|
447
|
-
|
448
|
-
|
449
|
-
|
450
|
-
|
451
|
-
|
452
|
-
|
453
|
-
|
454
|
-
|
550
|
+
begin # DRAFT method
|
551
|
+
attach_function :zproc_czmq_version, [], :int, **opts
|
552
|
+
rescue ::FFI::NotFoundError
|
553
|
+
if $VERBOSE || $DEBUG
|
554
|
+
warn "The function czmq_version() can't be used through " +
|
555
|
+
"this Ruby binding because it's not available."
|
556
|
+
end
|
557
|
+
end
|
558
|
+
begin # DRAFT method
|
559
|
+
attach_function :zproc_interrupted, [], :bool, **opts
|
560
|
+
rescue ::FFI::NotFoundError
|
561
|
+
if $VERBOSE || $DEBUG
|
562
|
+
warn "The function interrupted() can't be used through " +
|
563
|
+
"this Ruby binding because it's not available."
|
564
|
+
end
|
565
|
+
end
|
566
|
+
begin # DRAFT method
|
567
|
+
attach_function :zproc_has_curve, [], :bool, **opts
|
568
|
+
rescue ::FFI::NotFoundError
|
569
|
+
if $VERBOSE || $DEBUG
|
570
|
+
warn "The function has_curve() can't be used through " +
|
571
|
+
"this Ruby binding because it's not available."
|
572
|
+
end
|
573
|
+
end
|
574
|
+
begin # DRAFT method
|
575
|
+
attach_function :zproc_hostname, [], :pointer, **opts
|
576
|
+
rescue ::FFI::NotFoundError
|
577
|
+
if $VERBOSE || $DEBUG
|
578
|
+
warn "The function hostname() can't be used through " +
|
579
|
+
"this Ruby binding because it's not available."
|
580
|
+
end
|
581
|
+
end
|
582
|
+
begin # DRAFT method
|
583
|
+
attach_function :zproc_daemonize, [:string], :void, **opts
|
584
|
+
rescue ::FFI::NotFoundError
|
585
|
+
if $VERBOSE || $DEBUG
|
586
|
+
warn "The function daemonize() can't be used through " +
|
587
|
+
"this Ruby binding because it's not available."
|
588
|
+
end
|
589
|
+
end
|
590
|
+
begin # DRAFT method
|
591
|
+
attach_function :zproc_run_as, [:string, :string, :string], :void, **opts
|
592
|
+
rescue ::FFI::NotFoundError
|
593
|
+
if $VERBOSE || $DEBUG
|
594
|
+
warn "The function run_as() can't be used through " +
|
595
|
+
"this Ruby binding because it's not available."
|
596
|
+
end
|
597
|
+
end
|
598
|
+
begin # DRAFT method
|
599
|
+
attach_function :zproc_set_io_threads, [:size_t], :void, **opts
|
600
|
+
rescue ::FFI::NotFoundError
|
601
|
+
if $VERBOSE || $DEBUG
|
602
|
+
warn "The function set_io_threads() can't be used through " +
|
603
|
+
"this Ruby binding because it's not available."
|
604
|
+
end
|
605
|
+
end
|
606
|
+
begin # DRAFT method
|
607
|
+
attach_function :zproc_set_max_sockets, [:size_t], :void, **opts
|
608
|
+
rescue ::FFI::NotFoundError
|
609
|
+
if $VERBOSE || $DEBUG
|
610
|
+
warn "The function set_max_sockets() can't be used through " +
|
611
|
+
"this Ruby binding because it's not available."
|
612
|
+
end
|
613
|
+
end
|
614
|
+
begin # DRAFT method
|
615
|
+
attach_function :zproc_set_biface, [:string], :void, **opts
|
616
|
+
rescue ::FFI::NotFoundError
|
617
|
+
if $VERBOSE || $DEBUG
|
618
|
+
warn "The function set_biface() can't be used through " +
|
619
|
+
"this Ruby binding because it's not available."
|
620
|
+
end
|
621
|
+
end
|
622
|
+
begin # DRAFT method
|
623
|
+
attach_function :zproc_biface, [], :string, **opts
|
624
|
+
rescue ::FFI::NotFoundError
|
625
|
+
if $VERBOSE || $DEBUG
|
626
|
+
warn "The function biface() can't be used through " +
|
627
|
+
"this Ruby binding because it's not available."
|
628
|
+
end
|
629
|
+
end
|
630
|
+
begin # DRAFT method
|
631
|
+
attach_function :zproc_set_log_ident, [:string], :void, **opts
|
632
|
+
rescue ::FFI::NotFoundError
|
633
|
+
if $VERBOSE || $DEBUG
|
634
|
+
warn "The function set_log_ident() can't be used through " +
|
635
|
+
"this Ruby binding because it's not available."
|
636
|
+
end
|
637
|
+
end
|
638
|
+
begin # DRAFT method
|
639
|
+
attach_function :zproc_set_log_sender, [:string], :void, **opts
|
640
|
+
rescue ::FFI::NotFoundError
|
641
|
+
if $VERBOSE || $DEBUG
|
642
|
+
warn "The function set_log_sender() can't be used through " +
|
643
|
+
"this Ruby binding because it's not available."
|
644
|
+
end
|
645
|
+
end
|
646
|
+
begin # DRAFT method
|
647
|
+
attach_function :zproc_set_log_system, [:bool], :void, **opts
|
648
|
+
rescue ::FFI::NotFoundError
|
649
|
+
if $VERBOSE || $DEBUG
|
650
|
+
warn "The function set_log_system() can't be used through " +
|
651
|
+
"this Ruby binding because it's not available."
|
652
|
+
end
|
653
|
+
end
|
654
|
+
begin # DRAFT method
|
655
|
+
attach_function :zproc_log_error, [:string, :varargs], :void, **opts
|
656
|
+
rescue ::FFI::NotFoundError
|
657
|
+
if $VERBOSE || $DEBUG
|
658
|
+
warn "The function log_error() can't be used through " +
|
659
|
+
"this Ruby binding because it's not available."
|
660
|
+
end
|
661
|
+
end
|
662
|
+
begin # DRAFT method
|
663
|
+
attach_function :zproc_log_warning, [:string, :varargs], :void, **opts
|
664
|
+
rescue ::FFI::NotFoundError
|
665
|
+
if $VERBOSE || $DEBUG
|
666
|
+
warn "The function log_warning() can't be used through " +
|
667
|
+
"this Ruby binding because it's not available."
|
668
|
+
end
|
669
|
+
end
|
670
|
+
begin # DRAFT method
|
671
|
+
attach_function :zproc_log_notice, [:string, :varargs], :void, **opts
|
672
|
+
rescue ::FFI::NotFoundError
|
673
|
+
if $VERBOSE || $DEBUG
|
674
|
+
warn "The function log_notice() can't be used through " +
|
675
|
+
"this Ruby binding because it's not available."
|
676
|
+
end
|
677
|
+
end
|
678
|
+
begin # DRAFT method
|
679
|
+
attach_function :zproc_log_info, [:string, :varargs], :void, **opts
|
680
|
+
rescue ::FFI::NotFoundError
|
681
|
+
if $VERBOSE || $DEBUG
|
682
|
+
warn "The function log_info() can't be used through " +
|
683
|
+
"this Ruby binding because it's not available."
|
684
|
+
end
|
685
|
+
end
|
686
|
+
begin # DRAFT method
|
687
|
+
attach_function :zproc_log_debug, [:string, :varargs], :void, **opts
|
688
|
+
rescue ::FFI::NotFoundError
|
689
|
+
if $VERBOSE || $DEBUG
|
690
|
+
warn "The function log_debug() can't be used through " +
|
691
|
+
"this Ruby binding because it's not available."
|
692
|
+
end
|
693
|
+
end
|
694
|
+
begin # DRAFT method
|
695
|
+
attach_function :zproc_test, [:bool], :void, **opts
|
696
|
+
rescue ::FFI::NotFoundError
|
697
|
+
if $VERBOSE || $DEBUG
|
698
|
+
warn "The function test() can't be used through " +
|
699
|
+
"this Ruby binding because it's not available."
|
700
|
+
end
|
701
|
+
end
|
455
702
|
|
456
703
|
require_relative 'ffi/zproc'
|
457
704
|
|
@@ -468,8 +715,22 @@ module CZMQ
|
|
468
715
|
attach_function :zsock_new_xsub, [:string], :pointer, **opts
|
469
716
|
attach_function :zsock_new_pair, [:string], :pointer, **opts
|
470
717
|
attach_function :zsock_new_stream, [:string], :pointer, **opts
|
471
|
-
|
472
|
-
|
718
|
+
begin # DRAFT method
|
719
|
+
attach_function :zsock_new_server, [:string], :pointer, **opts
|
720
|
+
rescue ::FFI::NotFoundError
|
721
|
+
if $VERBOSE || $DEBUG
|
722
|
+
warn "The function new_server() can't be used through " +
|
723
|
+
"this Ruby binding because it's not available."
|
724
|
+
end
|
725
|
+
end
|
726
|
+
begin # DRAFT method
|
727
|
+
attach_function :zsock_new_client, [:string], :pointer, **opts
|
728
|
+
rescue ::FFI::NotFoundError
|
729
|
+
if $VERBOSE || $DEBUG
|
730
|
+
warn "The function new_client() can't be used through " +
|
731
|
+
"this Ruby binding because it's not available."
|
732
|
+
end
|
733
|
+
end
|
473
734
|
attach_function :zsock_destroy, [:pointer], :void, **opts
|
474
735
|
attach_function :zsock_bind, [:pointer, :string, :varargs], :int, **opts
|
475
736
|
attach_function :zsock_endpoint, [:pointer], :string, **opts
|
@@ -484,20 +745,76 @@ module CZMQ
|
|
484
745
|
attach_function :zsock_vrecv, [:pointer, :string, :pointer], :int, **opts
|
485
746
|
attach_function :zsock_bsend, [:pointer, :string, :varargs], :int, **opts
|
486
747
|
attach_function :zsock_brecv, [:pointer, :string, :varargs], :int, **opts
|
487
|
-
|
488
|
-
|
748
|
+
begin # DRAFT method
|
749
|
+
attach_function :zsock_routing_id, [:pointer], :uint32, **opts
|
750
|
+
rescue ::FFI::NotFoundError
|
751
|
+
if $VERBOSE || $DEBUG
|
752
|
+
warn "The function routing_id() can't be used through " +
|
753
|
+
"this Ruby binding because it's not available."
|
754
|
+
end
|
755
|
+
end
|
756
|
+
begin # DRAFT method
|
757
|
+
attach_function :zsock_set_routing_id, [:pointer, :uint32], :void, **opts
|
758
|
+
rescue ::FFI::NotFoundError
|
759
|
+
if $VERBOSE || $DEBUG
|
760
|
+
warn "The function set_routing_id() can't be used through " +
|
761
|
+
"this Ruby binding because it's not available."
|
762
|
+
end
|
763
|
+
end
|
489
764
|
attach_function :zsock_set_unbounded, [:pointer], :void, **opts
|
490
765
|
attach_function :zsock_signal, [:pointer, :char], :int, **opts
|
491
766
|
attach_function :zsock_wait, [:pointer], :int, **opts
|
492
767
|
attach_function :zsock_flush, [:pointer], :void, **opts
|
493
768
|
attach_function :zsock_is, [:pointer], :bool, **opts
|
494
769
|
attach_function :zsock_resolve, [:pointer], :pointer, **opts
|
495
|
-
|
496
|
-
|
497
|
-
|
498
|
-
|
499
|
-
|
500
|
-
|
770
|
+
begin # DRAFT method
|
771
|
+
attach_function :zsock_heartbeat_ivl, [:pointer], :int, **opts
|
772
|
+
rescue ::FFI::NotFoundError
|
773
|
+
if $VERBOSE || $DEBUG
|
774
|
+
warn "The function heartbeat_ivl() can't be used through " +
|
775
|
+
"this Ruby binding because it's not available."
|
776
|
+
end
|
777
|
+
end
|
778
|
+
begin # DRAFT method
|
779
|
+
attach_function :zsock_set_heartbeat_ivl, [:pointer, :int], :void, **opts
|
780
|
+
rescue ::FFI::NotFoundError
|
781
|
+
if $VERBOSE || $DEBUG
|
782
|
+
warn "The function set_heartbeat_ivl() can't be used through " +
|
783
|
+
"this Ruby binding because it's not available."
|
784
|
+
end
|
785
|
+
end
|
786
|
+
begin # DRAFT method
|
787
|
+
attach_function :zsock_heartbeat_ttl, [:pointer], :int, **opts
|
788
|
+
rescue ::FFI::NotFoundError
|
789
|
+
if $VERBOSE || $DEBUG
|
790
|
+
warn "The function heartbeat_ttl() can't be used through " +
|
791
|
+
"this Ruby binding because it's not available."
|
792
|
+
end
|
793
|
+
end
|
794
|
+
begin # DRAFT method
|
795
|
+
attach_function :zsock_set_heartbeat_ttl, [:pointer, :int], :void, **opts
|
796
|
+
rescue ::FFI::NotFoundError
|
797
|
+
if $VERBOSE || $DEBUG
|
798
|
+
warn "The function set_heartbeat_ttl() can't be used through " +
|
799
|
+
"this Ruby binding because it's not available."
|
800
|
+
end
|
801
|
+
end
|
802
|
+
begin # DRAFT method
|
803
|
+
attach_function :zsock_heartbeat_timeout, [:pointer], :int, **opts
|
804
|
+
rescue ::FFI::NotFoundError
|
805
|
+
if $VERBOSE || $DEBUG
|
806
|
+
warn "The function heartbeat_timeout() can't be used through " +
|
807
|
+
"this Ruby binding because it's not available."
|
808
|
+
end
|
809
|
+
end
|
810
|
+
begin # DRAFT method
|
811
|
+
attach_function :zsock_set_heartbeat_timeout, [:pointer, :int], :void, **opts
|
812
|
+
rescue ::FFI::NotFoundError
|
813
|
+
if $VERBOSE || $DEBUG
|
814
|
+
warn "The function set_heartbeat_timeout() can't be used through " +
|
815
|
+
"this Ruby binding because it's not available."
|
816
|
+
end
|
817
|
+
end
|
501
818
|
attach_function :zsock_tos, [:pointer], :int, **opts
|
502
819
|
attach_function :zsock_set_tos, [:pointer, :int], :void, **opts
|
503
820
|
attach_function :zsock_set_router_handover, [:pointer, :int], :void, **opts
|
@@ -603,23 +920,107 @@ module CZMQ
|
|
603
920
|
attach_function :zstr_sendf, [:pointer, :string, :varargs], :int, **opts
|
604
921
|
attach_function :zstr_sendfm, [:pointer, :string, :varargs], :int, **opts
|
605
922
|
attach_function :zstr_sendx, [:pointer, :string, :varargs], :int, **opts
|
606
|
-
|
923
|
+
begin # DRAFT method
|
924
|
+
attach_function :zstr_str, [:pointer], :pointer, **opts
|
925
|
+
rescue ::FFI::NotFoundError
|
926
|
+
if $VERBOSE || $DEBUG
|
927
|
+
warn "The function str() can't be used through " +
|
928
|
+
"this Ruby binding because it's not available."
|
929
|
+
end
|
930
|
+
end
|
607
931
|
attach_function :zstr_free, [:pointer], :void, **opts
|
608
932
|
attach_function :zstr_test, [:bool], :void, **opts
|
609
933
|
|
610
934
|
require_relative 'ffi/zstr'
|
611
935
|
|
612
|
-
|
613
|
-
|
614
|
-
|
615
|
-
|
616
|
-
|
617
|
-
|
618
|
-
|
619
|
-
|
620
|
-
|
621
|
-
|
622
|
-
|
936
|
+
begin # DRAFT method
|
937
|
+
attach_function :ztrie_new, [:pointer], :pointer, **opts
|
938
|
+
rescue ::FFI::NotFoundError
|
939
|
+
if $VERBOSE || $DEBUG
|
940
|
+
warn "The function new() can't be used through " +
|
941
|
+
"this Ruby binding because it's not available."
|
942
|
+
end
|
943
|
+
end
|
944
|
+
begin # DRAFT method
|
945
|
+
attach_function :ztrie_destroy, [:pointer], :void, **opts
|
946
|
+
rescue ::FFI::NotFoundError
|
947
|
+
if $VERBOSE || $DEBUG
|
948
|
+
warn "The function destroy() can't be used through " +
|
949
|
+
"this Ruby binding because it's not available."
|
950
|
+
end
|
951
|
+
end
|
952
|
+
begin # DRAFT method
|
953
|
+
attach_function :ztrie_insert_route, [:pointer, :string, :pointer, :pointer], :int, **opts
|
954
|
+
rescue ::FFI::NotFoundError
|
955
|
+
if $VERBOSE || $DEBUG
|
956
|
+
warn "The function insert_route() can't be used through " +
|
957
|
+
"this Ruby binding because it's not available."
|
958
|
+
end
|
959
|
+
end
|
960
|
+
begin # DRAFT method
|
961
|
+
attach_function :ztrie_remove_route, [:pointer, :string], :int, **opts
|
962
|
+
rescue ::FFI::NotFoundError
|
963
|
+
if $VERBOSE || $DEBUG
|
964
|
+
warn "The function remove_route() can't be used through " +
|
965
|
+
"this Ruby binding because it's not available."
|
966
|
+
end
|
967
|
+
end
|
968
|
+
begin # DRAFT method
|
969
|
+
attach_function :ztrie_matches, [:pointer, :string], :bool, **opts
|
970
|
+
rescue ::FFI::NotFoundError
|
971
|
+
if $VERBOSE || $DEBUG
|
972
|
+
warn "The function matches() can't be used through " +
|
973
|
+
"this Ruby binding because it's not available."
|
974
|
+
end
|
975
|
+
end
|
976
|
+
begin # DRAFT method
|
977
|
+
attach_function :ztrie_hit_data, [:pointer], :pointer, **opts
|
978
|
+
rescue ::FFI::NotFoundError
|
979
|
+
if $VERBOSE || $DEBUG
|
980
|
+
warn "The function hit_data() can't be used through " +
|
981
|
+
"this Ruby binding because it's not available."
|
982
|
+
end
|
983
|
+
end
|
984
|
+
begin # DRAFT method
|
985
|
+
attach_function :ztrie_hit_parameter_count, [:pointer], :size_t, **opts
|
986
|
+
rescue ::FFI::NotFoundError
|
987
|
+
if $VERBOSE || $DEBUG
|
988
|
+
warn "The function hit_parameter_count() can't be used through " +
|
989
|
+
"this Ruby binding because it's not available."
|
990
|
+
end
|
991
|
+
end
|
992
|
+
begin # DRAFT method
|
993
|
+
attach_function :ztrie_hit_parameters, [:pointer], :pointer, **opts
|
994
|
+
rescue ::FFI::NotFoundError
|
995
|
+
if $VERBOSE || $DEBUG
|
996
|
+
warn "The function hit_parameters() can't be used through " +
|
997
|
+
"this Ruby binding because it's not available."
|
998
|
+
end
|
999
|
+
end
|
1000
|
+
begin # DRAFT method
|
1001
|
+
attach_function :ztrie_hit_asterisk_match, [:pointer], :string, **opts
|
1002
|
+
rescue ::FFI::NotFoundError
|
1003
|
+
if $VERBOSE || $DEBUG
|
1004
|
+
warn "The function hit_asterisk_match() can't be used through " +
|
1005
|
+
"this Ruby binding because it's not available."
|
1006
|
+
end
|
1007
|
+
end
|
1008
|
+
begin # DRAFT method
|
1009
|
+
attach_function :ztrie_print, [:pointer], :void, **opts
|
1010
|
+
rescue ::FFI::NotFoundError
|
1011
|
+
if $VERBOSE || $DEBUG
|
1012
|
+
warn "The function print() can't be used through " +
|
1013
|
+
"this Ruby binding because it's not available."
|
1014
|
+
end
|
1015
|
+
end
|
1016
|
+
begin # DRAFT method
|
1017
|
+
attach_function :ztrie_test, [:bool], :void, **opts
|
1018
|
+
rescue ::FFI::NotFoundError
|
1019
|
+
if $VERBOSE || $DEBUG
|
1020
|
+
warn "The function test() can't be used through " +
|
1021
|
+
"this Ruby binding because it's not available."
|
1022
|
+
end
|
1023
|
+
end
|
623
1024
|
|
624
1025
|
require_relative 'ffi/ztrie'
|
625
1026
|
|
@@ -0,0 +1,16 @@
|
|
1
|
+
module CZMQ::FFI
|
2
|
+
if available?
|
3
|
+
opts = {
|
4
|
+
blocking: true # only necessary on MRI to deal with the GIL.
|
5
|
+
}
|
6
|
+
|
7
|
+
##
|
8
|
+
# NOTE: this is to support the current stable release, CZMQ 3.0.2
|
9
|
+
#
|
10
|
+
# attach zsys_has_curve (as zproc_has_curve), if zproc_has_curve isn't
|
11
|
+
# available
|
12
|
+
unless methods.include? :zproc_has_curve
|
13
|
+
attach_function :zproc_has_curve, :zsys_has_curve, [], :bool, **opts
|
14
|
+
end
|
15
|
+
end
|
16
|
+
end
|
data/lib/czmq-ffi-gen.rb
CHANGED
@@ -3,4 +3,5 @@ require_relative "czmq-ffi-gen/gem_version"
|
|
3
3
|
require_relative "czmq-ffi-gen/library_version"
|
4
4
|
require_relative "czmq-ffi-gen/errors"
|
5
5
|
require_relative "czmq-ffi-gen/signals"
|
6
|
+
require_relative "czmq-ffi-gen/legacy"
|
6
7
|
CZMQ::FFI.available? or raise LoadError, "libczmq is not available"
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: czmq-ffi-gen
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.
|
4
|
+
version: 0.7.0
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Patrik Wenger
|
8
8
|
autorequire:
|
9
9
|
bindir: exe
|
10
10
|
cert_chain: []
|
11
|
-
date: 2016-01-
|
11
|
+
date: 2016-01-21 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: ffi
|
@@ -100,7 +100,9 @@ files:
|
|
100
100
|
- lib/czmq-ffi-gen/czmq/ffi/zcert.rb
|
101
101
|
- lib/czmq-ffi-gen/czmq/ffi/zcertstore.rb
|
102
102
|
- lib/czmq-ffi-gen/czmq/ffi/zchunk.rb
|
103
|
+
- lib/czmq-ffi-gen/czmq/ffi/zclock.rb
|
103
104
|
- lib/czmq-ffi-gen/czmq/ffi/zconfig.rb
|
105
|
+
- lib/czmq-ffi-gen/czmq/ffi/zdigest.rb
|
104
106
|
- lib/czmq-ffi-gen/czmq/ffi/zdir.rb
|
105
107
|
- lib/czmq-ffi-gen/czmq/ffi/zdir_patch.rb
|
106
108
|
- lib/czmq-ffi-gen/czmq/ffi/zfile.rb
|
@@ -109,6 +111,7 @@ files:
|
|
109
111
|
- lib/czmq-ffi-gen/czmq/ffi/zhashx.rb
|
110
112
|
- lib/czmq-ffi-gen/czmq/ffi/ziflist.rb
|
111
113
|
- lib/czmq-ffi-gen/czmq/ffi/zlist.rb
|
114
|
+
- lib/czmq-ffi-gen/czmq/ffi/zlistx.rb
|
112
115
|
- lib/czmq-ffi-gen/czmq/ffi/zloop.rb
|
113
116
|
- lib/czmq-ffi-gen/czmq/ffi/zmsg.rb
|
114
117
|
- lib/czmq-ffi-gen/czmq/ffi/zpoller.rb
|
@@ -119,6 +122,7 @@ files:
|
|
119
122
|
- lib/czmq-ffi-gen/czmq/ffi/zuuid.rb
|
120
123
|
- lib/czmq-ffi-gen/errors.rb
|
121
124
|
- lib/czmq-ffi-gen/gem_version.rb
|
125
|
+
- lib/czmq-ffi-gen/legacy.rb
|
122
126
|
- lib/czmq-ffi-gen/library_version.rb
|
123
127
|
- lib/czmq-ffi-gen/signals.rb
|
124
128
|
homepage: https://github.com/paddor/czmq-ffi-gen
|