czmq-ffi-gen 0.9.1-x86-mingw32

Sign up to get free protection for your applications and to get access to all the features.
Files changed (118) hide show
  1. checksums.yaml +7 -0
  2. data/AUTHORS +1 -0
  3. data/CHANGES.md +88 -0
  4. data/Gemfile +2 -0
  5. data/LICENSE +14 -0
  6. data/README.md +112 -0
  7. data/lib/czmq-ffi-gen.rb +7 -0
  8. data/lib/czmq-ffi-gen/czmq/ffi.rb +1210 -0
  9. data/lib/czmq-ffi-gen/czmq/ffi/version.rb +15 -0
  10. data/lib/czmq-ffi-gen/czmq/ffi/zactor.rb +186 -0
  11. data/lib/czmq-ffi-gen/czmq/ffi/zarmour.rb +286 -0
  12. data/lib/czmq-ffi-gen/czmq/ffi/zcert.rb +307 -0
  13. data/lib/czmq-ffi-gen/czmq/ffi/zcertstore.rb +222 -0
  14. data/lib/czmq-ffi-gen/czmq/ffi/zchunk.rb +388 -0
  15. data/lib/czmq-ffi-gen/czmq/ffi/zclock.rb +140 -0
  16. data/lib/czmq-ffi-gen/czmq/ffi/zconfig.rb +442 -0
  17. data/lib/czmq-ffi-gen/czmq/ffi/zdigest.rb +156 -0
  18. data/lib/czmq-ffi-gen/czmq/ffi/zdir.rb +283 -0
  19. data/lib/czmq-ffi-gen/czmq/ffi/zdir_patch.rb +194 -0
  20. data/lib/czmq-ffi-gen/czmq/ffi/zfile.rb +353 -0
  21. data/lib/czmq-ffi-gen/czmq/ffi/zframe.rb +359 -0
  22. data/lib/czmq-ffi-gen/czmq/ffi/zhash.rb +416 -0
  23. data/lib/czmq-ffi-gen/czmq/ffi/zhashx.rb +659 -0
  24. data/lib/czmq-ffi-gen/czmq/ffi/ziflist.rb +189 -0
  25. data/lib/czmq-ffi-gen/czmq/ffi/zlist.rb +365 -0
  26. data/lib/czmq-ffi-gen/czmq/ffi/zlistx.rb +478 -0
  27. data/lib/czmq-ffi-gen/czmq/ffi/zloop.rb +396 -0
  28. data/lib/czmq-ffi-gen/czmq/ffi/zmsg.rb +515 -0
  29. data/lib/czmq-ffi-gen/czmq/ffi/zpoller.rb +194 -0
  30. data/lib/czmq-ffi-gen/czmq/ffi/zproc.rb +294 -0
  31. data/lib/czmq-ffi-gen/czmq/ffi/zsock.rb +3479 -0
  32. data/lib/czmq-ffi-gen/czmq/ffi/zstr.rb +203 -0
  33. data/lib/czmq-ffi-gen/czmq/ffi/ztimerset.rb +203 -0
  34. data/lib/czmq-ffi-gen/czmq/ffi/ztrie.rb +221 -0
  35. data/lib/czmq-ffi-gen/czmq/ffi/zuuid.rb +227 -0
  36. data/lib/czmq-ffi-gen/errors.rb +12 -0
  37. data/lib/czmq-ffi-gen/gem_version.rb +5 -0
  38. data/lib/czmq-ffi-gen/legacy.rb +16 -0
  39. data/lib/czmq-ffi-gen/libzmq.rb +18 -0
  40. data/lib/czmq-ffi-gen/signals.rb +27 -0
  41. data/lib/czmq-ffi-gen/vendor.rb +5 -0
  42. data/lib/czmq-ffi-gen/versions.rb +19 -0
  43. data/vendor/local/bin/inproc_lat.exe +0 -0
  44. data/vendor/local/bin/inproc_thr.exe +0 -0
  45. data/vendor/local/bin/libczmq.dll +0 -0
  46. data/vendor/local/bin/libgcc_s_sjlj-1.dll +0 -0
  47. data/vendor/local/bin/libstdc++-6.dll +0 -0
  48. data/vendor/local/bin/libzmq.dll +0 -0
  49. data/vendor/local/bin/local_lat.exe +0 -0
  50. data/vendor/local/bin/local_thr.exe +0 -0
  51. data/vendor/local/bin/remote_lat.exe +0 -0
  52. data/vendor/local/bin/remote_thr.exe +0 -0
  53. data/vendor/local/include/czmq.h +31 -0
  54. data/vendor/local/include/czmq_library.h +199 -0
  55. data/vendor/local/include/czmq_prelude.h +641 -0
  56. data/vendor/local/include/readme.txt +83 -0
  57. data/vendor/local/include/sha1.h +76 -0
  58. data/vendor/local/include/sha1.inc_c +335 -0
  59. data/vendor/local/include/slre.h +92 -0
  60. data/vendor/local/include/slre.inc_c +660 -0
  61. data/vendor/local/include/zactor.h +76 -0
  62. data/vendor/local/include/zarmour.h +114 -0
  63. data/vendor/local/include/zauth.h +100 -0
  64. data/vendor/local/include/zauth_v2.h +88 -0
  65. data/vendor/local/include/zbeacon.h +86 -0
  66. data/vendor/local/include/zbeacon_v2.h +75 -0
  67. data/vendor/local/include/zcert.h +136 -0
  68. data/vendor/local/include/zcertstore.h +100 -0
  69. data/vendor/local/include/zchunk.h +163 -0
  70. data/vendor/local/include/zclock.h +73 -0
  71. data/vendor/local/include/zconfig.h +185 -0
  72. data/vendor/local/include/zctx.h +107 -0
  73. data/vendor/local/include/zdigest.h +65 -0
  74. data/vendor/local/include/zdir.h +149 -0
  75. data/vendor/local/include/zdir_patch.h +82 -0
  76. data/vendor/local/include/zfile.h +177 -0
  77. data/vendor/local/include/zframe.h +176 -0
  78. data/vendor/local/include/zgossip.h +95 -0
  79. data/vendor/local/include/zgossip_engine.inc +927 -0
  80. data/vendor/local/include/zgossip_msg.h +129 -0
  81. data/vendor/local/include/zhash.h +195 -0
  82. data/vendor/local/include/zhash_primes.inc +329 -0
  83. data/vendor/local/include/zhashx.h +298 -0
  84. data/vendor/local/include/ziflist.h +77 -0
  85. data/vendor/local/include/zlist.h +158 -0
  86. data/vendor/local/include/zlistx.h +205 -0
  87. data/vendor/local/include/zloop.h +168 -0
  88. data/vendor/local/include/zmonitor.h +73 -0
  89. data/vendor/local/include/zmonitor_v2.h +56 -0
  90. data/vendor/local/include/zmq.h +617 -0
  91. data/vendor/local/include/zmq_utils.h +48 -0
  92. data/vendor/local/include/zmsg.h +280 -0
  93. data/vendor/local/include/zmutex.h +55 -0
  94. data/vendor/local/include/zpoller.h +92 -0
  95. data/vendor/local/include/zproc.h +168 -0
  96. data/vendor/local/include/zproxy.h +111 -0
  97. data/vendor/local/include/zproxy_v2.h +62 -0
  98. data/vendor/local/include/zrex.h +82 -0
  99. data/vendor/local/include/zsock.h +912 -0
  100. data/vendor/local/include/zsock_option.inc +4126 -0
  101. data/vendor/local/include/zsocket.h +110 -0
  102. data/vendor/local/include/zsockopt.h +256 -0
  103. data/vendor/local/include/zstr.h +110 -0
  104. data/vendor/local/include/zsys.h +386 -0
  105. data/vendor/local/include/zthread.h +50 -0
  106. data/vendor/local/include/ztimerset.h +90 -0
  107. data/vendor/local/include/ztrie.h +106 -0
  108. data/vendor/local/include/zuuid.h +96 -0
  109. data/vendor/local/lib/libczmq.dll.a +0 -0
  110. data/vendor/local/lib/liblibzmq.dll.a +0 -0
  111. data/vendor/local/lib/libzmq-static.a +0 -0
  112. data/vendor/local/lib/pkgconfig/libczmq.pc +23 -0
  113. data/vendor/local/lib/pkgconfig/libzmq.pc +11 -0
  114. data/vendor/local/share/zmq/AUTHORS.txt +147 -0
  115. data/vendor/local/share/zmq/COPYING.LESSER.txt +181 -0
  116. data/vendor/local/share/zmq/COPYING.txt +674 -0
  117. data/vendor/local/share/zmq/NEWS.txt +978 -0
  118. metadata +230 -0
checksums.yaml ADDED
@@ -0,0 +1,7 @@
1
+ ---
2
+ SHA1:
3
+ metadata.gz: e1ad7f5e05df1dcb4b9aafec06a5f0443b4f9541
4
+ data.tar.gz: 51fc8ca66ce68919935be0ba5b4e9eb4075200c8
5
+ SHA512:
6
+ metadata.gz: fead445c9e012e1e7747a26da8485ac7ffb8385959d6e01a9bacb394024d2c89f0ec7b2d3685bfcf8b672d86f84d708518233779424f16c199edf14b81c4abc3
7
+ data.tar.gz: 9466324cdf85bff279546a22c1a8c29f9f2fef36afb7ee1903d25de032fb4d416d96271e504ffac0f1205f3354a2cabce55590879ca7adffb89f252ee8f36536
data/AUTHORS ADDED
@@ -0,0 +1 @@
1
+ Patrik Wenger <paddor@gmail.com>
data/CHANGES.md ADDED
@@ -0,0 +1,88 @@
1
+ 0.9.1 (09/19/2016)
2
+ -----
3
+ * no changes, just second try at publishing (publishing of version 0.9.0 failed
4
+ due to human error)
5
+
6
+ 0.9.0 (09/18/2016)
7
+ -----
8
+ * support building and pushing fat gems for Windows x86 and x64
9
+ * upgrade CZMQ low-level binding to fix cross compile errors
10
+
11
+ 0.8.3 (03/29/2016)
12
+ -----
13
+ * avoid extra call to wrapper method CZMQ::FFI::Errors.errno (CZTop's test
14
+ suite doesn't like this)
15
+
16
+ 0.8.2 (03/29/2016)
17
+ -----
18
+ * fix CZMQ::FFI::Errors.strerror
19
+
20
+ 0.8.1 (03/29/2016)
21
+ -----
22
+ * provide CZMQ::FFI::ZMQ_VERSION
23
+ * rename CZMQ::FFI::LIBRARY_VERSION to CZMQ::FFI::CZMQ_VERSION
24
+ * new module CZMQ::FFI::LibZMQ which is the sole place to interact directly
25
+ with the ZMQ library
26
+
27
+ 0.8.0 (03/27/2016)
28
+ -----
29
+ * upgrade CZMQ low-level binding to
30
+ - fix function names in warnings
31
+ - have constants instead of enums
32
+ - adapt to the new interface of zarmour_encode/decode
33
+
34
+ 0.7.0 (01/21/2016)
35
+ -----
36
+ * add support for current stable release 3.0.2 of CZMQ
37
+ * upgrade CZMQ low-level binding to
38
+ - gracefully handle absent draft functions
39
+
40
+ 0.6.0 (01/15/2016)
41
+ -----
42
+ * upgrade CZMQ low-level binding to
43
+ - add support for ZMTP 3.1 heartbeat options
44
+
45
+ 0.5.0 (01/14/2016)
46
+ -----
47
+ * add CZMQ::FFI::Errors
48
+ - hand-written code to interact with libzmq
49
+ - .errno returns error code of last (ZMQ) error
50
+ - .strerror returns string representation of last (ZMQ) error
51
+ * upgrade CZMQ low-level binding to
52
+ - add Zchunk
53
+
54
+ 0.4.1 (01/06/2016)
55
+ -----
56
+ * upgrade CZMQ low-level binding to
57
+ - fix zbeacon so it doesn't close STDIN
58
+
59
+ 0.4.0 (12/26/2015)
60
+ -----
61
+ * upgrade CZMQ low-level binding to
62
+ - add Zproc.has_curve
63
+ * add basic specs for Zproc
64
+
65
+ 0.3.0 (12/15/2015)
66
+ -----
67
+ * upgrade CZMQ low-level binding to
68
+ - add Zcert#unset_meta
69
+
70
+ 0.2.1 (12/12/2015)
71
+ -----
72
+ * upgrade CZMQ low-level binding to
73
+ - allow passing a null pointer (nil) for an FFI :string parameter
74
+
75
+ 0.2.0 (12/10/2015)
76
+ -----
77
+ * using new CZMQ version which
78
+ - fixes some security issues
79
+ - adds Zcert and Zcertstore
80
+ * basic specs for each Zclass added
81
+
82
+ 0.1.1 (12/09/2015)
83
+ -----
84
+ * include some auxiliary files like CHANGES.md, LICENSE, and README.md into gem
85
+
86
+ 0.1.0 (12/09/2015)
87
+ -----
88
+ * Initial release
data/Gemfile ADDED
@@ -0,0 +1,2 @@
1
+ source 'https://rubygems.org'
2
+ gemspec
data/LICENSE ADDED
@@ -0,0 +1,14 @@
1
+ Copyright (c) 2016, Patrik Wenger
2
+
3
+ Permission to use, copy, modify, and/or distribute this software for any
4
+ purpose with or without fee is hereby granted, provided that the above
5
+ copyright notice and this permission notice appear in all copies.
6
+
7
+ THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES
8
+ WITH REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF
9
+ MERCHANTABILITY AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR
10
+ ANY SPECIAL, DIRECT, INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES
11
+ WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR PROFITS, WHETHER IN AN
12
+ ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT OF
13
+ OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.
14
+
data/README.md ADDED
@@ -0,0 +1,112 @@
1
+ [![Build Status on Travis CI](https://travis-ci.org/paddor/czmq-ffi-gen.svg?branch=master)](https://travis-ci.org/paddor/czmq-ffi-gen?branch=master)
2
+ [![Dependency Status](https://gemnasium.com/paddor/czmq-ffi-gen.svg)](https://gemnasium.com/paddor/czmq-ffi-gen)
3
+
4
+ # Generated CZMQ::FFI
5
+
6
+ This repository is used to package and release the Ruby gem _czmq-ffi-gen_, the
7
+ low-level Ruby FFI binding for [CZMQ](https://github.com/zeromq/czmq). The gem
8
+ _czmq-ffi-gen_ can be used as a base for a higher-level CZMQ binding like
9
+ [CZTop](https://github.com/paddor/cztop). But of course you can use it for
10
+ anything you want. :-)
11
+
12
+ ## Caveats
13
+
14
+ ### Not Ruby-like
15
+ This is generated code. It is generated from the API models in CZMQ using
16
+ [zproject](https://github.com/zeromq/zproject). It doesn't feel like Ruby. It's
17
+ not intended to be used directly. Instead, use
18
+ [CZTop](https://github.com/paddor/cztop), or write your own wrapper for this
19
+ library.
20
+
21
+ ### Generated code isn't actually in this repository
22
+ The actual generated code lies in CZMQ, which is Git submodule of this
23
+ repository, registered under `vendor/czmq`.
24
+
25
+ So if you're not happy with any of the generated code, go have a closer look at
26
+ [CZMQ](https://github.com/zeromq/czmq) (or
27
+ [zproject](https://github.com/zeromq/zproject), which is used by CZMQ to
28
+ generate the low-level binding).
29
+
30
+ ### API Documentation
31
+ For that same reason, API documentation of unreleased code (directly off this
32
+ repository), like
33
+ [rubydoc.info/github/paddor/czmq-ffi-gen](http://www.rubydoc.info/github/paddor/czmq-ffi-gen)
34
+ **does NOT include any of the generated code**. _Rubydoc.info_ doesn't check
35
+ out Git submodules as part of its documentation procedure.
36
+
37
+ However, the API documentation of the **released** gem should include all the
38
+ code, as the gem release process will include all required source files
39
+ directly within the gem.
40
+
41
+ Check out
42
+ [http://www.rubydoc.info/gems/czmq-ffi-gen](http://www.rubydoc.info/gems/czmq-ffi-gen)
43
+ for the API documentation **for the released gem**.
44
+
45
+ ## Requirements
46
+
47
+ * CZMQ > 3.0 (you **need to** build from master)
48
+ * ZMQ >= 4.0
49
+
50
+ For security mechanisms like CURVE, you'll need:
51
+ * [libsodium](https://github.com/jedisct1/libsodium)<Paste>
52
+
53
+ On OSX using homebrew, run:
54
+
55
+ $ brew install libsodium
56
+ $ brew install zmq --with-libsodium
57
+ $ brew install czmq --HEAD
58
+
59
+ If you're running Linux, go check [this page](http://zeromq.org/distro:_start)
60
+ to get more help. Make sure to install CZMQ, not only ZMQ.
61
+
62
+ **Note**: The option `--HEAD` is required because this binding is generated
63
+ directly from CZMQ's master branch. The current and older releases aren't supported.
64
+
65
+ ### Supported Rubies
66
+
67
+ See [.travis.yml](https://github.com/paddor/czmq-ffi-gen/blob/master/.travis.yml)
68
+ for a list of Ruby versions against which czmq-ffi-gen is tested.
69
+
70
+ At the time of writing, these include:
71
+
72
+ * MRI 2.3, 2.2.4, 2.1.8
73
+ * Rubinius (HEAD)
74
+ * JRuby 9000 (HEAD)
75
+
76
+ #### Known NOT to work
77
+
78
+ * JRuby 1.7.x and MRI < 2.0
79
+ * doesn't work because of the use of the double splat operator (`**opts`)
80
+
81
+ ## Installation
82
+
83
+ To use this gem, add this line to your application's Gemfile:
84
+
85
+ ```ruby
86
+ gem 'czmq-ffi-gen'
87
+ ```
88
+
89
+ And then execute:
90
+
91
+ $ bundle
92
+
93
+ Or install it yourself as:
94
+
95
+ $ gem install czmq-ffi-gen
96
+
97
+ ## Usage
98
+
99
+ Check out [CZTop](https://github.com/paddor/cztop) or the API documentation to
100
+ see how this project can be used. :-)
101
+
102
+ ## Development
103
+
104
+ After checking out the repo, run `bin/setup` to install dependencies. Then, run
105
+ `rake spec` to run the tests. You can also run `bin/console` for an interactive
106
+ prompt that will allow you to experiment.
107
+
108
+ ## License
109
+
110
+ The gem is available as open source under the terms of the [ISC
111
+ License](http://opensource.org/licenses/ISC). See the
112
+ [LICENSE](https://github.com/paddor/cztop/blob/master/LICENSE) file.
@@ -0,0 +1,7 @@
1
+ require_relative "czmq-ffi-gen/vendor"
2
+ require_relative "czmq-ffi-gen/czmq/ffi"
3
+ require_relative "czmq-ffi-gen/versions"
4
+ require_relative "czmq-ffi-gen/errors"
5
+ require_relative "czmq-ffi-gen/signals"
6
+ require_relative "czmq-ffi-gen/legacy"
7
+ CZMQ::FFI.available? or raise LoadError, "libczmq is not available"
@@ -0,0 +1,1210 @@
1
+ ################################################################################
2
+ # THIS FILE IS 100% GENERATED BY ZPROJECT; DO NOT EDIT EXCEPT EXPERIMENTALLY #
3
+ # Read the zproject/README.md for information about making permanent changes. #
4
+ ################################################################################
5
+
6
+ require 'ffi'
7
+ require_relative 'ffi/version'
8
+
9
+ module CZMQ
10
+ module FFI
11
+ module LibC
12
+ extend ::FFI::Library
13
+ ffi_lib ::FFI::Platform::LIBC
14
+ attach_function :free, [ :pointer ], :void, blocking: true
15
+ end
16
+
17
+ extend ::FFI::Library
18
+
19
+ def self.available?
20
+ @available
21
+ end
22
+
23
+ begin
24
+ lib_name = 'libczmq'
25
+ lib_paths = ['/usr/local/lib', '/opt/local/lib', '/usr/lib64']
26
+ .map { |path| "#{path}/#{lib_name}.#{::FFI::Platform::LIBSUFFIX}" }
27
+ ffi_lib lib_paths + [lib_name]
28
+ @available = true
29
+ rescue LoadError
30
+ warn ""
31
+ warn "WARNING: ::CZMQ::FFI is not available without libczmq."
32
+ warn ""
33
+ @available = false
34
+ end
35
+
36
+ if available?
37
+ opts = {
38
+ blocking: true # only necessary on MRI to deal with the GIL.
39
+ }
40
+
41
+ attach_function :zactor_new, [:pointer, :pointer], :pointer, **opts
42
+ attach_function :zactor_destroy, [:pointer], :void, **opts
43
+ attach_function :zactor_send, [:pointer, :pointer], :int, **opts
44
+ attach_function :zactor_recv, [:pointer], :pointer, **opts
45
+ attach_function :zactor_is, [:pointer], :bool, **opts
46
+ attach_function :zactor_resolve, [:pointer], :pointer, **opts
47
+ attach_function :zactor_sock, [:pointer], :pointer, **opts
48
+ attach_function :zactor_test, [:bool], :void, **opts
49
+
50
+ require_relative 'ffi/zactor'
51
+
52
+ attach_function :zarmour_new, [], :pointer, **opts
53
+ attach_function :zarmour_destroy, [:pointer], :void, **opts
54
+ attach_function :zarmour_encode, [:pointer, :pointer, :size_t], :pointer, **opts
55
+ attach_function :zarmour_decode, [:pointer, :string], :pointer, **opts
56
+ attach_function :zarmour_mode, [:pointer], :int, **opts
57
+ attach_function :zarmour_mode_str, [:pointer], :string, **opts
58
+ attach_function :zarmour_set_mode, [:pointer, :int], :void, **opts
59
+ attach_function :zarmour_pad, [:pointer], :bool, **opts
60
+ attach_function :zarmour_set_pad, [:pointer, :bool], :void, **opts
61
+ attach_function :zarmour_pad_char, [:pointer], :pointer, **opts
62
+ attach_function :zarmour_set_pad_char, [:pointer, :pointer], :void, **opts
63
+ attach_function :zarmour_line_breaks, [:pointer], :bool, **opts
64
+ attach_function :zarmour_set_line_breaks, [:pointer, :bool], :void, **opts
65
+ attach_function :zarmour_line_length, [:pointer], :size_t, **opts
66
+ attach_function :zarmour_set_line_length, [:pointer, :size_t], :void, **opts
67
+ attach_function :zarmour_print, [:pointer], :void, **opts
68
+ attach_function :zarmour_test, [:bool], :void, **opts
69
+
70
+ require_relative 'ffi/zarmour'
71
+
72
+ attach_function :zcert_new, [], :pointer, **opts
73
+ attach_function :zcert_new_from, [:pointer, :pointer], :pointer, **opts
74
+ attach_function :zcert_load, [:string], :pointer, **opts
75
+ attach_function :zcert_destroy, [:pointer], :void, **opts
76
+ attach_function :zcert_public_key, [:pointer], :pointer, **opts
77
+ attach_function :zcert_secret_key, [:pointer], :pointer, **opts
78
+ attach_function :zcert_public_txt, [:pointer], :string, **opts
79
+ attach_function :zcert_secret_txt, [:pointer], :string, **opts
80
+ attach_function :zcert_set_meta, [:pointer, :string, :string, :varargs], :void, **opts
81
+ begin # DRAFT method
82
+ attach_function :zcert_unset_meta, [:pointer, :string], :void, **opts
83
+ rescue ::FFI::NotFoundError
84
+ if $VERBOSE || $DEBUG
85
+ warn "The function zcert_unset_meta() can't be used through " +
86
+ "this Ruby binding because it's not available."
87
+ end
88
+ end
89
+ attach_function :zcert_meta, [:pointer, :string], :string, **opts
90
+ attach_function :zcert_meta_keys, [:pointer], :pointer, **opts
91
+ attach_function :zcert_save, [:pointer, :string], :int, **opts
92
+ attach_function :zcert_save_public, [:pointer, :string], :int, **opts
93
+ attach_function :zcert_save_secret, [:pointer, :string], :int, **opts
94
+ attach_function :zcert_apply, [:pointer, :pointer], :void, **opts
95
+ attach_function :zcert_dup, [:pointer], :pointer, **opts
96
+ attach_function :zcert_eq, [:pointer, :pointer], :bool, **opts
97
+ attach_function :zcert_print, [:pointer], :void, **opts
98
+ attach_function :zcert_fprint, [:pointer, :pointer], :void, **opts
99
+ attach_function :zcert_test, [:bool], :void, **opts
100
+
101
+ require_relative 'ffi/zcert'
102
+
103
+ attach_function :zcertstore_new, [:string], :pointer, **opts
104
+ attach_function :zcertstore_destroy, [:pointer], :void, **opts
105
+ begin # DRAFT method
106
+ attach_function :zcertstore_set_loader, [:pointer, :pointer, :pointer, :pointer], :void, **opts
107
+ rescue ::FFI::NotFoundError
108
+ if $VERBOSE || $DEBUG
109
+ warn "The function zcertstore_set_loader() can't be used through " +
110
+ "this Ruby binding because it's not available."
111
+ end
112
+ end
113
+ attach_function :zcertstore_lookup, [:pointer, :string], :pointer, **opts
114
+ attach_function :zcertstore_insert, [:pointer, :pointer], :void, **opts
115
+ begin # DRAFT method
116
+ attach_function :zcertstore_empty, [:pointer], :void, **opts
117
+ rescue ::FFI::NotFoundError
118
+ if $VERBOSE || $DEBUG
119
+ warn "The function zcertstore_empty() can't be used through " +
120
+ "this Ruby binding because it's not available."
121
+ end
122
+ end
123
+ attach_function :zcertstore_print, [:pointer], :void, **opts
124
+ attach_function :zcertstore_fprint, [:pointer, :pointer], :void, **opts
125
+ attach_function :zcertstore_test, [:bool], :void, **opts
126
+
127
+ require_relative 'ffi/zcertstore'
128
+
129
+ attach_function :zchunk_new, [:pointer, :size_t], :pointer, **opts
130
+ attach_function :zchunk_destroy, [:pointer], :void, **opts
131
+ attach_function :zchunk_resize, [:pointer, :size_t], :void, **opts
132
+ attach_function :zchunk_size, [:pointer], :size_t, **opts
133
+ attach_function :zchunk_max_size, [:pointer], :size_t, **opts
134
+ attach_function :zchunk_data, [:pointer], :pointer, **opts
135
+ attach_function :zchunk_set, [:pointer, :pointer, :size_t], :size_t, **opts
136
+ attach_function :zchunk_fill, [:pointer, :char, :size_t], :size_t, **opts
137
+ attach_function :zchunk_append, [:pointer, :pointer, :size_t], :size_t, **opts
138
+ attach_function :zchunk_extend, [:pointer, :pointer, :size_t], :size_t, **opts
139
+ attach_function :zchunk_consume, [:pointer, :pointer], :size_t, **opts
140
+ attach_function :zchunk_exhausted, [:pointer], :bool, **opts
141
+ attach_function :zchunk_read, [:pointer, :size_t], :pointer, **opts
142
+ attach_function :zchunk_write, [:pointer, :pointer], :int, **opts
143
+ attach_function :zchunk_slurp, [:string, :size_t], :pointer, **opts
144
+ attach_function :zchunk_dup, [:pointer], :pointer, **opts
145
+ attach_function :zchunk_strhex, [:pointer], :pointer, **opts
146
+ attach_function :zchunk_strdup, [:pointer], :pointer, **opts
147
+ attach_function :zchunk_streq, [:pointer, :string], :bool, **opts
148
+ attach_function :zchunk_pack, [:pointer], :pointer, **opts
149
+ attach_function :zchunk_unpack, [:pointer], :pointer, **opts
150
+ attach_function :zchunk_digest, [:pointer], :string, **opts
151
+ attach_function :zchunk_fprint, [:pointer, :pointer], :void, **opts
152
+ attach_function :zchunk_print, [:pointer], :void, **opts
153
+ attach_function :zchunk_is, [:pointer], :bool, **opts
154
+ attach_function :zchunk_test, [:bool], :void, **opts
155
+
156
+ require_relative 'ffi/zchunk'
157
+
158
+ attach_function :zclock_sleep, [:int], :void, **opts
159
+ attach_function :zclock_time, [], :pointer, **opts
160
+ attach_function :zclock_mono, [], :pointer, **opts
161
+ attach_function :zclock_usecs, [], :pointer, **opts
162
+ attach_function :zclock_timestr, [], :pointer, **opts
163
+ attach_function :zclock_test, [:bool], :void, **opts
164
+
165
+ require_relative 'ffi/zclock'
166
+
167
+ attach_function :zconfig_new, [:string, :pointer], :pointer, **opts
168
+ attach_function :zconfig_load, [:string], :pointer, **opts
169
+ attach_function :zconfig_loadf, [:string, :varargs], :pointer, **opts
170
+ attach_function :zconfig_destroy, [:pointer], :void, **opts
171
+ attach_function :zconfig_name, [:pointer], :pointer, **opts
172
+ attach_function :zconfig_value, [:pointer], :pointer, **opts
173
+ attach_function :zconfig_put, [:pointer, :string, :string], :void, **opts
174
+ attach_function :zconfig_putf, [:pointer, :string, :string, :varargs], :void, **opts
175
+ attach_function :zconfig_get, [:pointer, :string, :string], :pointer, **opts
176
+ attach_function :zconfig_set_name, [:pointer, :string], :void, **opts
177
+ attach_function :zconfig_set_value, [:pointer, :string, :varargs], :void, **opts
178
+ attach_function :zconfig_child, [:pointer], :pointer, **opts
179
+ attach_function :zconfig_next, [:pointer], :pointer, **opts
180
+ attach_function :zconfig_locate, [:pointer, :string], :pointer, **opts
181
+ attach_function :zconfig_at_depth, [:pointer, :int], :pointer, **opts
182
+ attach_function :zconfig_execute, [:pointer, :pointer, :pointer], :int, **opts
183
+ attach_function :zconfig_set_comment, [:pointer, :string, :varargs], :void, **opts
184
+ attach_function :zconfig_comments, [:pointer], :pointer, **opts
185
+ attach_function :zconfig_save, [:pointer, :string], :int, **opts
186
+ attach_function :zconfig_savef, [:pointer, :string, :varargs], :int, **opts
187
+ attach_function :zconfig_filename, [:pointer], :string, **opts
188
+ attach_function :zconfig_reload, [:pointer], :int, **opts
189
+ attach_function :zconfig_chunk_load, [:pointer], :pointer, **opts
190
+ attach_function :zconfig_chunk_save, [:pointer], :pointer, **opts
191
+ attach_function :zconfig_str_load, [:string], :pointer, **opts
192
+ attach_function :zconfig_str_save, [:pointer], :pointer, **opts
193
+ attach_function :zconfig_has_changed, [:pointer], :bool, **opts
194
+ attach_function :zconfig_fprint, [:pointer, :pointer], :void, **opts
195
+ attach_function :zconfig_print, [:pointer], :void, **opts
196
+ attach_function :zconfig_test, [:bool], :void, **opts
197
+
198
+ require_relative 'ffi/zconfig'
199
+
200
+ attach_function :zdigest_new, [], :pointer, **opts
201
+ attach_function :zdigest_destroy, [:pointer], :void, **opts
202
+ attach_function :zdigest_update, [:pointer, :pointer, :size_t], :void, **opts
203
+ attach_function :zdigest_data, [:pointer], :pointer, **opts
204
+ attach_function :zdigest_size, [:pointer], :size_t, **opts
205
+ attach_function :zdigest_string, [:pointer], :pointer, **opts
206
+ attach_function :zdigest_test, [:bool], :void, **opts
207
+
208
+ require_relative 'ffi/zdigest'
209
+
210
+ attach_function :zdir_new, [:string, :string], :pointer, **opts
211
+ attach_function :zdir_destroy, [:pointer], :void, **opts
212
+ attach_function :zdir_path, [:pointer], :string, **opts
213
+ attach_function :zdir_modified, [:pointer], :pointer, **opts
214
+ attach_function :zdir_cursize, [:pointer], :pointer, **opts
215
+ attach_function :zdir_count, [:pointer], :size_t, **opts
216
+ attach_function :zdir_list, [:pointer], :pointer, **opts
217
+ attach_function :zdir_remove, [:pointer, :bool], :void, **opts
218
+ attach_function :zdir_diff, [:pointer, :pointer, :string], :pointer, **opts
219
+ attach_function :zdir_resync, [:pointer, :string], :pointer, **opts
220
+ attach_function :zdir_cache, [:pointer], :pointer, **opts
221
+ attach_function :zdir_fprint, [:pointer, :pointer, :int], :void, **opts
222
+ attach_function :zdir_print, [:pointer, :int], :void, **opts
223
+ attach_function :zdir_watch, [:pointer, :pointer], :void, **opts
224
+ attach_function :zdir_test, [:bool], :void, **opts
225
+
226
+ require_relative 'ffi/zdir'
227
+
228
+ attach_function :zdir_patch_new, [:string, :pointer, :int, :string], :pointer, **opts
229
+ attach_function :zdir_patch_destroy, [:pointer], :void, **opts
230
+ attach_function :zdir_patch_dup, [:pointer], :pointer, **opts
231
+ attach_function :zdir_patch_path, [:pointer], :string, **opts
232
+ attach_function :zdir_patch_file, [:pointer], :pointer, **opts
233
+ attach_function :zdir_patch_op, [:pointer], :int, **opts
234
+ attach_function :zdir_patch_vpath, [:pointer], :string, **opts
235
+ attach_function :zdir_patch_digest_set, [:pointer], :void, **opts
236
+ attach_function :zdir_patch_digest, [:pointer], :string, **opts
237
+ attach_function :zdir_patch_test, [:bool], :void, **opts
238
+
239
+ require_relative 'ffi/zdir_patch'
240
+
241
+ attach_function :zfile_new, [:string, :string], :pointer, **opts
242
+ attach_function :zfile_destroy, [:pointer], :void, **opts
243
+ attach_function :zfile_dup, [:pointer], :pointer, **opts
244
+ attach_function :zfile_filename, [:pointer, :string], :string, **opts
245
+ attach_function :zfile_restat, [:pointer], :void, **opts
246
+ attach_function :zfile_modified, [:pointer], :pointer, **opts
247
+ attach_function :zfile_cursize, [:pointer], :pointer, **opts
248
+ attach_function :zfile_is_directory, [:pointer], :bool, **opts
249
+ attach_function :zfile_is_regular, [:pointer], :bool, **opts
250
+ attach_function :zfile_is_readable, [:pointer], :bool, **opts
251
+ attach_function :zfile_is_writeable, [:pointer], :bool, **opts
252
+ attach_function :zfile_is_stable, [:pointer], :bool, **opts
253
+ attach_function :zfile_has_changed, [:pointer], :bool, **opts
254
+ attach_function :zfile_remove, [:pointer], :void, **opts
255
+ attach_function :zfile_input, [:pointer], :int, **opts
256
+ attach_function :zfile_output, [:pointer], :int, **opts
257
+ attach_function :zfile_read, [:pointer, :size_t, :pointer], :pointer, **opts
258
+ attach_function :zfile_eof, [:pointer], :bool, **opts
259
+ attach_function :zfile_write, [:pointer, :pointer, :pointer], :int, **opts
260
+ attach_function :zfile_readln, [:pointer], :string, **opts
261
+ attach_function :zfile_close, [:pointer], :void, **opts
262
+ attach_function :zfile_handle, [:pointer], :pointer, **opts
263
+ attach_function :zfile_digest, [:pointer], :string, **opts
264
+ attach_function :zfile_test, [:bool], :void, **opts
265
+
266
+ require_relative 'ffi/zfile'
267
+
268
+ attach_function :zframe_new, [:pointer, :size_t], :pointer, **opts
269
+ attach_function :zframe_new_empty, [], :pointer, **opts
270
+ attach_function :zframe_from, [:string], :pointer, **opts
271
+ attach_function :zframe_recv, [:pointer], :pointer, **opts
272
+ attach_function :zframe_destroy, [:pointer], :void, **opts
273
+ attach_function :zframe_send, [:pointer, :pointer, :int], :int, **opts
274
+ attach_function :zframe_size, [:pointer], :size_t, **opts
275
+ attach_function :zframe_data, [:pointer], :pointer, **opts
276
+ attach_function :zframe_meta, [:pointer, :string], :string, **opts
277
+ attach_function :zframe_dup, [:pointer], :pointer, **opts
278
+ attach_function :zframe_strhex, [:pointer], :pointer, **opts
279
+ attach_function :zframe_strdup, [:pointer], :pointer, **opts
280
+ attach_function :zframe_streq, [:pointer, :string], :bool, **opts
281
+ attach_function :zframe_more, [:pointer], :int, **opts
282
+ attach_function :zframe_set_more, [:pointer, :int], :void, **opts
283
+ begin # DRAFT method
284
+ attach_function :zframe_routing_id, [:pointer], :uint32, **opts
285
+ rescue ::FFI::NotFoundError
286
+ if $VERBOSE || $DEBUG
287
+ warn "The function zframe_routing_id() can't be used through " +
288
+ "this Ruby binding because it's not available."
289
+ end
290
+ end
291
+ begin # DRAFT method
292
+ attach_function :zframe_set_routing_id, [:pointer, :uint32], :void, **opts
293
+ rescue ::FFI::NotFoundError
294
+ if $VERBOSE || $DEBUG
295
+ warn "The function zframe_set_routing_id() can't be used through " +
296
+ "this Ruby binding because it's not available."
297
+ end
298
+ end
299
+ begin # DRAFT method
300
+ attach_function :zframe_group, [:pointer], :string, **opts
301
+ rescue ::FFI::NotFoundError
302
+ if $VERBOSE || $DEBUG
303
+ warn "The function zframe_group() can't be used through " +
304
+ "this Ruby binding because it's not available."
305
+ end
306
+ end
307
+ begin # DRAFT method
308
+ attach_function :zframe_set_group, [:pointer, :string], :int, **opts
309
+ rescue ::FFI::NotFoundError
310
+ if $VERBOSE || $DEBUG
311
+ warn "The function zframe_set_group() can't be used through " +
312
+ "this Ruby binding because it's not available."
313
+ end
314
+ end
315
+ attach_function :zframe_eq, [:pointer, :pointer], :bool, **opts
316
+ attach_function :zframe_reset, [:pointer, :pointer, :size_t], :void, **opts
317
+ attach_function :zframe_print, [:pointer, :string], :void, **opts
318
+ attach_function :zframe_is, [:pointer], :bool, **opts
319
+ attach_function :zframe_test, [:bool], :void, **opts
320
+
321
+ require_relative 'ffi/zframe'
322
+
323
+ attach_function :zhash_new, [], :pointer, **opts
324
+ attach_function :zhash_unpack, [:pointer], :pointer, **opts
325
+ attach_function :zhash_destroy, [:pointer], :void, **opts
326
+ attach_function :zhash_insert, [:pointer, :string, :pointer], :int, **opts
327
+ attach_function :zhash_update, [:pointer, :string, :pointer], :void, **opts
328
+ attach_function :zhash_delete, [:pointer, :string], :void, **opts
329
+ attach_function :zhash_lookup, [:pointer, :string], :pointer, **opts
330
+ attach_function :zhash_rename, [:pointer, :string, :string], :int, **opts
331
+ attach_function :zhash_freefn, [:pointer, :string, :pointer], :pointer, **opts
332
+ attach_function :zhash_size, [:pointer], :size_t, **opts
333
+ attach_function :zhash_dup, [:pointer], :pointer, **opts
334
+ attach_function :zhash_keys, [:pointer], :pointer, **opts
335
+ attach_function :zhash_first, [:pointer], :pointer, **opts
336
+ attach_function :zhash_next, [:pointer], :pointer, **opts
337
+ attach_function :zhash_cursor, [:pointer], :string, **opts
338
+ attach_function :zhash_comment, [:pointer, :string, :varargs], :void, **opts
339
+ attach_function :zhash_pack, [:pointer], :pointer, **opts
340
+ attach_function :zhash_save, [:pointer, :string], :int, **opts
341
+ attach_function :zhash_load, [:pointer, :string], :int, **opts
342
+ attach_function :zhash_refresh, [:pointer], :int, **opts
343
+ attach_function :zhash_autofree, [:pointer], :void, **opts
344
+ attach_function :zhash_foreach, [:pointer, :pointer, :pointer], :int, **opts
345
+ attach_function :zhash_test, [:bool], :void, **opts
346
+
347
+ require_relative 'ffi/zhash'
348
+
349
+ attach_function :zhashx_new, [], :pointer, **opts
350
+ attach_function :zhashx_unpack, [:pointer], :pointer, **opts
351
+ begin # DRAFT method
352
+ attach_function :zhashx_unpack_own, [:pointer, :pointer], :pointer, **opts
353
+ rescue ::FFI::NotFoundError
354
+ if $VERBOSE || $DEBUG
355
+ warn "The function zhashx_unpack_own() can't be used through " +
356
+ "this Ruby binding because it's not available."
357
+ end
358
+ end
359
+ attach_function :zhashx_destroy, [:pointer], :void, **opts
360
+ attach_function :zhashx_insert, [:pointer, :pointer, :pointer], :int, **opts
361
+ attach_function :zhashx_update, [:pointer, :pointer, :pointer], :void, **opts
362
+ attach_function :zhashx_delete, [:pointer, :pointer], :void, **opts
363
+ attach_function :zhashx_purge, [:pointer], :void, **opts
364
+ attach_function :zhashx_lookup, [:pointer, :pointer], :pointer, **opts
365
+ attach_function :zhashx_rename, [:pointer, :pointer, :pointer], :int, **opts
366
+ attach_function :zhashx_freefn, [:pointer, :pointer, :pointer], :pointer, **opts
367
+ attach_function :zhashx_size, [:pointer], :size_t, **opts
368
+ attach_function :zhashx_keys, [:pointer], :pointer, **opts
369
+ attach_function :zhashx_values, [:pointer], :pointer, **opts
370
+ attach_function :zhashx_first, [:pointer], :pointer, **opts
371
+ attach_function :zhashx_next, [:pointer], :pointer, **opts
372
+ attach_function :zhashx_cursor, [:pointer], :pointer, **opts
373
+ attach_function :zhashx_comment, [:pointer, :string, :varargs], :void, **opts
374
+ attach_function :zhashx_save, [:pointer, :string], :int, **opts
375
+ attach_function :zhashx_load, [:pointer, :string], :int, **opts
376
+ attach_function :zhashx_refresh, [:pointer], :int, **opts
377
+ attach_function :zhashx_pack, [:pointer], :pointer, **opts
378
+ begin # DRAFT method
379
+ attach_function :zhashx_pack_own, [:pointer, :pointer], :pointer, **opts
380
+ rescue ::FFI::NotFoundError
381
+ if $VERBOSE || $DEBUG
382
+ warn "The function zhashx_pack_own() can't be used through " +
383
+ "this Ruby binding because it's not available."
384
+ end
385
+ end
386
+ attach_function :zhashx_dup, [:pointer], :pointer, **opts
387
+ attach_function :zhashx_set_destructor, [:pointer, :pointer], :void, **opts
388
+ attach_function :zhashx_set_duplicator, [:pointer, :pointer], :void, **opts
389
+ attach_function :zhashx_set_key_destructor, [:pointer, :pointer], :void, **opts
390
+ attach_function :zhashx_set_key_duplicator, [:pointer, :pointer], :void, **opts
391
+ attach_function :zhashx_set_key_comparator, [:pointer, :pointer], :void, **opts
392
+ attach_function :zhashx_set_key_hasher, [:pointer, :pointer], :void, **opts
393
+ attach_function :zhashx_dup_v2, [:pointer], :pointer, **opts
394
+ attach_function :zhashx_autofree, [:pointer], :void, **opts
395
+ attach_function :zhashx_foreach, [:pointer, :pointer, :pointer], :int, **opts
396
+ attach_function :zhashx_test, [:bool], :void, **opts
397
+
398
+ require_relative 'ffi/zhashx'
399
+
400
+ attach_function :ziflist_new, [], :pointer, **opts
401
+ attach_function :ziflist_destroy, [:pointer], :void, **opts
402
+ attach_function :ziflist_reload, [:pointer], :void, **opts
403
+ attach_function :ziflist_size, [:pointer], :size_t, **opts
404
+ attach_function :ziflist_first, [:pointer], :string, **opts
405
+ attach_function :ziflist_next, [:pointer], :string, **opts
406
+ attach_function :ziflist_address, [:pointer], :string, **opts
407
+ attach_function :ziflist_broadcast, [:pointer], :string, **opts
408
+ attach_function :ziflist_netmask, [:pointer], :string, **opts
409
+ attach_function :ziflist_print, [:pointer], :void, **opts
410
+ attach_function :ziflist_test, [:bool], :void, **opts
411
+
412
+ require_relative 'ffi/ziflist'
413
+
414
+ attach_function :zlist_new, [], :pointer, **opts
415
+ attach_function :zlist_destroy, [:pointer], :void, **opts
416
+ attach_function :zlist_first, [:pointer], :pointer, **opts
417
+ attach_function :zlist_next, [:pointer], :pointer, **opts
418
+ attach_function :zlist_last, [:pointer], :pointer, **opts
419
+ attach_function :zlist_head, [:pointer], :pointer, **opts
420
+ attach_function :zlist_tail, [:pointer], :pointer, **opts
421
+ attach_function :zlist_item, [:pointer], :pointer, **opts
422
+ attach_function :zlist_append, [:pointer, :pointer], :int, **opts
423
+ attach_function :zlist_push, [:pointer, :pointer], :int, **opts
424
+ attach_function :zlist_pop, [:pointer], :pointer, **opts
425
+ attach_function :zlist_exists, [:pointer, :pointer], :bool, **opts
426
+ attach_function :zlist_remove, [:pointer, :pointer], :void, **opts
427
+ attach_function :zlist_dup, [:pointer], :pointer, **opts
428
+ attach_function :zlist_purge, [:pointer], :void, **opts
429
+ attach_function :zlist_size, [:pointer], :size_t, **opts
430
+ attach_function :zlist_sort, [:pointer, :pointer], :void, **opts
431
+ attach_function :zlist_autofree, [:pointer], :void, **opts
432
+ attach_function :zlist_comparefn, [:pointer, :pointer], :void, **opts
433
+ attach_function :zlist_freefn, [:pointer, :pointer, :pointer, :bool], :pointer, **opts
434
+ attach_function :zlist_test, [:bool], :void, **opts
435
+
436
+ require_relative 'ffi/zlist'
437
+
438
+ attach_function :zlistx_new, [], :pointer, **opts
439
+ attach_function :zlistx_destroy, [:pointer], :void, **opts
440
+ attach_function :zlistx_add_start, [:pointer, :pointer], :pointer, **opts
441
+ attach_function :zlistx_add_end, [:pointer, :pointer], :pointer, **opts
442
+ attach_function :zlistx_size, [:pointer], :size_t, **opts
443
+ attach_function :zlistx_head, [:pointer], :pointer, **opts
444
+ attach_function :zlistx_tail, [:pointer], :pointer, **opts
445
+ attach_function :zlistx_first, [:pointer], :pointer, **opts
446
+ attach_function :zlistx_next, [:pointer], :pointer, **opts
447
+ attach_function :zlistx_prev, [:pointer], :pointer, **opts
448
+ attach_function :zlistx_last, [:pointer], :pointer, **opts
449
+ attach_function :zlistx_item, [:pointer], :pointer, **opts
450
+ attach_function :zlistx_cursor, [:pointer], :pointer, **opts
451
+ attach_function :zlistx_handle_item, [:pointer], :pointer, **opts
452
+ attach_function :zlistx_find, [:pointer, :pointer], :pointer, **opts
453
+ attach_function :zlistx_detach, [:pointer, :pointer], :pointer, **opts
454
+ attach_function :zlistx_detach_cur, [:pointer], :pointer, **opts
455
+ attach_function :zlistx_delete, [:pointer, :pointer], :int, **opts
456
+ attach_function :zlistx_move_start, [:pointer, :pointer], :void, **opts
457
+ attach_function :zlistx_move_end, [:pointer, :pointer], :void, **opts
458
+ attach_function :zlistx_purge, [:pointer], :void, **opts
459
+ attach_function :zlistx_sort, [:pointer], :void, **opts
460
+ attach_function :zlistx_insert, [:pointer, :pointer, :bool], :pointer, **opts
461
+ attach_function :zlistx_reorder, [:pointer, :pointer, :bool], :void, **opts
462
+ attach_function :zlistx_dup, [:pointer], :pointer, **opts
463
+ attach_function :zlistx_set_destructor, [:pointer, :pointer], :void, **opts
464
+ attach_function :zlistx_set_duplicator, [:pointer, :pointer], :void, **opts
465
+ attach_function :zlistx_set_comparator, [:pointer, :pointer], :void, **opts
466
+ attach_function :zlistx_test, [:bool], :void, **opts
467
+
468
+ require_relative 'ffi/zlistx'
469
+
470
+ attach_function :zloop_new, [], :pointer, **opts
471
+ attach_function :zloop_destroy, [:pointer], :void, **opts
472
+ attach_function :zloop_reader, [:pointer, :pointer, :pointer, :pointer], :int, **opts
473
+ attach_function :zloop_reader_end, [:pointer, :pointer], :void, **opts
474
+ attach_function :zloop_reader_set_tolerant, [:pointer, :pointer], :void, **opts
475
+ attach_function :zloop_poller, [:pointer, :pointer, :pointer, :pointer], :int, **opts
476
+ attach_function :zloop_poller_end, [:pointer, :pointer], :void, **opts
477
+ attach_function :zloop_poller_set_tolerant, [:pointer, :pointer], :void, **opts
478
+ attach_function :zloop_timer, [:pointer, :size_t, :size_t, :pointer, :pointer], :int, **opts
479
+ attach_function :zloop_timer_end, [:pointer, :int], :int, **opts
480
+ attach_function :zloop_ticket, [:pointer, :pointer, :pointer], :pointer, **opts
481
+ attach_function :zloop_ticket_reset, [:pointer, :pointer], :void, **opts
482
+ attach_function :zloop_ticket_delete, [:pointer, :pointer], :void, **opts
483
+ attach_function :zloop_set_ticket_delay, [:pointer, :size_t], :void, **opts
484
+ attach_function :zloop_set_max_timers, [:pointer, :size_t], :void, **opts
485
+ attach_function :zloop_set_verbose, [:pointer, :bool], :void, **opts
486
+ begin # DRAFT method
487
+ attach_function :zloop_set_nonstop, [:pointer, :bool], :void, **opts
488
+ rescue ::FFI::NotFoundError
489
+ if $VERBOSE || $DEBUG
490
+ warn "The function zloop_set_nonstop() can't be used through " +
491
+ "this Ruby binding because it's not available."
492
+ end
493
+ end
494
+ attach_function :zloop_start, [:pointer], :int, **opts
495
+ attach_function :zloop_test, [:bool], :void, **opts
496
+
497
+ require_relative 'ffi/zloop'
498
+
499
+ attach_function :zmsg_new, [], :pointer, **opts
500
+ attach_function :zmsg_recv, [:pointer], :pointer, **opts
501
+ attach_function :zmsg_load, [:pointer], :pointer, **opts
502
+ attach_function :zmsg_decode, [:pointer], :pointer, **opts
503
+ attach_function :zmsg_new_signal, [:char], :pointer, **opts
504
+ attach_function :zmsg_destroy, [:pointer], :void, **opts
505
+ attach_function :zmsg_send, [:pointer, :pointer], :int, **opts
506
+ attach_function :zmsg_sendm, [:pointer, :pointer], :int, **opts
507
+ attach_function :zmsg_size, [:pointer], :size_t, **opts
508
+ attach_function :zmsg_content_size, [:pointer], :size_t, **opts
509
+ begin # DRAFT method
510
+ attach_function :zmsg_routing_id, [:pointer], :uint32, **opts
511
+ rescue ::FFI::NotFoundError
512
+ if $VERBOSE || $DEBUG
513
+ warn "The function zmsg_routing_id() can't be used through " +
514
+ "this Ruby binding because it's not available."
515
+ end
516
+ end
517
+ begin # DRAFT method
518
+ attach_function :zmsg_set_routing_id, [:pointer, :uint32], :void, **opts
519
+ rescue ::FFI::NotFoundError
520
+ if $VERBOSE || $DEBUG
521
+ warn "The function zmsg_set_routing_id() can't be used through " +
522
+ "this Ruby binding because it's not available."
523
+ end
524
+ end
525
+ attach_function :zmsg_prepend, [:pointer, :pointer], :int, **opts
526
+ attach_function :zmsg_append, [:pointer, :pointer], :int, **opts
527
+ attach_function :zmsg_pop, [:pointer], :pointer, **opts
528
+ attach_function :zmsg_pushmem, [:pointer, :pointer, :size_t], :int, **opts
529
+ attach_function :zmsg_addmem, [:pointer, :pointer, :size_t], :int, **opts
530
+ attach_function :zmsg_pushstr, [:pointer, :string], :int, **opts
531
+ attach_function :zmsg_addstr, [:pointer, :string], :int, **opts
532
+ attach_function :zmsg_pushstrf, [:pointer, :string, :varargs], :int, **opts
533
+ attach_function :zmsg_addstrf, [:pointer, :string, :varargs], :int, **opts
534
+ attach_function :zmsg_popstr, [:pointer], :pointer, **opts
535
+ attach_function :zmsg_addmsg, [:pointer, :pointer], :int, **opts
536
+ attach_function :zmsg_popmsg, [:pointer], :pointer, **opts
537
+ attach_function :zmsg_remove, [:pointer, :pointer], :void, **opts
538
+ attach_function :zmsg_first, [:pointer], :pointer, **opts
539
+ attach_function :zmsg_next, [:pointer], :pointer, **opts
540
+ attach_function :zmsg_last, [:pointer], :pointer, **opts
541
+ attach_function :zmsg_save, [:pointer, :pointer], :int, **opts
542
+ attach_function :zmsg_encode, [:pointer], :pointer, **opts
543
+ attach_function :zmsg_dup, [:pointer], :pointer, **opts
544
+ attach_function :zmsg_print, [:pointer], :void, **opts
545
+ attach_function :zmsg_eq, [:pointer, :pointer], :bool, **opts
546
+ attach_function :zmsg_signal, [:pointer], :int, **opts
547
+ attach_function :zmsg_is, [:pointer], :bool, **opts
548
+ attach_function :zmsg_test, [:bool], :void, **opts
549
+
550
+ require_relative 'ffi/zmsg'
551
+
552
+ attach_function :zpoller_new, [:pointer, :varargs], :pointer, **opts
553
+ attach_function :zpoller_destroy, [:pointer], :void, **opts
554
+ attach_function :zpoller_add, [:pointer, :pointer], :int, **opts
555
+ attach_function :zpoller_remove, [:pointer, :pointer], :int, **opts
556
+ begin # DRAFT method
557
+ attach_function :zpoller_set_nonstop, [:pointer, :bool], :void, **opts
558
+ rescue ::FFI::NotFoundError
559
+ if $VERBOSE || $DEBUG
560
+ warn "The function zpoller_set_nonstop() can't be used through " +
561
+ "this Ruby binding because it's not available."
562
+ end
563
+ end
564
+ attach_function :zpoller_wait, [:pointer, :int], :pointer, **opts
565
+ attach_function :zpoller_expired, [:pointer], :bool, **opts
566
+ attach_function :zpoller_terminated, [:pointer], :bool, **opts
567
+ attach_function :zpoller_test, [:bool], :void, **opts
568
+
569
+ require_relative 'ffi/zpoller'
570
+
571
+ begin # DRAFT method
572
+ attach_function :zproc_czmq_version, [], :int, **opts
573
+ rescue ::FFI::NotFoundError
574
+ if $VERBOSE || $DEBUG
575
+ warn "The function zproc_czmq_version() can't be used through " +
576
+ "this Ruby binding because it's not available."
577
+ end
578
+ end
579
+ begin # DRAFT method
580
+ attach_function :zproc_interrupted, [], :bool, **opts
581
+ rescue ::FFI::NotFoundError
582
+ if $VERBOSE || $DEBUG
583
+ warn "The function zproc_interrupted() can't be used through " +
584
+ "this Ruby binding because it's not available."
585
+ end
586
+ end
587
+ begin # DRAFT method
588
+ attach_function :zproc_has_curve, [], :bool, **opts
589
+ rescue ::FFI::NotFoundError
590
+ if $VERBOSE || $DEBUG
591
+ warn "The function zproc_has_curve() can't be used through " +
592
+ "this Ruby binding because it's not available."
593
+ end
594
+ end
595
+ begin # DRAFT method
596
+ attach_function :zproc_hostname, [], :pointer, **opts
597
+ rescue ::FFI::NotFoundError
598
+ if $VERBOSE || $DEBUG
599
+ warn "The function zproc_hostname() can't be used through " +
600
+ "this Ruby binding because it's not available."
601
+ end
602
+ end
603
+ begin # DRAFT method
604
+ attach_function :zproc_daemonize, [:string], :void, **opts
605
+ rescue ::FFI::NotFoundError
606
+ if $VERBOSE || $DEBUG
607
+ warn "The function zproc_daemonize() can't be used through " +
608
+ "this Ruby binding because it's not available."
609
+ end
610
+ end
611
+ begin # DRAFT method
612
+ attach_function :zproc_run_as, [:string, :string, :string], :void, **opts
613
+ rescue ::FFI::NotFoundError
614
+ if $VERBOSE || $DEBUG
615
+ warn "The function zproc_run_as() can't be used through " +
616
+ "this Ruby binding because it's not available."
617
+ end
618
+ end
619
+ begin # DRAFT method
620
+ attach_function :zproc_set_io_threads, [:size_t], :void, **opts
621
+ rescue ::FFI::NotFoundError
622
+ if $VERBOSE || $DEBUG
623
+ warn "The function zproc_set_io_threads() can't be used through " +
624
+ "this Ruby binding because it's not available."
625
+ end
626
+ end
627
+ begin # DRAFT method
628
+ attach_function :zproc_set_max_sockets, [:size_t], :void, **opts
629
+ rescue ::FFI::NotFoundError
630
+ if $VERBOSE || $DEBUG
631
+ warn "The function zproc_set_max_sockets() can't be used through " +
632
+ "this Ruby binding because it's not available."
633
+ end
634
+ end
635
+ begin # DRAFT method
636
+ attach_function :zproc_set_biface, [:string], :void, **opts
637
+ rescue ::FFI::NotFoundError
638
+ if $VERBOSE || $DEBUG
639
+ warn "The function zproc_set_biface() can't be used through " +
640
+ "this Ruby binding because it's not available."
641
+ end
642
+ end
643
+ begin # DRAFT method
644
+ attach_function :zproc_biface, [], :string, **opts
645
+ rescue ::FFI::NotFoundError
646
+ if $VERBOSE || $DEBUG
647
+ warn "The function zproc_biface() can't be used through " +
648
+ "this Ruby binding because it's not available."
649
+ end
650
+ end
651
+ begin # DRAFT method
652
+ attach_function :zproc_set_log_ident, [:string], :void, **opts
653
+ rescue ::FFI::NotFoundError
654
+ if $VERBOSE || $DEBUG
655
+ warn "The function zproc_set_log_ident() can't be used through " +
656
+ "this Ruby binding because it's not available."
657
+ end
658
+ end
659
+ begin # DRAFT method
660
+ attach_function :zproc_set_log_sender, [:string], :void, **opts
661
+ rescue ::FFI::NotFoundError
662
+ if $VERBOSE || $DEBUG
663
+ warn "The function zproc_set_log_sender() can't be used through " +
664
+ "this Ruby binding because it's not available."
665
+ end
666
+ end
667
+ begin # DRAFT method
668
+ attach_function :zproc_set_log_system, [:bool], :void, **opts
669
+ rescue ::FFI::NotFoundError
670
+ if $VERBOSE || $DEBUG
671
+ warn "The function zproc_set_log_system() can't be used through " +
672
+ "this Ruby binding because it's not available."
673
+ end
674
+ end
675
+ begin # DRAFT method
676
+ attach_function :zproc_log_error, [:string, :varargs], :void, **opts
677
+ rescue ::FFI::NotFoundError
678
+ if $VERBOSE || $DEBUG
679
+ warn "The function zproc_log_error() can't be used through " +
680
+ "this Ruby binding because it's not available."
681
+ end
682
+ end
683
+ begin # DRAFT method
684
+ attach_function :zproc_log_warning, [:string, :varargs], :void, **opts
685
+ rescue ::FFI::NotFoundError
686
+ if $VERBOSE || $DEBUG
687
+ warn "The function zproc_log_warning() can't be used through " +
688
+ "this Ruby binding because it's not available."
689
+ end
690
+ end
691
+ begin # DRAFT method
692
+ attach_function :zproc_log_notice, [:string, :varargs], :void, **opts
693
+ rescue ::FFI::NotFoundError
694
+ if $VERBOSE || $DEBUG
695
+ warn "The function zproc_log_notice() can't be used through " +
696
+ "this Ruby binding because it's not available."
697
+ end
698
+ end
699
+ begin # DRAFT method
700
+ attach_function :zproc_log_info, [:string, :varargs], :void, **opts
701
+ rescue ::FFI::NotFoundError
702
+ if $VERBOSE || $DEBUG
703
+ warn "The function zproc_log_info() can't be used through " +
704
+ "this Ruby binding because it's not available."
705
+ end
706
+ end
707
+ begin # DRAFT method
708
+ attach_function :zproc_log_debug, [:string, :varargs], :void, **opts
709
+ rescue ::FFI::NotFoundError
710
+ if $VERBOSE || $DEBUG
711
+ warn "The function zproc_log_debug() can't be used through " +
712
+ "this Ruby binding because it's not available."
713
+ end
714
+ end
715
+ begin # DRAFT method
716
+ attach_function :zproc_test, [:bool], :void, **opts
717
+ rescue ::FFI::NotFoundError
718
+ if $VERBOSE || $DEBUG
719
+ warn "The function zproc_test() can't be used through " +
720
+ "this Ruby binding because it's not available."
721
+ end
722
+ end
723
+
724
+ require_relative 'ffi/zproc'
725
+
726
+ attach_function :zsock_new, [:int], :pointer, **opts
727
+ attach_function :zsock_new_pub, [:string], :pointer, **opts
728
+ attach_function :zsock_new_sub, [:string, :string], :pointer, **opts
729
+ attach_function :zsock_new_req, [:string], :pointer, **opts
730
+ attach_function :zsock_new_rep, [:string], :pointer, **opts
731
+ attach_function :zsock_new_dealer, [:string], :pointer, **opts
732
+ attach_function :zsock_new_router, [:string], :pointer, **opts
733
+ attach_function :zsock_new_push, [:string], :pointer, **opts
734
+ attach_function :zsock_new_pull, [:string], :pointer, **opts
735
+ attach_function :zsock_new_xpub, [:string], :pointer, **opts
736
+ attach_function :zsock_new_xsub, [:string], :pointer, **opts
737
+ attach_function :zsock_new_pair, [:string], :pointer, **opts
738
+ attach_function :zsock_new_stream, [:string], :pointer, **opts
739
+ begin # DRAFT method
740
+ attach_function :zsock_new_server, [:string], :pointer, **opts
741
+ rescue ::FFI::NotFoundError
742
+ if $VERBOSE || $DEBUG
743
+ warn "The function zsock_new_server() can't be used through " +
744
+ "this Ruby binding because it's not available."
745
+ end
746
+ end
747
+ begin # DRAFT method
748
+ attach_function :zsock_new_client, [:string], :pointer, **opts
749
+ rescue ::FFI::NotFoundError
750
+ if $VERBOSE || $DEBUG
751
+ warn "The function zsock_new_client() can't be used through " +
752
+ "this Ruby binding because it's not available."
753
+ end
754
+ end
755
+ begin # DRAFT method
756
+ attach_function :zsock_new_radio, [:string], :pointer, **opts
757
+ rescue ::FFI::NotFoundError
758
+ if $VERBOSE || $DEBUG
759
+ warn "The function zsock_new_radio() can't be used through " +
760
+ "this Ruby binding because it's not available."
761
+ end
762
+ end
763
+ begin # DRAFT method
764
+ attach_function :zsock_new_dish, [:string], :pointer, **opts
765
+ rescue ::FFI::NotFoundError
766
+ if $VERBOSE || $DEBUG
767
+ warn "The function zsock_new_dish() can't be used through " +
768
+ "this Ruby binding because it's not available."
769
+ end
770
+ end
771
+ begin # DRAFT method
772
+ attach_function :zsock_new_gather, [:string], :pointer, **opts
773
+ rescue ::FFI::NotFoundError
774
+ if $VERBOSE || $DEBUG
775
+ warn "The function zsock_new_gather() can't be used through " +
776
+ "this Ruby binding because it's not available."
777
+ end
778
+ end
779
+ begin # DRAFT method
780
+ attach_function :zsock_new_scatter, [:string], :pointer, **opts
781
+ rescue ::FFI::NotFoundError
782
+ if $VERBOSE || $DEBUG
783
+ warn "The function zsock_new_scatter() can't be used through " +
784
+ "this Ruby binding because it's not available."
785
+ end
786
+ end
787
+ attach_function :zsock_destroy, [:pointer], :void, **opts
788
+ attach_function :zsock_bind, [:pointer, :string, :varargs], :int, **opts
789
+ attach_function :zsock_endpoint, [:pointer], :string, **opts
790
+ attach_function :zsock_unbind, [:pointer, :string, :varargs], :int, **opts
791
+ attach_function :zsock_connect, [:pointer, :string, :varargs], :int, **opts
792
+ attach_function :zsock_disconnect, [:pointer, :string, :varargs], :int, **opts
793
+ attach_function :zsock_attach, [:pointer, :string, :bool], :int, **opts
794
+ attach_function :zsock_type_str, [:pointer], :string, **opts
795
+ attach_function :zsock_send, [:pointer, :string, :varargs], :int, **opts
796
+ attach_function :zsock_vsend, [:pointer, :string, :pointer], :int, **opts
797
+ attach_function :zsock_recv, [:pointer, :string, :varargs], :int, **opts
798
+ attach_function :zsock_vrecv, [:pointer, :string, :pointer], :int, **opts
799
+ attach_function :zsock_bsend, [:pointer, :string, :varargs], :int, **opts
800
+ attach_function :zsock_brecv, [:pointer, :string, :varargs], :int, **opts
801
+ begin # DRAFT method
802
+ attach_function :zsock_routing_id, [:pointer], :uint32, **opts
803
+ rescue ::FFI::NotFoundError
804
+ if $VERBOSE || $DEBUG
805
+ warn "The function zsock_routing_id() can't be used through " +
806
+ "this Ruby binding because it's not available."
807
+ end
808
+ end
809
+ begin # DRAFT method
810
+ attach_function :zsock_set_routing_id, [:pointer, :uint32], :void, **opts
811
+ rescue ::FFI::NotFoundError
812
+ if $VERBOSE || $DEBUG
813
+ warn "The function zsock_set_routing_id() can't be used through " +
814
+ "this Ruby binding because it's not available."
815
+ end
816
+ end
817
+ attach_function :zsock_set_unbounded, [:pointer], :void, **opts
818
+ attach_function :zsock_signal, [:pointer, :char], :int, **opts
819
+ attach_function :zsock_wait, [:pointer], :int, **opts
820
+ attach_function :zsock_flush, [:pointer], :void, **opts
821
+ begin # DRAFT method
822
+ attach_function :zsock_join, [:pointer, :string], :int, **opts
823
+ rescue ::FFI::NotFoundError
824
+ if $VERBOSE || $DEBUG
825
+ warn "The function zsock_join() can't be used through " +
826
+ "this Ruby binding because it's not available."
827
+ end
828
+ end
829
+ begin # DRAFT method
830
+ attach_function :zsock_leave, [:pointer, :string], :int, **opts
831
+ rescue ::FFI::NotFoundError
832
+ if $VERBOSE || $DEBUG
833
+ warn "The function zsock_leave() can't be used through " +
834
+ "this Ruby binding because it's not available."
835
+ end
836
+ end
837
+ attach_function :zsock_is, [:pointer], :bool, **opts
838
+ attach_function :zsock_resolve, [:pointer], :pointer, **opts
839
+ begin # DRAFT method
840
+ attach_function :zsock_heartbeat_ivl, [:pointer], :int, **opts
841
+ rescue ::FFI::NotFoundError
842
+ if $VERBOSE || $DEBUG
843
+ warn "The function zsock_heartbeat_ivl() can't be used through " +
844
+ "this Ruby binding because it's not available."
845
+ end
846
+ end
847
+ begin # DRAFT method
848
+ attach_function :zsock_set_heartbeat_ivl, [:pointer, :int], :void, **opts
849
+ rescue ::FFI::NotFoundError
850
+ if $VERBOSE || $DEBUG
851
+ warn "The function zsock_set_heartbeat_ivl() can't be used through " +
852
+ "this Ruby binding because it's not available."
853
+ end
854
+ end
855
+ begin # DRAFT method
856
+ attach_function :zsock_heartbeat_ttl, [:pointer], :int, **opts
857
+ rescue ::FFI::NotFoundError
858
+ if $VERBOSE || $DEBUG
859
+ warn "The function zsock_heartbeat_ttl() can't be used through " +
860
+ "this Ruby binding because it's not available."
861
+ end
862
+ end
863
+ begin # DRAFT method
864
+ attach_function :zsock_set_heartbeat_ttl, [:pointer, :int], :void, **opts
865
+ rescue ::FFI::NotFoundError
866
+ if $VERBOSE || $DEBUG
867
+ warn "The function zsock_set_heartbeat_ttl() can't be used through " +
868
+ "this Ruby binding because it's not available."
869
+ end
870
+ end
871
+ begin # DRAFT method
872
+ attach_function :zsock_heartbeat_timeout, [:pointer], :int, **opts
873
+ rescue ::FFI::NotFoundError
874
+ if $VERBOSE || $DEBUG
875
+ warn "The function zsock_heartbeat_timeout() can't be used through " +
876
+ "this Ruby binding because it's not available."
877
+ end
878
+ end
879
+ begin # DRAFT method
880
+ attach_function :zsock_set_heartbeat_timeout, [:pointer, :int], :void, **opts
881
+ rescue ::FFI::NotFoundError
882
+ if $VERBOSE || $DEBUG
883
+ warn "The function zsock_set_heartbeat_timeout() can't be used through " +
884
+ "this Ruby binding because it's not available."
885
+ end
886
+ end
887
+ begin # DRAFT method
888
+ attach_function :zsock_use_fd, [:pointer], :int, **opts
889
+ rescue ::FFI::NotFoundError
890
+ if $VERBOSE || $DEBUG
891
+ warn "The function zsock_use_fd() can't be used through " +
892
+ "this Ruby binding because it's not available."
893
+ end
894
+ end
895
+ begin # DRAFT method
896
+ attach_function :zsock_set_use_fd, [:pointer, :int], :void, **opts
897
+ rescue ::FFI::NotFoundError
898
+ if $VERBOSE || $DEBUG
899
+ warn "The function zsock_set_use_fd() can't be used through " +
900
+ "this Ruby binding because it's not available."
901
+ end
902
+ end
903
+ attach_function :zsock_tos, [:pointer], :int, **opts
904
+ attach_function :zsock_set_tos, [:pointer, :int], :void, **opts
905
+ attach_function :zsock_set_router_handover, [:pointer, :int], :void, **opts
906
+ attach_function :zsock_set_router_mandatory, [:pointer, :int], :void, **opts
907
+ attach_function :zsock_set_probe_router, [:pointer, :int], :void, **opts
908
+ attach_function :zsock_set_req_relaxed, [:pointer, :int], :void, **opts
909
+ attach_function :zsock_set_req_correlate, [:pointer, :int], :void, **opts
910
+ attach_function :zsock_set_conflate, [:pointer, :int], :void, **opts
911
+ attach_function :zsock_zap_domain, [:pointer], :pointer, **opts
912
+ attach_function :zsock_set_zap_domain, [:pointer, :string], :void, **opts
913
+ attach_function :zsock_mechanism, [:pointer], :int, **opts
914
+ attach_function :zsock_plain_server, [:pointer], :int, **opts
915
+ attach_function :zsock_set_plain_server, [:pointer, :int], :void, **opts
916
+ attach_function :zsock_plain_username, [:pointer], :pointer, **opts
917
+ attach_function :zsock_set_plain_username, [:pointer, :string], :void, **opts
918
+ attach_function :zsock_plain_password, [:pointer], :pointer, **opts
919
+ attach_function :zsock_set_plain_password, [:pointer, :string], :void, **opts
920
+ attach_function :zsock_curve_server, [:pointer], :int, **opts
921
+ attach_function :zsock_set_curve_server, [:pointer, :int], :void, **opts
922
+ attach_function :zsock_curve_publickey, [:pointer], :pointer, **opts
923
+ attach_function :zsock_set_curve_publickey, [:pointer, :string], :void, **opts
924
+ attach_function :zsock_set_curve_publickey_bin, [:pointer, :pointer], :void, **opts
925
+ attach_function :zsock_curve_secretkey, [:pointer], :pointer, **opts
926
+ attach_function :zsock_set_curve_secretkey, [:pointer, :string], :void, **opts
927
+ attach_function :zsock_set_curve_secretkey_bin, [:pointer, :pointer], :void, **opts
928
+ attach_function :zsock_curve_serverkey, [:pointer], :pointer, **opts
929
+ attach_function :zsock_set_curve_serverkey, [:pointer, :string], :void, **opts
930
+ attach_function :zsock_set_curve_serverkey_bin, [:pointer, :pointer], :void, **opts
931
+ attach_function :zsock_gssapi_server, [:pointer], :int, **opts
932
+ attach_function :zsock_set_gssapi_server, [:pointer, :int], :void, **opts
933
+ attach_function :zsock_gssapi_plaintext, [:pointer], :int, **opts
934
+ attach_function :zsock_set_gssapi_plaintext, [:pointer, :int], :void, **opts
935
+ attach_function :zsock_gssapi_principal, [:pointer], :pointer, **opts
936
+ attach_function :zsock_set_gssapi_principal, [:pointer, :string], :void, **opts
937
+ attach_function :zsock_gssapi_service_principal, [:pointer], :pointer, **opts
938
+ attach_function :zsock_set_gssapi_service_principal, [:pointer, :string], :void, **opts
939
+ attach_function :zsock_ipv6, [:pointer], :int, **opts
940
+ attach_function :zsock_set_ipv6, [:pointer, :int], :void, **opts
941
+ attach_function :zsock_immediate, [:pointer], :int, **opts
942
+ attach_function :zsock_set_immediate, [:pointer, :int], :void, **opts
943
+ attach_function :zsock_set_router_raw, [:pointer, :int], :void, **opts
944
+ attach_function :zsock_ipv4only, [:pointer], :int, **opts
945
+ attach_function :zsock_set_ipv4only, [:pointer, :int], :void, **opts
946
+ attach_function :zsock_set_delay_attach_on_connect, [:pointer, :int], :void, **opts
947
+ attach_function :zsock_type, [:pointer], :int, **opts
948
+ attach_function :zsock_sndhwm, [:pointer], :int, **opts
949
+ attach_function :zsock_set_sndhwm, [:pointer, :int], :void, **opts
950
+ attach_function :zsock_rcvhwm, [:pointer], :int, **opts
951
+ attach_function :zsock_set_rcvhwm, [:pointer, :int], :void, **opts
952
+ attach_function :zsock_affinity, [:pointer], :int, **opts
953
+ attach_function :zsock_set_affinity, [:pointer, :int], :void, **opts
954
+ attach_function :zsock_set_subscribe, [:pointer, :string], :void, **opts
955
+ attach_function :zsock_set_unsubscribe, [:pointer, :string], :void, **opts
956
+ attach_function :zsock_identity, [:pointer], :pointer, **opts
957
+ attach_function :zsock_set_identity, [:pointer, :string], :void, **opts
958
+ attach_function :zsock_rate, [:pointer], :int, **opts
959
+ attach_function :zsock_set_rate, [:pointer, :int], :void, **opts
960
+ attach_function :zsock_recovery_ivl, [:pointer], :int, **opts
961
+ attach_function :zsock_set_recovery_ivl, [:pointer, :int], :void, **opts
962
+ attach_function :zsock_sndbuf, [:pointer], :int, **opts
963
+ attach_function :zsock_set_sndbuf, [:pointer, :int], :void, **opts
964
+ attach_function :zsock_rcvbuf, [:pointer], :int, **opts
965
+ attach_function :zsock_set_rcvbuf, [:pointer, :int], :void, **opts
966
+ attach_function :zsock_linger, [:pointer], :int, **opts
967
+ attach_function :zsock_set_linger, [:pointer, :int], :void, **opts
968
+ attach_function :zsock_reconnect_ivl, [:pointer], :int, **opts
969
+ attach_function :zsock_set_reconnect_ivl, [:pointer, :int], :void, **opts
970
+ attach_function :zsock_reconnect_ivl_max, [:pointer], :int, **opts
971
+ attach_function :zsock_set_reconnect_ivl_max, [:pointer, :int], :void, **opts
972
+ attach_function :zsock_backlog, [:pointer], :int, **opts
973
+ attach_function :zsock_set_backlog, [:pointer, :int], :void, **opts
974
+ attach_function :zsock_maxmsgsize, [:pointer], :int, **opts
975
+ attach_function :zsock_set_maxmsgsize, [:pointer, :int], :void, **opts
976
+ attach_function :zsock_multicast_hops, [:pointer], :int, **opts
977
+ attach_function :zsock_set_multicast_hops, [:pointer, :int], :void, **opts
978
+ attach_function :zsock_rcvtimeo, [:pointer], :int, **opts
979
+ attach_function :zsock_set_rcvtimeo, [:pointer, :int], :void, **opts
980
+ attach_function :zsock_sndtimeo, [:pointer], :int, **opts
981
+ attach_function :zsock_set_sndtimeo, [:pointer, :int], :void, **opts
982
+ attach_function :zsock_set_xpub_verbose, [:pointer, :int], :void, **opts
983
+ attach_function :zsock_tcp_keepalive, [:pointer], :int, **opts
984
+ attach_function :zsock_set_tcp_keepalive, [:pointer, :int], :void, **opts
985
+ attach_function :zsock_tcp_keepalive_idle, [:pointer], :int, **opts
986
+ attach_function :zsock_set_tcp_keepalive_idle, [:pointer, :int], :void, **opts
987
+ attach_function :zsock_tcp_keepalive_cnt, [:pointer], :int, **opts
988
+ attach_function :zsock_set_tcp_keepalive_cnt, [:pointer, :int], :void, **opts
989
+ attach_function :zsock_tcp_keepalive_intvl, [:pointer], :int, **opts
990
+ attach_function :zsock_set_tcp_keepalive_intvl, [:pointer, :int], :void, **opts
991
+ attach_function :zsock_tcp_accept_filter, [:pointer], :pointer, **opts
992
+ attach_function :zsock_set_tcp_accept_filter, [:pointer, :string], :void, **opts
993
+ attach_function :zsock_rcvmore, [:pointer], :int, **opts
994
+ attach_function :zsock_fd, [:pointer], :pointer, **opts
995
+ attach_function :zsock_events, [:pointer], :int, **opts
996
+ attach_function :zsock_last_endpoint, [:pointer], :pointer, **opts
997
+ attach_function :zsock_test, [:bool], :void, **opts
998
+
999
+ require_relative 'ffi/zsock'
1000
+
1001
+ attach_function :zstr_recv, [:pointer], :pointer, **opts
1002
+ attach_function :zstr_recvx, [:pointer, :pointer, :varargs], :int, **opts
1003
+ attach_function :zstr_send, [:pointer, :string], :int, **opts
1004
+ attach_function :zstr_sendm, [:pointer, :string], :int, **opts
1005
+ attach_function :zstr_sendf, [:pointer, :string, :varargs], :int, **opts
1006
+ attach_function :zstr_sendfm, [:pointer, :string, :varargs], :int, **opts
1007
+ attach_function :zstr_sendx, [:pointer, :string, :varargs], :int, **opts
1008
+ begin # DRAFT method
1009
+ attach_function :zstr_str, [:pointer], :pointer, **opts
1010
+ rescue ::FFI::NotFoundError
1011
+ if $VERBOSE || $DEBUG
1012
+ warn "The function zstr_str() can't be used through " +
1013
+ "this Ruby binding because it's not available."
1014
+ end
1015
+ end
1016
+ attach_function :zstr_free, [:pointer], :void, **opts
1017
+ attach_function :zstr_test, [:bool], :void, **opts
1018
+
1019
+ require_relative 'ffi/zstr'
1020
+
1021
+ begin # DRAFT method
1022
+ attach_function :ztimerset_new, [], :pointer, **opts
1023
+ rescue ::FFI::NotFoundError
1024
+ if $VERBOSE || $DEBUG
1025
+ warn "The function ztimerset_new() can't be used through " +
1026
+ "this Ruby binding because it's not available."
1027
+ end
1028
+ end
1029
+ begin # DRAFT method
1030
+ attach_function :ztimerset_destroy, [:pointer], :void, **opts
1031
+ rescue ::FFI::NotFoundError
1032
+ if $VERBOSE || $DEBUG
1033
+ warn "The function ztimerset_destroy() can't be used through " +
1034
+ "this Ruby binding because it's not available."
1035
+ end
1036
+ end
1037
+ begin # DRAFT method
1038
+ attach_function :ztimerset_add, [:pointer, :size_t, :pointer, :pointer], :int, **opts
1039
+ rescue ::FFI::NotFoundError
1040
+ if $VERBOSE || $DEBUG
1041
+ warn "The function ztimerset_add() can't be used through " +
1042
+ "this Ruby binding because it's not available."
1043
+ end
1044
+ end
1045
+ begin # DRAFT method
1046
+ attach_function :ztimerset_cancel, [:pointer, :int], :int, **opts
1047
+ rescue ::FFI::NotFoundError
1048
+ if $VERBOSE || $DEBUG
1049
+ warn "The function ztimerset_cancel() can't be used through " +
1050
+ "this Ruby binding because it's not available."
1051
+ end
1052
+ end
1053
+ begin # DRAFT method
1054
+ attach_function :ztimerset_set_interval, [:pointer, :int, :size_t], :int, **opts
1055
+ rescue ::FFI::NotFoundError
1056
+ if $VERBOSE || $DEBUG
1057
+ warn "The function ztimerset_set_interval() can't be used through " +
1058
+ "this Ruby binding because it's not available."
1059
+ end
1060
+ end
1061
+ begin # DRAFT method
1062
+ attach_function :ztimerset_reset, [:pointer, :int], :int, **opts
1063
+ rescue ::FFI::NotFoundError
1064
+ if $VERBOSE || $DEBUG
1065
+ warn "The function ztimerset_reset() can't be used through " +
1066
+ "this Ruby binding because it's not available."
1067
+ end
1068
+ end
1069
+ begin # DRAFT method
1070
+ attach_function :ztimerset_timeout, [:pointer], :int, **opts
1071
+ rescue ::FFI::NotFoundError
1072
+ if $VERBOSE || $DEBUG
1073
+ warn "The function ztimerset_timeout() can't be used through " +
1074
+ "this Ruby binding because it's not available."
1075
+ end
1076
+ end
1077
+ begin # DRAFT method
1078
+ attach_function :ztimerset_execute, [:pointer], :int, **opts
1079
+ rescue ::FFI::NotFoundError
1080
+ if $VERBOSE || $DEBUG
1081
+ warn "The function ztimerset_execute() can't be used through " +
1082
+ "this Ruby binding because it's not available."
1083
+ end
1084
+ end
1085
+ begin # DRAFT method
1086
+ attach_function :ztimerset_test, [:bool], :void, **opts
1087
+ rescue ::FFI::NotFoundError
1088
+ if $VERBOSE || $DEBUG
1089
+ warn "The function ztimerset_test() can't be used through " +
1090
+ "this Ruby binding because it's not available."
1091
+ end
1092
+ end
1093
+
1094
+ require_relative 'ffi/ztimerset'
1095
+
1096
+ begin # DRAFT method
1097
+ attach_function :ztrie_new, [:pointer], :pointer, **opts
1098
+ rescue ::FFI::NotFoundError
1099
+ if $VERBOSE || $DEBUG
1100
+ warn "The function ztrie_new() can't be used through " +
1101
+ "this Ruby binding because it's not available."
1102
+ end
1103
+ end
1104
+ begin # DRAFT method
1105
+ attach_function :ztrie_destroy, [:pointer], :void, **opts
1106
+ rescue ::FFI::NotFoundError
1107
+ if $VERBOSE || $DEBUG
1108
+ warn "The function ztrie_destroy() can't be used through " +
1109
+ "this Ruby binding because it's not available."
1110
+ end
1111
+ end
1112
+ begin # DRAFT method
1113
+ attach_function :ztrie_insert_route, [:pointer, :string, :pointer, :pointer], :int, **opts
1114
+ rescue ::FFI::NotFoundError
1115
+ if $VERBOSE || $DEBUG
1116
+ warn "The function ztrie_insert_route() can't be used through " +
1117
+ "this Ruby binding because it's not available."
1118
+ end
1119
+ end
1120
+ begin # DRAFT method
1121
+ attach_function :ztrie_remove_route, [:pointer, :string], :int, **opts
1122
+ rescue ::FFI::NotFoundError
1123
+ if $VERBOSE || $DEBUG
1124
+ warn "The function ztrie_remove_route() can't be used through " +
1125
+ "this Ruby binding because it's not available."
1126
+ end
1127
+ end
1128
+ begin # DRAFT method
1129
+ attach_function :ztrie_matches, [:pointer, :string], :bool, **opts
1130
+ rescue ::FFI::NotFoundError
1131
+ if $VERBOSE || $DEBUG
1132
+ warn "The function ztrie_matches() can't be used through " +
1133
+ "this Ruby binding because it's not available."
1134
+ end
1135
+ end
1136
+ begin # DRAFT method
1137
+ attach_function :ztrie_hit_data, [:pointer], :pointer, **opts
1138
+ rescue ::FFI::NotFoundError
1139
+ if $VERBOSE || $DEBUG
1140
+ warn "The function ztrie_hit_data() can't be used through " +
1141
+ "this Ruby binding because it's not available."
1142
+ end
1143
+ end
1144
+ begin # DRAFT method
1145
+ attach_function :ztrie_hit_parameter_count, [:pointer], :size_t, **opts
1146
+ rescue ::FFI::NotFoundError
1147
+ if $VERBOSE || $DEBUG
1148
+ warn "The function ztrie_hit_parameter_count() can't be used through " +
1149
+ "this Ruby binding because it's not available."
1150
+ end
1151
+ end
1152
+ begin # DRAFT method
1153
+ attach_function :ztrie_hit_parameters, [:pointer], :pointer, **opts
1154
+ rescue ::FFI::NotFoundError
1155
+ if $VERBOSE || $DEBUG
1156
+ warn "The function ztrie_hit_parameters() can't be used through " +
1157
+ "this Ruby binding because it's not available."
1158
+ end
1159
+ end
1160
+ begin # DRAFT method
1161
+ attach_function :ztrie_hit_asterisk_match, [:pointer], :string, **opts
1162
+ rescue ::FFI::NotFoundError
1163
+ if $VERBOSE || $DEBUG
1164
+ warn "The function ztrie_hit_asterisk_match() can't be used through " +
1165
+ "this Ruby binding because it's not available."
1166
+ end
1167
+ end
1168
+ begin # DRAFT method
1169
+ attach_function :ztrie_print, [:pointer], :void, **opts
1170
+ rescue ::FFI::NotFoundError
1171
+ if $VERBOSE || $DEBUG
1172
+ warn "The function ztrie_print() can't be used through " +
1173
+ "this Ruby binding because it's not available."
1174
+ end
1175
+ end
1176
+ begin # DRAFT method
1177
+ attach_function :ztrie_test, [:bool], :void, **opts
1178
+ rescue ::FFI::NotFoundError
1179
+ if $VERBOSE || $DEBUG
1180
+ warn "The function ztrie_test() can't be used through " +
1181
+ "this Ruby binding because it's not available."
1182
+ end
1183
+ end
1184
+
1185
+ require_relative 'ffi/ztrie'
1186
+
1187
+ attach_function :zuuid_new, [], :pointer, **opts
1188
+ attach_function :zuuid_new_from, [:pointer], :pointer, **opts
1189
+ attach_function :zuuid_destroy, [:pointer], :void, **opts
1190
+ attach_function :zuuid_set, [:pointer, :pointer], :void, **opts
1191
+ attach_function :zuuid_set_str, [:pointer, :string], :int, **opts
1192
+ attach_function :zuuid_data, [:pointer], :pointer, **opts
1193
+ attach_function :zuuid_size, [:pointer], :size_t, **opts
1194
+ attach_function :zuuid_str, [:pointer], :string, **opts
1195
+ attach_function :zuuid_str_canonical, [:pointer], :string, **opts
1196
+ attach_function :zuuid_export, [:pointer, :pointer], :void, **opts
1197
+ attach_function :zuuid_eq, [:pointer, :pointer], :bool, **opts
1198
+ attach_function :zuuid_neq, [:pointer, :pointer], :bool, **opts
1199
+ attach_function :zuuid_dup, [:pointer], :pointer, **opts
1200
+ attach_function :zuuid_test, [:bool], :void, **opts
1201
+
1202
+ require_relative 'ffi/zuuid'
1203
+ end
1204
+ end
1205
+ end
1206
+
1207
+ ################################################################################
1208
+ # THIS FILE IS 100% GENERATED BY ZPROJECT; DO NOT EDIT EXCEPT EXPERIMENTALLY #
1209
+ # Read the zproject/README.md for information about making permanent changes. #
1210
+ ################################################################################