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
6require 'ffi'
7require_relative 'ffi/version'
8
9module 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_dirs = ['/usr/local/lib', '/opt/local/lib', '/usr/lib64']
26      env_name = "#{lib_name.upcase}_PATH"
27      lib_dirs = [*ENV[env_name].split(':'), *lib_dirs] if ENV[env_name]
28      lib_paths = lib_dirs.map { |path| "#{path}/#{lib_name}.#{::FFI::Platform::LIBSUFFIX}" }
29      ffi_lib lib_paths + [lib_name]
30      @available = true
31    rescue LoadError
32      warn ""
33      warn "WARNING: ::CZMQ::FFI is not available without libczmq."
34      warn ""
35      @available = false
36    end
37
38
39    def self.attach_function(name, *rest)
40      super
41    rescue ::FFI::NotFoundError
42      define_singleton_method name do |*|
43        raise NotImplementedError, "The function #{name}() is not provided by the CZMQ library installed. Upgrade the library or compile it with --enable-drafts."
44      end
45
46      return unless $VERBOSE || $DEBUG
47
48      warn "The function #{name}() is not provided by the installed CZMQ library."
49    end
50
51    if available?
52      opts = {
53        blocking: true  # only necessary on MRI to deal with the GIL.
54      }
55
56      attach_function :zactor_new, [:pointer, :pointer], :pointer, **opts
57      attach_function :zactor_destroy, [:pointer], :void, **opts
58      attach_function :zactor_send, [:pointer, :pointer], :int, **opts
59      attach_function :zactor_recv, [:pointer], :pointer, **opts
60      attach_function :zactor_is, [:pointer], :bool, **opts
61      attach_function :zactor_resolve, [:pointer], :pointer, **opts
62      attach_function :zactor_sock, [:pointer], :pointer, **opts
63      attach_function :zactor_set_destructor, [:pointer, :pointer], :void, **opts
64      attach_function :zactor_test, [:bool], :void, **opts
65
66      require_relative 'ffi/zactor'
67
68      attach_function :zargs_new, [:int, :pointer], :pointer, **opts
69      attach_function :zargs_destroy, [:pointer], :void, **opts
70      attach_function :zargs_progname, [:pointer], :string, **opts
71      attach_function :zargs_arguments, [:pointer], :size_t, **opts
72      attach_function :zargs_first, [:pointer], :string, **opts
73      attach_function :zargs_next, [:pointer], :string, **opts
74      attach_function :zargs_param_first, [:pointer], :string, **opts
75      attach_function :zargs_param_next, [:pointer], :string, **opts
76      attach_function :zargs_param_name, [:pointer], :string, **opts
77      attach_function :zargs_get, [:pointer, :string], :string, **opts
78      attach_function :zargs_getx, [:pointer, :string, :varargs], :string, **opts
79      attach_function :zargs_has, [:pointer, :string], :bool, **opts
80      attach_function :zargs_hasx, [:pointer, :string, :varargs], :bool, **opts
81      attach_function :zargs_print, [:pointer], :void, **opts
82      attach_function :zargs_test, [:bool], :void, **opts
83
84      require_relative 'ffi/zargs'
85
86      attach_function :zarmour_new, [], :pointer, **opts
87      attach_function :zarmour_destroy, [:pointer], :void, **opts
88      attach_function :zarmour_encode, [:pointer, :pointer, :size_t], :pointer, **opts
89      attach_function :zarmour_decode, [:pointer, :string], :pointer, **opts
90      attach_function :zarmour_mode, [:pointer], :int, **opts
91      attach_function :zarmour_mode_str, [:pointer], :string, **opts
92      attach_function :zarmour_set_mode, [:pointer, :int], :void, **opts
93      attach_function :zarmour_pad, [:pointer], :bool, **opts
94      attach_function :zarmour_set_pad, [:pointer, :bool], :void, **opts
95      attach_function :zarmour_pad_char, [:pointer], :pointer, **opts
96      attach_function :zarmour_set_pad_char, [:pointer, :pointer], :void, **opts
97      attach_function :zarmour_line_breaks, [:pointer], :bool, **opts
98      attach_function :zarmour_set_line_breaks, [:pointer, :bool], :void, **opts
99      attach_function :zarmour_line_length, [:pointer], :size_t, **opts
100      attach_function :zarmour_set_line_length, [:pointer, :size_t], :void, **opts
101      attach_function :zarmour_print, [:pointer], :void, **opts
102      attach_function :zarmour_test, [:bool], :void, **opts
103
104      require_relative 'ffi/zarmour'
105
106      attach_function :zcert_new, [], :pointer, **opts
107      attach_function :zcert_new_from, [:pointer, :pointer], :pointer, **opts
108      attach_function :zcert_new_from_txt, [:string, :string], :pointer, **opts
109      attach_function :zcert_load, [:string], :pointer, **opts
110      attach_function :zcert_destroy, [:pointer], :void, **opts
111      attach_function :zcert_public_key, [:pointer], :pointer, **opts
112      attach_function :zcert_secret_key, [:pointer], :pointer, **opts
113      attach_function :zcert_public_txt, [:pointer], :string, **opts
114      attach_function :zcert_secret_txt, [:pointer], :string, **opts
115      attach_function :zcert_set_meta, [:pointer, :string, :string, :varargs], :void, **opts
116      attach_function :zcert_unset_meta, [:pointer, :string], :void, **opts
117      attach_function :zcert_meta, [:pointer, :string], :string, **opts
118      attach_function :zcert_meta_keys, [:pointer], :pointer, **opts
119      attach_function :zcert_save, [:pointer, :string], :int, **opts
120      attach_function :zcert_save_public, [:pointer, :string], :int, **opts
121      attach_function :zcert_save_secret, [:pointer, :string], :int, **opts
122      attach_function :zcert_apply, [:pointer, :pointer], :void, **opts
123      attach_function :zcert_dup, [:pointer], :pointer, **opts
124      attach_function :zcert_eq, [:pointer, :pointer], :bool, **opts
125      attach_function :zcert_print, [:pointer], :void, **opts
126      attach_function :zcert_test, [:bool], :void, **opts
127
128      require_relative 'ffi/zcert'
129
130      attach_function :zcertstore_new, [:string], :pointer, **opts
131      attach_function :zcertstore_destroy, [:pointer], :void, **opts
132      attach_function :zcertstore_set_loader, [:pointer, :pointer, :pointer, :pointer], :void, **opts
133      attach_function :zcertstore_lookup, [:pointer, :string], :pointer, **opts
134      attach_function :zcertstore_insert, [:pointer, :pointer], :void, **opts
135      attach_function :zcertstore_empty, [:pointer], :void, **opts
136      attach_function :zcertstore_print, [:pointer], :void, **opts
137      attach_function :zcertstore_certs, [:pointer], :pointer, **opts
138      attach_function :zcertstore_state, [:pointer], :pointer, **opts
139      attach_function :zcertstore_test, [:bool], :void, **opts
140
141      require_relative 'ffi/zcertstore'
142
143      attach_function :zchunk_new, [:pointer, :size_t], :pointer, **opts
144      attach_function :zchunk_frommem, [:pointer, :size_t, :pointer, :pointer], :pointer, **opts
145      attach_function :zchunk_destroy, [:pointer], :void, **opts
146      attach_function :zchunk_resize, [:pointer, :size_t], :void, **opts
147      attach_function :zchunk_size, [:pointer], :size_t, **opts
148      attach_function :zchunk_max_size, [:pointer], :size_t, **opts
149      attach_function :zchunk_data, [:pointer], :pointer, **opts
150      attach_function :zchunk_set, [:pointer, :pointer, :size_t], :size_t, **opts
151      attach_function :zchunk_fill, [:pointer, :char, :size_t], :size_t, **opts
152      attach_function :zchunk_append, [:pointer, :pointer, :size_t], :size_t, **opts
153      attach_function :zchunk_extend, [:pointer, :pointer, :size_t], :size_t, **opts
154      attach_function :zchunk_consume, [:pointer, :pointer], :size_t, **opts
155      attach_function :zchunk_exhausted, [:pointer], :bool, **opts
156      attach_function :zchunk_read, [:pointer, :size_t], :pointer, **opts
157      attach_function :zchunk_write, [:pointer, :pointer], :int, **opts
158      attach_function :zchunk_slurp, [:string, :size_t], :pointer, **opts
159      attach_function :zchunk_dup, [:pointer], :pointer, **opts
160      attach_function :zchunk_strhex, [:pointer], :pointer, **opts
161      attach_function :zchunk_strdup, [:pointer], :pointer, **opts
162      attach_function :zchunk_streq, [:pointer, :string], :bool, **opts
163      attach_function :zchunk_pack, [:pointer], :pointer, **opts
164      attach_function :zchunk_packx, [:pointer], :pointer, **opts
165      attach_function :zchunk_unpack, [:pointer], :pointer, **opts
166      attach_function :zchunk_digest, [:pointer], :string, **opts
167      attach_function :zchunk_fprint, [:pointer, :pointer], :void, **opts
168      attach_function :zchunk_print, [:pointer], :void, **opts
169      attach_function :zchunk_is, [:pointer], :bool, **opts
170      attach_function :zchunk_test, [:bool], :void, **opts
171
172      require_relative 'ffi/zchunk'
173
174      attach_function :zclock_sleep, [:int], :void, **opts
175      attach_function :zclock_time, [], :pointer, **opts
176      attach_function :zclock_mono, [], :pointer, **opts
177      attach_function :zclock_usecs, [], :pointer, **opts
178      attach_function :zclock_timestr, [], :pointer, **opts
179      attach_function :zclock_test, [:bool], :void, **opts
180
181      require_relative 'ffi/zclock'
182
183      attach_function :zconfig_new, [:string, :pointer], :pointer, **opts
184      attach_function :zconfig_load, [:string], :pointer, **opts
185      attach_function :zconfig_loadf, [:string, :varargs], :pointer, **opts
186      attach_function :zconfig_destroy, [:pointer], :void, **opts
187      attach_function :zconfig_dup, [:pointer], :pointer, **opts
188      attach_function :zconfig_name, [:pointer], :pointer, **opts
189      attach_function :zconfig_value, [:pointer], :pointer, **opts
190      attach_function :zconfig_put, [:pointer, :string, :string], :void, **opts
191      attach_function :zconfig_putf, [:pointer, :string, :string, :varargs], :void, **opts
192      attach_function :zconfig_get, [:pointer, :string, :string], :pointer, **opts
193      attach_function :zconfig_set_name, [:pointer, :string], :void, **opts
194      attach_function :zconfig_set_value, [:pointer, :string, :varargs], :void, **opts
195      attach_function :zconfig_child, [:pointer], :pointer, **opts
196      attach_function :zconfig_next, [:pointer], :pointer, **opts
197      attach_function :zconfig_locate, [:pointer, :string], :pointer, **opts
198      attach_function :zconfig_at_depth, [:pointer, :int], :pointer, **opts
199      attach_function :zconfig_execute, [:pointer, :pointer, :pointer], :int, **opts
200      attach_function :zconfig_set_comment, [:pointer, :string, :varargs], :void, **opts
201      attach_function :zconfig_comments, [:pointer], :pointer, **opts
202      attach_function :zconfig_save, [:pointer, :string], :int, **opts
203      attach_function :zconfig_savef, [:pointer, :string, :varargs], :int, **opts
204      attach_function :zconfig_filename, [:pointer], :string, **opts
205      attach_function :zconfig_reload, [:pointer], :int, **opts
206      attach_function :zconfig_chunk_load, [:pointer], :pointer, **opts
207      attach_function :zconfig_chunk_save, [:pointer], :pointer, **opts
208      attach_function :zconfig_str_load, [:string], :pointer, **opts
209      attach_function :zconfig_str_save, [:pointer], :pointer, **opts
210      attach_function :zconfig_has_changed, [:pointer], :bool, **opts
211      attach_function :zconfig_remove_subtree, [:pointer], :void, **opts
212      attach_function :zconfig_remove, [:pointer], :void, **opts
213      attach_function :zconfig_fprint, [:pointer, :pointer], :void, **opts
214      attach_function :zconfig_print, [:pointer], :void, **opts
215      attach_function :zconfig_test, [:bool], :void, **opts
216
217      require_relative 'ffi/zconfig'
218
219      attach_function :zdigest_new, [], :pointer, **opts
220      attach_function :zdigest_destroy, [:pointer], :void, **opts
221      attach_function :zdigest_update, [:pointer, :pointer, :size_t], :void, **opts
222      attach_function :zdigest_data, [:pointer], :pointer, **opts
223      attach_function :zdigest_size, [:pointer], :size_t, **opts
224      attach_function :zdigest_string, [:pointer], :pointer, **opts
225      attach_function :zdigest_test, [:bool], :void, **opts
226
227      require_relative 'ffi/zdigest'
228
229      attach_function :zdir_new, [:string, :string], :pointer, **opts
230      attach_function :zdir_destroy, [:pointer], :void, **opts
231      attach_function :zdir_path, [:pointer], :string, **opts
232      attach_function :zdir_modified, [:pointer], :pointer, **opts
233      attach_function :zdir_cursize, [:pointer], :pointer, **opts
234      attach_function :zdir_count, [:pointer], :size_t, **opts
235      attach_function :zdir_list, [:pointer], :pointer, **opts
236      attach_function :zdir_remove, [:pointer, :bool], :void, **opts
237      attach_function :zdir_diff, [:pointer, :pointer, :string], :pointer, **opts
238      attach_function :zdir_resync, [:pointer, :string], :pointer, **opts
239      attach_function :zdir_cache, [:pointer], :pointer, **opts
240      attach_function :zdir_fprint, [:pointer, :pointer, :int], :void, **opts
241      attach_function :zdir_print, [:pointer, :int], :void, **opts
242      attach_function :zdir_watch, [:pointer, :pointer], :void, **opts
243      attach_function :zdir_test, [:bool], :void, **opts
244
245      require_relative 'ffi/zdir'
246
247      attach_function :zdir_patch_new, [:string, :pointer, :int, :string], :pointer, **opts
248      attach_function :zdir_patch_destroy, [:pointer], :void, **opts
249      attach_function :zdir_patch_dup, [:pointer], :pointer, **opts
250      attach_function :zdir_patch_path, [:pointer], :string, **opts
251      attach_function :zdir_patch_file, [:pointer], :pointer, **opts
252      attach_function :zdir_patch_op, [:pointer], :int, **opts
253      attach_function :zdir_patch_vpath, [:pointer], :string, **opts
254      attach_function :zdir_patch_digest_set, [:pointer], :void, **opts
255      attach_function :zdir_patch_digest, [:pointer], :string, **opts
256      attach_function :zdir_patch_test, [:bool], :void, **opts
257
258      require_relative 'ffi/zdir_patch'
259
260      attach_function :zfile_new, [:string, :string], :pointer, **opts
261      attach_function :zfile_tmp, [], :pointer, **opts
262      attach_function :zfile_destroy, [:pointer], :void, **opts
263      attach_function :zfile_dup, [:pointer], :pointer, **opts
264      attach_function :zfile_filename, [:pointer, :string], :string, **opts
265      attach_function :zfile_restat, [:pointer], :void, **opts
266      attach_function :zfile_modified, [:pointer], :pointer, **opts
267      attach_function :zfile_cursize, [:pointer], :pointer, **opts
268      attach_function :zfile_is_directory, [:pointer], :bool, **opts
269      attach_function :zfile_is_regular, [:pointer], :bool, **opts
270      attach_function :zfile_is_readable, [:pointer], :bool, **opts
271      attach_function :zfile_is_writeable, [:pointer], :bool, **opts
272      attach_function :zfile_is_stable, [:pointer], :bool, **opts
273      attach_function :zfile_has_changed, [:pointer], :bool, **opts
274      attach_function :zfile_remove, [:pointer], :void, **opts
275      attach_function :zfile_input, [:pointer], :int, **opts
276      attach_function :zfile_output, [:pointer], :int, **opts
277      attach_function :zfile_read, [:pointer, :size_t, :pointer], :pointer, **opts
278      attach_function :zfile_eof, [:pointer], :bool, **opts
279      attach_function :zfile_write, [:pointer, :pointer, :pointer], :int, **opts
280      attach_function :zfile_readln, [:pointer], :string, **opts
281      attach_function :zfile_close, [:pointer], :void, **opts
282      attach_function :zfile_handle, [:pointer], :pointer, **opts
283      attach_function :zfile_digest, [:pointer], :string, **opts
284      attach_function :zfile_test, [:bool], :void, **opts
285
286      require_relative 'ffi/zfile'
287
288      attach_function :zframe_new, [:pointer, :size_t], :pointer, **opts
289      attach_function :zframe_new_empty, [], :pointer, **opts
290      attach_function :zframe_from, [:string], :pointer, **opts
291      attach_function :zframe_frommem, [:pointer, :size_t, :pointer, :pointer], :pointer, **opts
292      attach_function :zframe_recv, [:pointer], :pointer, **opts
293      attach_function :zframe_destroy, [:pointer], :void, **opts
294      attach_function :zframe_send, [:pointer, :pointer, :int], :int, **opts
295      attach_function :zframe_size, [:pointer], :size_t, **opts
296      attach_function :zframe_data, [:pointer], :pointer, **opts
297      attach_function :zframe_meta, [:pointer, :string], :string, **opts
298      attach_function :zframe_dup, [:pointer], :pointer, **opts
299      attach_function :zframe_strhex, [:pointer], :pointer, **opts
300      attach_function :zframe_strdup, [:pointer], :pointer, **opts
301      attach_function :zframe_streq, [:pointer, :string], :bool, **opts
302      attach_function :zframe_more, [:pointer], :int, **opts
303      attach_function :zframe_set_more, [:pointer, :int], :void, **opts
304      attach_function :zframe_routing_id, [:pointer], :uint32, **opts
305      attach_function :zframe_set_routing_id, [:pointer, :uint32], :void, **opts
306      attach_function :zframe_group, [:pointer], :string, **opts
307      attach_function :zframe_set_group, [:pointer, :string], :int, **opts
308      attach_function :zframe_eq, [:pointer, :pointer], :bool, **opts
309      attach_function :zframe_reset, [:pointer, :pointer, :size_t], :void, **opts
310      attach_function :zframe_print, [:pointer, :string], :void, **opts
311      attach_function :zframe_print_n, [:pointer, :string, :size_t], :void, **opts
312      attach_function :zframe_is, [:pointer], :bool, **opts
313      attach_function :zframe_test, [:bool], :void, **opts
314
315      require_relative 'ffi/zframe'
316
317      attach_function :zhash_new, [], :pointer, **opts
318      attach_function :zhash_unpack, [:pointer], :pointer, **opts
319      attach_function :zhash_destroy, [:pointer], :void, **opts
320      attach_function :zhash_insert, [:pointer, :string, :pointer], :int, **opts
321      attach_function :zhash_update, [:pointer, :string, :pointer], :void, **opts
322      attach_function :zhash_delete, [:pointer, :string], :void, **opts
323      attach_function :zhash_lookup, [:pointer, :string], :pointer, **opts
324      attach_function :zhash_rename, [:pointer, :string, :string], :int, **opts
325      attach_function :zhash_freefn, [:pointer, :string, :pointer], :pointer, **opts
326      attach_function :zhash_size, [:pointer], :size_t, **opts
327      attach_function :zhash_dup, [:pointer], :pointer, **opts
328      attach_function :zhash_keys, [:pointer], :pointer, **opts
329      attach_function :zhash_first, [:pointer], :pointer, **opts
330      attach_function :zhash_next, [:pointer], :pointer, **opts
331      attach_function :zhash_cursor, [:pointer], :string, **opts
332      attach_function :zhash_comment, [:pointer, :string, :varargs], :void, **opts
333      attach_function :zhash_pack, [:pointer], :pointer, **opts
334      attach_function :zhash_save, [:pointer, :string], :int, **opts
335      attach_function :zhash_load, [:pointer, :string], :int, **opts
336      attach_function :zhash_refresh, [:pointer], :int, **opts
337      attach_function :zhash_autofree, [:pointer], :void, **opts
338      attach_function :zhash_test, [:bool], :void, **opts
339
340      require_relative 'ffi/zhash'
341
342      attach_function :zhashx_new, [], :pointer, **opts
343      attach_function :zhashx_unpack, [:pointer], :pointer, **opts
344      attach_function :zhashx_unpack_own, [:pointer, :pointer], :pointer, **opts
345      attach_function :zhashx_destroy, [:pointer], :void, **opts
346      attach_function :zhashx_insert, [:pointer, :pointer, :pointer], :int, **opts
347      attach_function :zhashx_update, [:pointer, :pointer, :pointer], :void, **opts
348      attach_function :zhashx_delete, [:pointer, :pointer], :void, **opts
349      attach_function :zhashx_purge, [:pointer], :void, **opts
350      attach_function :zhashx_lookup, [:pointer, :pointer], :pointer, **opts
351      attach_function :zhashx_rename, [:pointer, :pointer, :pointer], :int, **opts
352      attach_function :zhashx_freefn, [:pointer, :pointer, :pointer], :pointer, **opts
353      attach_function :zhashx_size, [:pointer], :size_t, **opts
354      attach_function :zhashx_keys, [:pointer], :pointer, **opts
355      attach_function :zhashx_values, [:pointer], :pointer, **opts
356      attach_function :zhashx_first, [:pointer], :pointer, **opts
357      attach_function :zhashx_next, [:pointer], :pointer, **opts
358      attach_function :zhashx_cursor, [:pointer], :pointer, **opts
359      attach_function :zhashx_comment, [:pointer, :string, :varargs], :void, **opts
360      attach_function :zhashx_save, [:pointer, :string], :int, **opts
361      attach_function :zhashx_load, [:pointer, :string], :int, **opts
362      attach_function :zhashx_refresh, [:pointer], :int, **opts
363      attach_function :zhashx_pack, [:pointer], :pointer, **opts
364      attach_function :zhashx_pack_own, [:pointer, :pointer], :pointer, **opts
365      attach_function :zhashx_dup, [:pointer], :pointer, **opts
366      attach_function :zhashx_set_destructor, [:pointer, :pointer], :void, **opts
367      attach_function :zhashx_set_duplicator, [:pointer, :pointer], :void, **opts
368      attach_function :zhashx_set_key_destructor, [:pointer, :pointer], :void, **opts
369      attach_function :zhashx_set_key_duplicator, [:pointer, :pointer], :void, **opts
370      attach_function :zhashx_set_key_comparator, [:pointer, :pointer], :void, **opts
371      attach_function :zhashx_set_key_hasher, [:pointer, :pointer], :void, **opts
372      attach_function :zhashx_dup_v2, [:pointer], :pointer, **opts
373      attach_function :zhashx_test, [:bool], :void, **opts
374
375      require_relative 'ffi/zhashx'
376
377      attach_function :ziflist_new, [], :pointer, **opts
378      attach_function :ziflist_destroy, [:pointer], :void, **opts
379      attach_function :ziflist_reload, [:pointer], :void, **opts
380      attach_function :ziflist_size, [:pointer], :size_t, **opts
381      attach_function :ziflist_first, [:pointer], :string, **opts
382      attach_function :ziflist_next, [:pointer], :string, **opts
383      attach_function :ziflist_address, [:pointer], :string, **opts
384      attach_function :ziflist_broadcast, [:pointer], :string, **opts
385      attach_function :ziflist_netmask, [:pointer], :string, **opts
386      attach_function :ziflist_print, [:pointer], :void, **opts
387      attach_function :ziflist_new_ipv6, [], :pointer, **opts
388      attach_function :ziflist_reload_ipv6, [:pointer], :void, **opts
389      attach_function :ziflist_is_ipv6, [:pointer], :bool, **opts
390      attach_function :ziflist_test, [:bool], :void, **opts
391
392      require_relative 'ffi/ziflist'
393
394      attach_function :zlist_new, [], :pointer, **opts
395      attach_function :zlist_destroy, [:pointer], :void, **opts
396      attach_function :zlist_first, [:pointer], :pointer, **opts
397      attach_function :zlist_next, [:pointer], :pointer, **opts
398      attach_function :zlist_last, [:pointer], :pointer, **opts
399      attach_function :zlist_head, [:pointer], :pointer, **opts
400      attach_function :zlist_tail, [:pointer], :pointer, **opts
401      attach_function :zlist_item, [:pointer], :pointer, **opts
402      attach_function :zlist_append, [:pointer, :pointer], :int, **opts
403      attach_function :zlist_push, [:pointer, :pointer], :int, **opts
404      attach_function :zlist_pop, [:pointer], :pointer, **opts
405      attach_function :zlist_exists, [:pointer, :pointer], :bool, **opts
406      attach_function :zlist_remove, [:pointer, :pointer], :void, **opts
407      attach_function :zlist_dup, [:pointer], :pointer, **opts
408      attach_function :zlist_purge, [:pointer], :void, **opts
409      attach_function :zlist_size, [:pointer], :size_t, **opts
410      attach_function :zlist_sort, [:pointer, :pointer], :void, **opts
411      attach_function :zlist_autofree, [:pointer], :void, **opts
412      attach_function :zlist_comparefn, [:pointer, :pointer], :void, **opts
413      attach_function :zlist_freefn, [:pointer, :pointer, :pointer, :bool], :pointer, **opts
414      attach_function :zlist_test, [:bool], :void, **opts
415
416      require_relative 'ffi/zlist'
417
418      attach_function :zlistx_new, [], :pointer, **opts
419      attach_function :zlistx_unpack, [:pointer], :pointer, **opts
420      attach_function :zlistx_destroy, [:pointer], :void, **opts
421      attach_function :zlistx_add_start, [:pointer, :pointer], :pointer, **opts
422      attach_function :zlistx_add_end, [:pointer, :pointer], :pointer, **opts
423      attach_function :zlistx_size, [:pointer], :size_t, **opts
424      attach_function :zlistx_head, [:pointer], :pointer, **opts
425      attach_function :zlistx_tail, [:pointer], :pointer, **opts
426      attach_function :zlistx_first, [:pointer], :pointer, **opts
427      attach_function :zlistx_next, [:pointer], :pointer, **opts
428      attach_function :zlistx_prev, [:pointer], :pointer, **opts
429      attach_function :zlistx_last, [:pointer], :pointer, **opts
430      attach_function :zlistx_item, [:pointer], :pointer, **opts
431      attach_function :zlistx_cursor, [:pointer], :pointer, **opts
432      attach_function :zlistx_handle_item, [:pointer], :pointer, **opts
433      attach_function :zlistx_find, [:pointer, :pointer], :pointer, **opts
434      attach_function :zlistx_detach, [:pointer, :pointer], :pointer, **opts
435      attach_function :zlistx_detach_cur, [:pointer], :pointer, **opts
436      attach_function :zlistx_delete, [:pointer, :pointer], :int, **opts
437      attach_function :zlistx_move_start, [:pointer, :pointer], :void, **opts
438      attach_function :zlistx_move_end, [:pointer, :pointer], :void, **opts
439      attach_function :zlistx_purge, [:pointer], :void, **opts
440      attach_function :zlistx_sort, [:pointer], :void, **opts
441      attach_function :zlistx_insert, [:pointer, :pointer, :bool], :pointer, **opts
442      attach_function :zlistx_reorder, [:pointer, :pointer, :bool], :void, **opts
443      attach_function :zlistx_dup, [:pointer], :pointer, **opts
444      attach_function :zlistx_set_destructor, [:pointer, :pointer], :void, **opts
445      attach_function :zlistx_set_duplicator, [:pointer, :pointer], :void, **opts
446      attach_function :zlistx_set_comparator, [:pointer, :pointer], :void, **opts
447      attach_function :zlistx_pack, [:pointer], :pointer, **opts
448      attach_function :zlistx_test, [:bool], :void, **opts
449
450      require_relative 'ffi/zlistx'
451
452      attach_function :zloop_new, [], :pointer, **opts
453      attach_function :zloop_destroy, [:pointer], :void, **opts
454      attach_function :zloop_reader, [:pointer, :pointer, :pointer, :pointer], :int, **opts
455      attach_function :zloop_reader_end, [:pointer, :pointer], :void, **opts
456      attach_function :zloop_reader_set_tolerant, [:pointer, :pointer], :void, **opts
457      attach_function :zloop_poller, [:pointer, :pointer, :pointer, :pointer], :int, **opts
458      attach_function :zloop_poller_end, [:pointer, :pointer], :void, **opts
459      attach_function :zloop_poller_set_tolerant, [:pointer, :pointer], :void, **opts
460      attach_function :zloop_timer, [:pointer, :size_t, :size_t, :pointer, :pointer], :int, **opts
461      attach_function :zloop_timer_end, [:pointer, :int], :int, **opts
462      attach_function :zloop_ticket, [:pointer, :pointer, :pointer], :pointer, **opts
463      attach_function :zloop_ticket_reset, [:pointer, :pointer], :void, **opts
464      attach_function :zloop_ticket_delete, [:pointer, :pointer], :void, **opts
465      attach_function :zloop_set_ticket_delay, [:pointer, :size_t], :void, **opts
466      attach_function :zloop_set_max_timers, [:pointer, :size_t], :void, **opts
467      attach_function :zloop_set_verbose, [:pointer, :bool], :void, **opts
468      attach_function :zloop_set_nonstop, [:pointer, :bool], :void, **opts
469      attach_function :zloop_start, [:pointer], :int, **opts
470      attach_function :zloop_test, [:bool], :void, **opts
471
472      require_relative 'ffi/zloop'
473
474      attach_function :zmsg_new, [], :pointer, **opts
475      attach_function :zmsg_recv, [:pointer], :pointer, **opts
476      attach_function :zmsg_load, [:pointer], :pointer, **opts
477      attach_function :zmsg_decode, [:pointer], :pointer, **opts
478      attach_function :zmsg_new_signal, [:char], :pointer, **opts
479      attach_function :zmsg_destroy, [:pointer], :void, **opts
480      attach_function :zmsg_send, [:pointer, :pointer], :int, **opts
481      attach_function :zmsg_sendm, [:pointer, :pointer], :int, **opts
482      attach_function :zmsg_size, [:pointer], :size_t, **opts
483      attach_function :zmsg_content_size, [:pointer], :size_t, **opts
484      attach_function :zmsg_routing_id, [:pointer], :uint32, **opts
485      attach_function :zmsg_set_routing_id, [:pointer, :uint32], :void, **opts
486      attach_function :zmsg_prepend, [:pointer, :pointer], :int, **opts
487      attach_function :zmsg_append, [:pointer, :pointer], :int, **opts
488      attach_function :zmsg_pop, [:pointer], :pointer, **opts
489      attach_function :zmsg_pushmem, [:pointer, :pointer, :size_t], :int, **opts
490      attach_function :zmsg_addmem, [:pointer, :pointer, :size_t], :int, **opts
491      attach_function :zmsg_pushstr, [:pointer, :string], :int, **opts
492      attach_function :zmsg_addstr, [:pointer, :string], :int, **opts
493      attach_function :zmsg_pushstrf, [:pointer, :string, :varargs], :int, **opts
494      attach_function :zmsg_addstrf, [:pointer, :string, :varargs], :int, **opts
495      attach_function :zmsg_popstr, [:pointer], :pointer, **opts
496      attach_function :zmsg_addmsg, [:pointer, :pointer], :int, **opts
497      attach_function :zmsg_popmsg, [:pointer], :pointer, **opts
498      attach_function :zmsg_remove, [:pointer, :pointer], :void, **opts
499      attach_function :zmsg_first, [:pointer], :pointer, **opts
500      attach_function :zmsg_next, [:pointer], :pointer, **opts
501      attach_function :zmsg_last, [:pointer], :pointer, **opts
502      attach_function :zmsg_save, [:pointer, :pointer], :int, **opts
503      attach_function :zmsg_encode, [:pointer], :pointer, **opts
504      attach_function :zmsg_dup, [:pointer], :pointer, **opts
505      attach_function :zmsg_print, [:pointer], :void, **opts
506      attach_function :zmsg_print_n, [:pointer, :size_t], :void, **opts
507      attach_function :zmsg_eq, [:pointer, :pointer], :bool, **opts
508      attach_function :zmsg_signal, [:pointer], :int, **opts
509      attach_function :zmsg_is, [:pointer], :bool, **opts
510      attach_function :zmsg_test, [:bool], :void, **opts
511
512      require_relative 'ffi/zmsg'
513
514      attach_function :zpoller_new, [:pointer, :varargs], :pointer, **opts
515      attach_function :zpoller_destroy, [:pointer], :void, **opts
516      attach_function :zpoller_add, [:pointer, :pointer], :int, **opts
517      attach_function :zpoller_remove, [:pointer, :pointer], :int, **opts
518      attach_function :zpoller_set_nonstop, [:pointer, :bool], :void, **opts
519      attach_function :zpoller_wait, [:pointer, :int], :pointer, **opts
520      attach_function :zpoller_expired, [:pointer], :bool, **opts
521      attach_function :zpoller_terminated, [:pointer], :bool, **opts
522      attach_function :zpoller_test, [:bool], :void, **opts
523
524      require_relative 'ffi/zpoller'
525
526      attach_function :zproc_new, [], :pointer, **opts
527      attach_function :zproc_destroy, [:pointer], :void, **opts
528      attach_function :zproc_args, [:pointer], :pointer, **opts
529      attach_function :zproc_set_args, [:pointer, :pointer], :void, **opts
530      attach_function :zproc_set_argsx, [:pointer, :string, :varargs], :void, **opts
531      attach_function :zproc_set_env, [:pointer, :pointer], :void, **opts
532      attach_function :zproc_set_stdin, [:pointer, :pointer], :void, **opts
533      attach_function :zproc_set_stdout, [:pointer, :pointer], :void, **opts
534      attach_function :zproc_set_stderr, [:pointer, :pointer], :void, **opts
535      attach_function :zproc_stdin, [:pointer], :pointer, **opts
536      attach_function :zproc_stdout, [:pointer], :pointer, **opts
537      attach_function :zproc_stderr, [:pointer], :pointer, **opts
538      attach_function :zproc_run, [:pointer], :int, **opts
539      attach_function :zproc_returncode, [:pointer], :int, **opts
540      attach_function :zproc_pid, [:pointer], :int, **opts
541      attach_function :zproc_running, [:pointer], :bool, **opts
542      attach_function :zproc_wait, [:pointer, :int], :int, **opts
543      attach_function :zproc_shutdown, [:pointer, :int], :void, **opts
544      attach_function :zproc_actor, [:pointer], :pointer, **opts
545      attach_function :zproc_kill, [:pointer, :int], :void, **opts
546      attach_function :zproc_set_verbose, [:pointer, :bool], :void, **opts
547      attach_function :zproc_test, [:bool], :void, **opts
548
549      require_relative 'ffi/zproc'
550
551      attach_function :zsock_new, [:int], :pointer, **opts
552      attach_function :zsock_new_pub, [:string], :pointer, **opts
553      attach_function :zsock_new_sub, [:string, :string], :pointer, **opts
554      attach_function :zsock_new_req, [:string], :pointer, **opts
555      attach_function :zsock_new_rep, [:string], :pointer, **opts
556      attach_function :zsock_new_dealer, [:string], :pointer, **opts
557      attach_function :zsock_new_router, [:string], :pointer, **opts
558      attach_function :zsock_new_push, [:string], :pointer, **opts
559      attach_function :zsock_new_pull, [:string], :pointer, **opts
560      attach_function :zsock_new_xpub, [:string], :pointer, **opts
561      attach_function :zsock_new_xsub, [:string], :pointer, **opts
562      attach_function :zsock_new_pair, [:string], :pointer, **opts
563      attach_function :zsock_new_stream, [:string], :pointer, **opts
564      attach_function :zsock_new_server, [:string], :pointer, **opts
565      attach_function :zsock_new_client, [:string], :pointer, **opts
566      attach_function :zsock_new_radio, [:string], :pointer, **opts
567      attach_function :zsock_new_dish, [:string], :pointer, **opts
568      attach_function :zsock_new_gather, [:string], :pointer, **opts
569      attach_function :zsock_new_scatter, [:string], :pointer, **opts
570      attach_function :zsock_new_dgram, [:string], :pointer, **opts
571      attach_function :zsock_destroy, [:pointer], :void, **opts
572      attach_function :zsock_bind, [:pointer, :string, :varargs], :int, **opts
573      attach_function :zsock_endpoint, [:pointer], :string, **opts
574      attach_function :zsock_unbind, [:pointer, :string, :varargs], :int, **opts
575      attach_function :zsock_connect, [:pointer, :string, :varargs], :int, **opts
576      attach_function :zsock_disconnect, [:pointer, :string, :varargs], :int, **opts
577      attach_function :zsock_attach, [:pointer, :string, :bool], :int, **opts
578      attach_function :zsock_type_str, [:pointer], :string, **opts
579      attach_function :zsock_send, [:pointer, :string, :varargs], :int, **opts
580      attach_function :zsock_vsend, [:pointer, :string, :pointer], :int, **opts
581      attach_function :zsock_recv, [:pointer, :string, :varargs], :int, **opts
582      attach_function :zsock_vrecv, [:pointer, :string, :pointer], :int, **opts
583      attach_function :zsock_bsend, [:pointer, :string, :varargs], :int, **opts
584      attach_function :zsock_brecv, [:pointer, :string, :varargs], :int, **opts
585      attach_function :zsock_routing_id, [:pointer], :uint32, **opts
586      attach_function :zsock_set_routing_id, [:pointer, :uint32], :void, **opts
587      attach_function :zsock_set_unbounded, [:pointer], :void, **opts
588      attach_function :zsock_signal, [:pointer, :char], :int, **opts
589      attach_function :zsock_wait, [:pointer], :int, **opts
590      attach_function :zsock_flush, [:pointer], :void, **opts
591      attach_function :zsock_join, [:pointer, :string], :int, **opts
592      attach_function :zsock_leave, [:pointer, :string], :int, **opts
593      attach_function :zsock_is, [:pointer], :bool, **opts
594      attach_function :zsock_resolve, [:pointer], :pointer, **opts
595      attach_function :zsock_has_in, [:pointer], :bool, **opts
596      attach_function :zsock_priority, [:pointer], :int, **opts
597      attach_function :zsock_set_priority, [:pointer, :int], :void, **opts
598      attach_function :zsock_reconnect_stop, [:pointer], :int, **opts
599      attach_function :zsock_set_reconnect_stop, [:pointer, :int], :void, **opts
600      attach_function :zsock_set_only_first_subscribe, [:pointer, :int], :void, **opts
601      attach_function :zsock_set_hello_msg, [:pointer, :pointer], :void, **opts
602      attach_function :zsock_set_disconnect_msg, [:pointer, :pointer], :void, **opts
603      attach_function :zsock_set_wss_trust_system, [:pointer, :int], :void, **opts
604      attach_function :zsock_set_wss_hostname, [:pointer, :string], :void, **opts
605      attach_function :zsock_set_wss_trust_pem, [:pointer, :string], :void, **opts
606      attach_function :zsock_set_wss_cert_pem, [:pointer, :string], :void, **opts
607      attach_function :zsock_set_wss_key_pem, [:pointer, :string], :void, **opts
608      attach_function :zsock_out_batch_size, [:pointer], :int, **opts
609      attach_function :zsock_set_out_batch_size, [:pointer, :int], :void, **opts
610      attach_function :zsock_in_batch_size, [:pointer], :int, **opts
611      attach_function :zsock_set_in_batch_size, [:pointer, :int], :void, **opts
612      attach_function :zsock_socks_password, [:pointer], :pointer, **opts
613      attach_function :zsock_set_socks_password, [:pointer, :string], :void, **opts
614      attach_function :zsock_socks_username, [:pointer], :pointer, **opts
615      attach_function :zsock_set_socks_username, [:pointer, :string], :void, **opts
616      attach_function :zsock_set_xpub_manual_last_value, [:pointer, :int], :void, **opts
617      attach_function :zsock_router_notify, [:pointer], :int, **opts
618      attach_function :zsock_set_router_notify, [:pointer, :int], :void, **opts
619      attach_function :zsock_multicast_loop, [:pointer], :int, **opts
620      attach_function :zsock_set_multicast_loop, [:pointer, :int], :void, **opts
621      attach_function :zsock_metadata, [:pointer], :pointer, **opts
622      attach_function :zsock_set_metadata, [:pointer, :string], :void, **opts
623      attach_function :zsock_loopback_fastpath, [:pointer], :int, **opts
624      attach_function :zsock_set_loopback_fastpath, [:pointer, :int], :void, **opts
625      attach_function :zsock_zap_enforce_domain, [:pointer], :int, **opts
626      attach_function :zsock_set_zap_enforce_domain, [:pointer, :int], :void, **opts
627      attach_function :zsock_gssapi_principal_nametype, [:pointer], :int, **opts
628      attach_function :zsock_set_gssapi_principal_nametype, [:pointer, :int], :void, **opts
629      attach_function :zsock_gssapi_service_principal_nametype, [:pointer], :int, **opts
630      attach_function :zsock_set_gssapi_service_principal_nametype, [:pointer, :int], :void, **opts
631      attach_function :zsock_bindtodevice, [:pointer], :pointer, **opts
632      attach_function :zsock_set_bindtodevice, [:pointer, :string], :void, **opts
633      attach_function :zsock_heartbeat_ivl, [:pointer], :int, **opts
634      attach_function :zsock_set_heartbeat_ivl, [:pointer, :int], :void, **opts
635      attach_function :zsock_heartbeat_ttl, [:pointer], :int, **opts
636      attach_function :zsock_set_heartbeat_ttl, [:pointer, :int], :void, **opts
637      attach_function :zsock_heartbeat_timeout, [:pointer], :int, **opts
638      attach_function :zsock_set_heartbeat_timeout, [:pointer, :int], :void, **opts
639      attach_function :zsock_use_fd, [:pointer], :int, **opts
640      attach_function :zsock_set_use_fd, [:pointer, :int], :void, **opts
641      attach_function :zsock_set_xpub_manual, [:pointer, :int], :void, **opts
642      attach_function :zsock_set_xpub_welcome_msg, [:pointer, :string], :void, **opts
643      attach_function :zsock_set_stream_notify, [:pointer, :int], :void, **opts
644      attach_function :zsock_invert_matching, [:pointer], :int, **opts
645      attach_function :zsock_set_invert_matching, [:pointer, :int], :void, **opts
646      attach_function :zsock_set_xpub_verboser, [:pointer, :int], :void, **opts
647      attach_function :zsock_connect_timeout, [:pointer], :int, **opts
648      attach_function :zsock_set_connect_timeout, [:pointer, :int], :void, **opts
649      attach_function :zsock_tcp_maxrt, [:pointer], :int, **opts
650      attach_function :zsock_set_tcp_maxrt, [:pointer, :int], :void, **opts
651      attach_function :zsock_thread_safe, [:pointer], :int, **opts
652      attach_function :zsock_multicast_maxtpdu, [:pointer], :int, **opts
653      attach_function :zsock_set_multicast_maxtpdu, [:pointer, :int], :void, **opts
654      attach_function :zsock_vmci_buffer_size, [:pointer], :int, **opts
655      attach_function :zsock_set_vmci_buffer_size, [:pointer, :int], :void, **opts
656      attach_function :zsock_vmci_buffer_min_size, [:pointer], :int, **opts
657      attach_function :zsock_set_vmci_buffer_min_size, [:pointer, :int], :void, **opts
658      attach_function :zsock_vmci_buffer_max_size, [:pointer], :int, **opts
659      attach_function :zsock_set_vmci_buffer_max_size, [:pointer, :int], :void, **opts
660      attach_function :zsock_vmci_connect_timeout, [:pointer], :int, **opts
661      attach_function :zsock_set_vmci_connect_timeout, [:pointer, :int], :void, **opts
662      attach_function :zsock_tos, [:pointer], :int, **opts
663      attach_function :zsock_set_tos, [:pointer, :int], :void, **opts
664      attach_function :zsock_set_router_handover, [:pointer, :int], :void, **opts
665      attach_function :zsock_set_connect_rid, [:pointer, :string], :void, **opts
666      attach_function :zsock_set_connect_rid_bin, [:pointer, :pointer], :void, **opts
667      attach_function :zsock_handshake_ivl, [:pointer], :int, **opts
668      attach_function :zsock_set_handshake_ivl, [:pointer, :int], :void, **opts
669      attach_function :zsock_socks_proxy, [:pointer], :pointer, **opts
670      attach_function :zsock_set_socks_proxy, [:pointer, :string], :void, **opts
671      attach_function :zsock_set_xpub_nodrop, [:pointer, :int], :void, **opts
672      attach_function :zsock_set_router_mandatory, [:pointer, :int], :void, **opts
673      attach_function :zsock_set_probe_router, [:pointer, :int], :void, **opts
674      attach_function :zsock_set_req_relaxed, [:pointer, :int], :void, **opts
675      attach_function :zsock_set_req_correlate, [:pointer, :int], :void, **opts
676      attach_function :zsock_set_conflate, [:pointer, :int], :void, **opts
677      attach_function :zsock_zap_domain, [:pointer], :pointer, **opts
678      attach_function :zsock_set_zap_domain, [:pointer, :string], :void, **opts
679      attach_function :zsock_mechanism, [:pointer], :int, **opts
680      attach_function :zsock_plain_server, [:pointer], :int, **opts
681      attach_function :zsock_set_plain_server, [:pointer, :int], :void, **opts
682      attach_function :zsock_plain_username, [:pointer], :pointer, **opts
683      attach_function :zsock_set_plain_username, [:pointer, :string], :void, **opts
684      attach_function :zsock_plain_password, [:pointer], :pointer, **opts
685      attach_function :zsock_set_plain_password, [:pointer, :string], :void, **opts
686      attach_function :zsock_curve_server, [:pointer], :int, **opts
687      attach_function :zsock_set_curve_server, [:pointer, :int], :void, **opts
688      attach_function :zsock_curve_publickey, [:pointer], :pointer, **opts
689      attach_function :zsock_set_curve_publickey, [:pointer, :string], :void, **opts
690      attach_function :zsock_set_curve_publickey_bin, [:pointer, :pointer], :void, **opts
691      attach_function :zsock_curve_secretkey, [:pointer], :pointer, **opts
692      attach_function :zsock_set_curve_secretkey, [:pointer, :string], :void, **opts
693      attach_function :zsock_set_curve_secretkey_bin, [:pointer, :pointer], :void, **opts
694      attach_function :zsock_curve_serverkey, [:pointer], :pointer, **opts
695      attach_function :zsock_set_curve_serverkey, [:pointer, :string], :void, **opts
696      attach_function :zsock_set_curve_serverkey_bin, [:pointer, :pointer], :void, **opts
697      attach_function :zsock_gssapi_server, [:pointer], :int, **opts
698      attach_function :zsock_set_gssapi_server, [:pointer, :int], :void, **opts
699      attach_function :zsock_gssapi_plaintext, [:pointer], :int, **opts
700      attach_function :zsock_set_gssapi_plaintext, [:pointer, :int], :void, **opts
701      attach_function :zsock_gssapi_principal, [:pointer], :pointer, **opts
702      attach_function :zsock_set_gssapi_principal, [:pointer, :string], :void, **opts
703      attach_function :zsock_gssapi_service_principal, [:pointer], :pointer, **opts
704      attach_function :zsock_set_gssapi_service_principal, [:pointer, :string], :void, **opts
705      attach_function :zsock_ipv6, [:pointer], :int, **opts
706      attach_function :zsock_set_ipv6, [:pointer, :int], :void, **opts
707      attach_function :zsock_immediate, [:pointer], :int, **opts
708      attach_function :zsock_set_immediate, [:pointer, :int], :void, **opts
709      attach_function :zsock_sndhwm, [:pointer], :int, **opts
710      attach_function :zsock_set_sndhwm, [:pointer, :int], :void, **opts
711      attach_function :zsock_rcvhwm, [:pointer], :int, **opts
712      attach_function :zsock_set_rcvhwm, [:pointer, :int], :void, **opts
713      attach_function :zsock_maxmsgsize, [:pointer], :int, **opts
714      attach_function :zsock_set_maxmsgsize, [:pointer, :int], :void, **opts
715      attach_function :zsock_multicast_hops, [:pointer], :int, **opts
716      attach_function :zsock_set_multicast_hops, [:pointer, :int], :void, **opts
717      attach_function :zsock_set_xpub_verbose, [:pointer, :int], :void, **opts
718      attach_function :zsock_tcp_keepalive, [:pointer], :int, **opts
719      attach_function :zsock_set_tcp_keepalive, [:pointer, :int], :void, **opts
720      attach_function :zsock_tcp_keepalive_idle, [:pointer], :int, **opts
721      attach_function :zsock_set_tcp_keepalive_idle, [:pointer, :int], :void, **opts
722      attach_function :zsock_tcp_keepalive_cnt, [:pointer], :int, **opts
723      attach_function :zsock_set_tcp_keepalive_cnt, [:pointer, :int], :void, **opts
724      attach_function :zsock_tcp_keepalive_intvl, [:pointer], :int, **opts
725      attach_function :zsock_set_tcp_keepalive_intvl, [:pointer, :int], :void, **opts
726      attach_function :zsock_tcp_accept_filter, [:pointer], :pointer, **opts
727      attach_function :zsock_set_tcp_accept_filter, [:pointer, :string], :void, **opts
728      attach_function :zsock_last_endpoint, [:pointer], :pointer, **opts
729      attach_function :zsock_set_router_raw, [:pointer, :int], :void, **opts
730      attach_function :zsock_ipv4only, [:pointer], :int, **opts
731      attach_function :zsock_set_ipv4only, [:pointer, :int], :void, **opts
732      attach_function :zsock_set_delay_attach_on_connect, [:pointer, :int], :void, **opts
733      attach_function :zsock_hwm, [:pointer], :int, **opts
734      attach_function :zsock_set_hwm, [:pointer, :int], :void, **opts
735      attach_function :zsock_swap, [:pointer], :int, **opts
736      attach_function :zsock_set_swap, [:pointer, :int], :void, **opts
737      attach_function :zsock_affinity, [:pointer], :int, **opts
738      attach_function :zsock_set_affinity, [:pointer, :int], :void, **opts
739      attach_function :zsock_identity, [:pointer], :pointer, **opts
740      attach_function :zsock_set_identity, [:pointer, :string], :void, **opts
741      attach_function :zsock_rate, [:pointer], :int, **opts
742      attach_function :zsock_set_rate, [:pointer, :int], :void, **opts
743      attach_function :zsock_recovery_ivl, [:pointer], :int, **opts
744      attach_function :zsock_set_recovery_ivl, [:pointer, :int], :void, **opts
745      attach_function :zsock_recovery_ivl_msec, [:pointer], :int, **opts
746      attach_function :zsock_set_recovery_ivl_msec, [:pointer, :int], :void, **opts
747      attach_function :zsock_mcast_loop, [:pointer], :int, **opts
748      attach_function :zsock_set_mcast_loop, [:pointer, :int], :void, **opts
749      attach_function :zsock_rcvtimeo, [:pointer], :int, **opts
750      attach_function :zsock_set_rcvtimeo, [:pointer, :int], :void, **opts
751      attach_function :zsock_sndtimeo, [:pointer], :int, **opts
752      attach_function :zsock_set_sndtimeo, [:pointer, :int], :void, **opts
753      attach_function :zsock_sndbuf, [:pointer], :int, **opts
754      attach_function :zsock_set_sndbuf, [:pointer, :int], :void, **opts
755      attach_function :zsock_rcvbuf, [:pointer], :int, **opts
756      attach_function :zsock_set_rcvbuf, [:pointer, :int], :void, **opts
757      attach_function :zsock_linger, [:pointer], :int, **opts
758      attach_function :zsock_set_linger, [:pointer, :int], :void, **opts
759      attach_function :zsock_reconnect_ivl, [:pointer], :int, **opts
760      attach_function :zsock_set_reconnect_ivl, [:pointer, :int], :void, **opts
761      attach_function :zsock_reconnect_ivl_max, [:pointer], :int, **opts
762      attach_function :zsock_set_reconnect_ivl_max, [:pointer, :int], :void, **opts
763      attach_function :zsock_backlog, [:pointer], :int, **opts
764      attach_function :zsock_set_backlog, [:pointer, :int], :void, **opts
765      attach_function :zsock_set_subscribe, [:pointer, :string], :void, **opts
766      attach_function :zsock_set_unsubscribe, [:pointer, :string], :void, **opts
767      attach_function :zsock_type, [:pointer], :int, **opts
768      attach_function :zsock_rcvmore, [:pointer], :int, **opts
769      attach_function :zsock_fd, [:pointer], (::FFI::Platform.unix? ? :int : :uint64), **opts
770      attach_function :zsock_events, [:pointer], :int, **opts
771      attach_function :zsock_test, [:bool], :void, **opts
772
773      require_relative 'ffi/zsock'
774
775      attach_function :zstr_recv, [:pointer], :pointer, **opts
776      attach_function :zstr_recvx, [:pointer, :pointer, :varargs], :int, **opts
777      attach_function :zstr_recv_compress, [:pointer], :pointer, **opts
778      attach_function :zstr_send, [:pointer, :string], :int, **opts
779      attach_function :zstr_sendm, [:pointer, :string], :int, **opts
780      attach_function :zstr_sendf, [:pointer, :string, :varargs], :int, **opts
781      attach_function :zstr_sendfm, [:pointer, :string, :varargs], :int, **opts
782      attach_function :zstr_sendx, [:pointer, :string, :varargs], :int, **opts
783      attach_function :zstr_send_compress, [:pointer, :string], :int, **opts
784      attach_function :zstr_sendm_compress, [:pointer, :string], :int, **opts
785      attach_function :zstr_str, [:pointer], :pointer, **opts
786      attach_function :zstr_free, [:pointer], :void, **opts
787      attach_function :zstr_test, [:bool], :void, **opts
788
789      require_relative 'ffi/zstr'
790
791      attach_function :zsys_init, [], :pointer, **opts
792      attach_function :zsys_shutdown, [], :void, **opts
793      attach_function :zsys_socket, [:int, :string, :size_t], :pointer, **opts
794      attach_function :zsys_close, [:pointer, :string, :size_t], :int, **opts
795      attach_function :zsys_sockname, [:int], :pointer, **opts
796      attach_function :zsys_create_pipe, [:pointer], :pointer, **opts
797      attach_function :zsys_handler_set, [:pointer], :void, **opts
798      attach_function :zsys_handler_reset, [], :void, **opts
799      attach_function :zsys_catch_interrupts, [], :void, **opts
800      attach_function :zsys_is_interrupted, [], :bool, **opts
801      attach_function :zsys_set_interrupted, [], :void, **opts
802      attach_function :zsys_file_exists, [:string], :bool, **opts
803      attach_function :zsys_file_modified, [:string], :pointer, **opts
804      attach_function :zsys_file_mode, [:string], :int, **opts
805      attach_function :zsys_file_delete, [:string], :int, **opts
806      attach_function :zsys_file_stable, [:string], :bool, **opts
807      attach_function :zsys_dir_create, [:string, :varargs], :int, **opts
808      attach_function :zsys_dir_delete, [:string, :varargs], :int, **opts
809      attach_function :zsys_dir_change, [:string], :int, **opts
810      attach_function :zsys_file_mode_private, [], :void, **opts
811      attach_function :zsys_file_mode_default, [], :void, **opts
812      attach_function :zsys_version, [:pointer, :pointer, :pointer], :void, **opts
813      attach_function :zsys_sprintf_hint, [:int, :string, :varargs], :pointer, **opts
814      attach_function :zsys_sprintf, [:string, :varargs], :pointer, **opts
815      attach_function :zsys_vprintf, [:string, :pointer], :pointer, **opts
816      attach_function :zsys_udp_new, [:bool], (::FFI::Platform.unix? ? :int : :uint64), **opts
817      attach_function :zsys_udp_close, [(::FFI::Platform.unix? ? :int : :uint64)], :int, **opts
818      attach_function :zsys_udp_send, [(::FFI::Platform.unix? ? :int : :uint64), :pointer, :pointer, :int], :int, **opts
819      attach_function :zsys_udp_recv, [(::FFI::Platform.unix? ? :int : :uint64), :pointer, :int], :pointer, **opts
820      attach_function :zsys_socket_error, [:string], :void, **opts
821      attach_function :zsys_hostname, [], :pointer, **opts
822      attach_function :zsys_daemonize, [:string], :int, **opts
823      attach_function :zsys_run_as, [:string, :string, :string], :int, **opts
824      attach_function :zsys_has_curve, [], :bool, **opts
825      attach_function :zsys_set_io_threads, [:size_t], :void, **opts
826      attach_function :zsys_set_thread_sched_policy, [:int], :void, **opts
827      attach_function :zsys_set_thread_priority, [:int], :void, **opts
828      attach_function :zsys_set_thread_name_prefix, [:int], :void, **opts
829      attach_function :zsys_thread_name_prefix, [], :int, **opts
830      attach_function :zsys_set_thread_name_prefix_str, [:string], :void, **opts
831      attach_function :zsys_thread_name_prefix_str, [], :string, **opts
832      attach_function :zsys_thread_affinity_cpu_add, [:int], :void, **opts
833      attach_function :zsys_thread_affinity_cpu_remove, [:int], :void, **opts
834      attach_function :zsys_set_max_sockets, [:size_t], :void, **opts
835      attach_function :zsys_socket_limit, [], :size_t, **opts
836      attach_function :zsys_set_max_msgsz, [:int], :void, **opts
837      attach_function :zsys_max_msgsz, [], :int, **opts
838      attach_function :zsys_set_zero_copy_recv, [:int], :void, **opts
839      attach_function :zsys_zero_copy_recv, [], :int, **opts
840      attach_function :zsys_set_file_stable_age_msec, [:pointer], :void, **opts
841      attach_function :zsys_file_stable_age_msec, [], :pointer, **opts
842      attach_function :zsys_set_linger, [:size_t], :void, **opts
843      attach_function :zsys_set_sndhwm, [:size_t], :void, **opts
844      attach_function :zsys_set_rcvhwm, [:size_t], :void, **opts
845      attach_function :zsys_set_pipehwm, [:size_t], :void, **opts
846      attach_function :zsys_pipehwm, [], :size_t, **opts
847      attach_function :zsys_set_ipv6, [:int], :void, **opts
848      attach_function :zsys_ipv6, [], :int, **opts
849      attach_function :zsys_ipv6_available, [], :bool, **opts
850      attach_function :zsys_set_interface, [:string], :void, **opts
851      attach_function :zsys_interface, [], :string, **opts
852      attach_function :zsys_set_ipv6_address, [:string], :void, **opts
853      attach_function :zsys_ipv6_address, [], :string, **opts
854      attach_function :zsys_set_ipv6_mcast_address, [:string], :void, **opts
855      attach_function :zsys_ipv6_mcast_address, [], :string, **opts
856      attach_function :zsys_set_ipv4_mcast_address, [:string], :void, **opts
857      attach_function :zsys_ipv4_mcast_address, [], :string, **opts
858      attach_function :zsys_set_mcast_ttl, [:char], :void, **opts
859      attach_function :zsys_mcast_ttl, [], :char, **opts
860      attach_function :zsys_set_auto_use_fd, [:int], :void, **opts
861      attach_function :zsys_auto_use_fd, [], :int, **opts
862      attach_function :zsys_zprintf, [:string, :pointer], :pointer, **opts
863      attach_function :zsys_zprintf_error, [:string, :pointer], :pointer, **opts
864      attach_function :zsys_zplprintf, [:string, :pointer], :pointer, **opts
865      attach_function :zsys_zplprintf_error, [:string, :pointer], :pointer, **opts
866      attach_function :zsys_set_logident, [:string], :void, **opts
867      attach_function :zsys_set_logstream, [:pointer], :void, **opts
868      attach_function :zsys_set_logsender, [:string], :void, **opts
869      attach_function :zsys_set_logsystem, [:bool], :void, **opts
870      attach_function :zsys_error, [:string, :varargs], :void, **opts
871      attach_function :zsys_warning, [:string, :varargs], :void, **opts
872      attach_function :zsys_notice, [:string, :varargs], :void, **opts
873      attach_function :zsys_info, [:string, :varargs], :void, **opts
874      attach_function :zsys_debug, [:string, :varargs], :void, **opts
875      attach_function :zsys_test, [:bool], :void, **opts
876
877      require_relative 'ffi/zsys'
878
879      attach_function :ztimerset_new, [], :pointer, **opts
880      attach_function :ztimerset_destroy, [:pointer], :void, **opts
881      attach_function :ztimerset_add, [:pointer, :size_t, :pointer, :pointer], :int, **opts
882      attach_function :ztimerset_cancel, [:pointer, :int], :int, **opts
883      attach_function :ztimerset_set_interval, [:pointer, :int, :size_t], :int, **opts
884      attach_function :ztimerset_reset, [:pointer, :int], :int, **opts
885      attach_function :ztimerset_timeout, [:pointer], :int, **opts
886      attach_function :ztimerset_execute, [:pointer], :int, **opts
887      attach_function :ztimerset_test, [:bool], :void, **opts
888
889      require_relative 'ffi/ztimerset'
890
891      attach_function :ztrie_new, [:pointer], :pointer, **opts
892      attach_function :ztrie_destroy, [:pointer], :void, **opts
893      attach_function :ztrie_insert_route, [:pointer, :string, :pointer, :pointer], :int, **opts
894      attach_function :ztrie_remove_route, [:pointer, :string], :int, **opts
895      attach_function :ztrie_matches, [:pointer, :string], :bool, **opts
896      attach_function :ztrie_hit_data, [:pointer], :pointer, **opts
897      attach_function :ztrie_hit_parameter_count, [:pointer], :size_t, **opts
898      attach_function :ztrie_hit_parameters, [:pointer], :pointer, **opts
899      attach_function :ztrie_hit_asterisk_match, [:pointer], :string, **opts
900      attach_function :ztrie_print, [:pointer], :void, **opts
901      attach_function :ztrie_test, [:bool], :void, **opts
902
903      require_relative 'ffi/ztrie'
904
905      attach_function :zuuid_new, [], :pointer, **opts
906      attach_function :zuuid_new_from, [:pointer], :pointer, **opts
907      attach_function :zuuid_destroy, [:pointer], :void, **opts
908      attach_function :zuuid_set, [:pointer, :pointer], :void, **opts
909      attach_function :zuuid_set_str, [:pointer, :string], :int, **opts
910      attach_function :zuuid_data, [:pointer], :pointer, **opts
911      attach_function :zuuid_size, [:pointer], :size_t, **opts
912      attach_function :zuuid_str, [:pointer], :string, **opts
913      attach_function :zuuid_str_canonical, [:pointer], :string, **opts
914      attach_function :zuuid_export, [:pointer, :pointer], :void, **opts
915      attach_function :zuuid_eq, [:pointer, :pointer], :bool, **opts
916      attach_function :zuuid_neq, [:pointer, :pointer], :bool, **opts
917      attach_function :zuuid_dup, [:pointer], :pointer, **opts
918      attach_function :zuuid_test, [:bool], :void, **opts
919
920      require_relative 'ffi/zuuid'
921
922      attach_function :zhttp_client_new, [:bool], :pointer, **opts
923      attach_function :zhttp_client_destroy, [:pointer], :void, **opts
924      attach_function :zhttp_client_test, [:bool], :void, **opts
925
926      require_relative 'ffi/zhttp_client'
927
928      attach_function :zhttp_server_new, [:pointer], :pointer, **opts
929      attach_function :zhttp_server_destroy, [:pointer], :void, **opts
930      attach_function :zhttp_server_port, [:pointer], :int, **opts
931      attach_function :zhttp_server_test, [:bool], :void, **opts
932
933      require_relative 'ffi/zhttp_server'
934
935      attach_function :zhttp_server_options_new, [], :pointer, **opts
936      attach_function :zhttp_server_options_from_config, [:pointer], :pointer, **opts
937      attach_function :zhttp_server_options_destroy, [:pointer], :void, **opts
938      attach_function :zhttp_server_options_port, [:pointer], :int, **opts
939      attach_function :zhttp_server_options_set_port, [:pointer, :int], :void, **opts
940      attach_function :zhttp_server_options_backend_address, [:pointer], :string, **opts
941      attach_function :zhttp_server_options_set_backend_address, [:pointer, :string], :void, **opts
942      attach_function :zhttp_server_options_test, [:bool], :void, **opts
943
944      require_relative 'ffi/zhttp_server_options'
945
946      attach_function :zhttp_request_new, [], :pointer, **opts
947      attach_function :zhttp_request_destroy, [:pointer], :void, **opts
948      attach_function :zhttp_request_recv, [:pointer, :pointer], :pointer, **opts
949      attach_function :zhttp_request_send, [:pointer, :pointer, :int, :pointer, :pointer], :int, **opts
950      attach_function :zhttp_request_method, [:pointer], :string, **opts
951      attach_function :zhttp_request_set_method, [:pointer, :string], :void, **opts
952      attach_function :zhttp_request_url, [:pointer], :string, **opts
953      attach_function :zhttp_request_set_url, [:pointer, :string], :void, **opts
954      attach_function :zhttp_request_content_type, [:pointer], :string, **opts
955      attach_function :zhttp_request_set_content_type, [:pointer, :string], :void, **opts
956      attach_function :zhttp_request_content_length, [:pointer], :size_t, **opts
957      attach_function :zhttp_request_headers, [:pointer], :pointer, **opts
958      attach_function :zhttp_request_content, [:pointer], :string, **opts
959      attach_function :zhttp_request_get_content, [:pointer], :pointer, **opts
960      attach_function :zhttp_request_set_content, [:pointer, :pointer], :void, **opts
961      attach_function :zhttp_request_set_content_const, [:pointer, :string], :void, **opts
962      attach_function :zhttp_request_reset_content, [:pointer], :void, **opts
963      attach_function :zhttp_request_match, [:pointer, :string, :string, :varargs], :bool, **opts
964      attach_function :zhttp_request_test, [:bool], :void, **opts
965
966      require_relative 'ffi/zhttp_request'
967
968      attach_function :zhttp_response_new, [], :pointer, **opts
969      attach_function :zhttp_response_destroy, [:pointer], :void, **opts
970      attach_function :zhttp_response_send, [:pointer, :pointer, :pointer], :int, **opts
971      attach_function :zhttp_response_recv, [:pointer, :pointer, :pointer, :pointer], :int, **opts
972      attach_function :zhttp_response_content_type, [:pointer], :string, **opts
973      attach_function :zhttp_response_set_content_type, [:pointer, :string], :void, **opts
974      attach_function :zhttp_response_status_code, [:pointer], :uint32, **opts
975      attach_function :zhttp_response_set_status_code, [:pointer, :uint32], :void, **opts
976      attach_function :zhttp_response_headers, [:pointer], :pointer, **opts
977      attach_function :zhttp_response_content_length, [:pointer], :size_t, **opts
978      attach_function :zhttp_response_content, [:pointer], :string, **opts
979      attach_function :zhttp_response_get_content, [:pointer], :pointer, **opts
980      attach_function :zhttp_response_set_content, [:pointer, :pointer], :void, **opts
981      attach_function :zhttp_response_set_content_const, [:pointer, :string], :void, **opts
982      attach_function :zhttp_response_reset_content, [:pointer], :void, **opts
983      attach_function :zhttp_response_test, [:bool], :void, **opts
984
985      require_relative 'ffi/zhttp_response'
986
987      attach_function :zosc_new, [:string], :pointer, **opts
988      attach_function :zosc_fromframe, [:pointer], :pointer, **opts
989      attach_function :zosc_frommem, [:pointer, :size_t], :pointer, **opts
990      attach_function :zosc_create, [:string, :string, :varargs], :pointer, **opts
991      attach_function :zosc_destroy, [:pointer], :void, **opts
992      attach_function :zosc_size, [:pointer], :size_t, **opts
993      attach_function :zosc_data, [:pointer], :pointer, **opts
994      attach_function :zosc_address, [:pointer], :string, **opts
995      attach_function :zosc_format, [:pointer], :string, **opts
996      attach_function :zosc_append, [:pointer, :string, :varargs], :int, **opts
997      attach_function :zosc_retr, [:pointer, :string, :varargs], :int, **opts
998      attach_function :zosc_dup, [:pointer], :pointer, **opts
999      attach_function :zosc_pack, [:pointer], :pointer, **opts
1000      attach_function :zosc_packx, [:pointer], :pointer, **opts
1001      attach_function :zosc_unpack, [:pointer], :pointer, **opts
1002      attach_function :zosc_print, [:pointer], :void, **opts
1003      attach_function :zosc_is, [:pointer], :bool, **opts
1004      attach_function :zosc_first, [:pointer, :pointer], :pointer, **opts
1005      attach_function :zosc_next, [:pointer, :pointer], :pointer, **opts
1006      attach_function :zosc_last, [:pointer, :pointer], :pointer, **opts
1007      attach_function :zosc_pop_int32, [:pointer, :pointer], :int, **opts
1008      attach_function :zosc_pop_int64, [:pointer, :pointer], :int, **opts
1009      attach_function :zosc_pop_float, [:pointer, :pointer], :int, **opts
1010      attach_function :zosc_pop_double, [:pointer, :pointer], :int, **opts
1011      attach_function :zosc_pop_string, [:pointer, :pointer], :int, **opts
1012      attach_function :zosc_pop_char, [:pointer, :pointer], :int, **opts
1013      attach_function :zosc_pop_bool, [:pointer, :pointer], :int, **opts
1014      attach_function :zosc_pop_midi, [:pointer, :pointer], :int, **opts
1015      attach_function :zosc_test, [:bool], :void, **opts
1016
1017      require_relative 'ffi/zosc'
1018    end
1019  end
1020end
1021
1022################################################################################
1023#  THIS FILE IS 100% GENERATED BY ZPROJECT; DO NOT EDIT EXCEPT EXPERIMENTALLY  #
1024#  Read the zproject/README.md for information about making permanent changes. #
1025################################################################################
1026