czmq-ffi-gen 0.1.0

Sign up to get free protection for your applications and to get access to all the features.
@@ -0,0 +1,7 @@
1
+ ---
2
+ SHA1:
3
+ metadata.gz: 55c3b94ea8b765c6c5b0adfd94871605ca9c5c9d
4
+ data.tar.gz: f2f9382d703edf71e021b0284d53665365bac1e7
5
+ SHA512:
6
+ metadata.gz: e7532af2abb52747c21ae55937fe21cca3db967b887c4d300d9cdf5e87bf260d485ea41c2ffac8c03dd98760e62d70b9c15c886fc6d285eadb4c45a979666401
7
+ data.tar.gz: c2f8df1ffbd7c6ed4edda6116e1f03597f98a71411a3f069e8bec57b3970e30dc4064f172bd77626c61931dbb38de0169b1c0cc46e42b4c9433e1beb17f00253
@@ -0,0 +1,4 @@
1
+ require_relative "czmq-ffi-gen/czmq/ffi"
2
+ require_relative "czmq-ffi-gen/gem_version"
3
+ require_relative "czmq-ffi-gen/library_version"
4
+ CZMQ::FFI.available? or raise LoadError, "libczmq is not available"
@@ -0,0 +1,558 @@
1
+ ################################################################################
2
+ # THIS FILE IS 100% GENERATED BY ZPROJECT; DO NOT EDIT EXCEPT EXPERIMENTALLY #
3
+ # Please refer to the README 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
+ enum :zarmour_mode, [
53
+ :mode_base64_std, 0,
54
+ :mode_base64_url, 1,
55
+ :mode_base32_std, 2,
56
+ :mode_base32_hex, 3,
57
+ :mode_base16, 4,
58
+ :mode_z85, 5,
59
+ ]
60
+
61
+ attach_function :zarmour_new, [], :pointer, **opts
62
+ attach_function :zarmour_destroy, [:pointer], :void, **opts
63
+ attach_function :zarmour_mode_str, [:pointer], :string, **opts
64
+ attach_function :zarmour_encode, [:pointer, :pointer, :size_t], :pointer, **opts
65
+ attach_function :zarmour_decode, [:pointer, :string, :pointer], :pointer, **opts
66
+ attach_function :zarmour_mode, [:pointer], :zarmour_mode, **opts
67
+ attach_function :zarmour_set_mode, [:pointer, :zarmour_mode], :void, **opts
68
+ attach_function :zarmour_pad, [:pointer], :bool, **opts
69
+ attach_function :zarmour_set_pad, [:pointer, :bool], :void, **opts
70
+ attach_function :zarmour_pad_char, [:pointer], :pointer, **opts
71
+ attach_function :zarmour_set_pad_char, [:pointer, :pointer], :void, **opts
72
+ attach_function :zarmour_line_breaks, [:pointer], :bool, **opts
73
+ attach_function :zarmour_set_line_breaks, [:pointer, :bool], :void, **opts
74
+ attach_function :zarmour_line_length, [:pointer], :size_t, **opts
75
+ attach_function :zarmour_set_line_length, [:pointer, :size_t], :void, **opts
76
+ attach_function :zarmour_print, [:pointer], :void, **opts
77
+ attach_function :zarmour_test, [:bool], :void, **opts
78
+
79
+ require_relative 'ffi/zarmour'
80
+
81
+ attach_function :zconfig_new, [:string, :pointer], :pointer, **opts
82
+ attach_function :zconfig_load, [:string], :pointer, **opts
83
+ attach_function :zconfig_loadf, [:string, :varargs], :pointer, **opts
84
+ attach_function :zconfig_destroy, [:pointer], :void, **opts
85
+ attach_function :zconfig_name, [:pointer], :pointer, **opts
86
+ attach_function :zconfig_value, [:pointer], :pointer, **opts
87
+ attach_function :zconfig_put, [:pointer, :string, :string], :void, **opts
88
+ attach_function :zconfig_putf, [:pointer, :string, :string, :varargs], :void, **opts
89
+ attach_function :zconfig_get, [:pointer, :string, :string], :pointer, **opts
90
+ attach_function :zconfig_set_name, [:pointer, :string], :void, **opts
91
+ attach_function :zconfig_set_value, [:pointer, :string, :varargs], :void, **opts
92
+ attach_function :zconfig_child, [:pointer], :pointer, **opts
93
+ attach_function :zconfig_next, [:pointer], :pointer, **opts
94
+ attach_function :zconfig_locate, [:pointer, :string], :pointer, **opts
95
+ attach_function :zconfig_at_depth, [:pointer, :int], :pointer, **opts
96
+ attach_function :zconfig_execute, [:pointer, :pointer, :pointer], :int, **opts
97
+ attach_function :zconfig_set_comment, [:pointer, :string, :varargs], :void, **opts
98
+ attach_function :zconfig_comments, [:pointer], :pointer, **opts
99
+ attach_function :zconfig_save, [:pointer, :string], :int, **opts
100
+ attach_function :zconfig_savef, [:pointer, :string, :varargs], :int, **opts
101
+ attach_function :zconfig_filename, [:pointer], :string, **opts
102
+ attach_function :zconfig_reload, [:pointer], :int, **opts
103
+ attach_function :zconfig_chunk_load, [:pointer], :pointer, **opts
104
+ attach_function :zconfig_chunk_save, [:pointer], :pointer, **opts
105
+ attach_function :zconfig_str_load, [:string], :pointer, **opts
106
+ attach_function :zconfig_str_save, [:pointer], :pointer, **opts
107
+ attach_function :zconfig_has_changed, [:pointer], :bool, **opts
108
+ attach_function :zconfig_fprint, [:pointer, :pointer], :void, **opts
109
+ attach_function :zconfig_print, [:pointer], :void, **opts
110
+ attach_function :zconfig_test, [:bool], :void, **opts
111
+
112
+ require_relative 'ffi/zconfig'
113
+
114
+ attach_function :zdir_new, [:string, :string], :pointer, **opts
115
+ attach_function :zdir_destroy, [:pointer], :void, **opts
116
+ attach_function :zdir_path, [:pointer], :string, **opts
117
+ attach_function :zdir_modified, [:pointer], :pointer, **opts
118
+ attach_function :zdir_cursize, [:pointer], :pointer, **opts
119
+ attach_function :zdir_count, [:pointer], :size_t, **opts
120
+ attach_function :zdir_list, [:pointer], :pointer, **opts
121
+ attach_function :zdir_remove, [:pointer, :bool], :void, **opts
122
+ attach_function :zdir_diff, [:pointer, :pointer, :string], :pointer, **opts
123
+ attach_function :zdir_resync, [:pointer, :string], :pointer, **opts
124
+ attach_function :zdir_cache, [:pointer], :pointer, **opts
125
+ attach_function :zdir_fprint, [:pointer, :pointer, :int], :void, **opts
126
+ attach_function :zdir_print, [:pointer, :int], :void, **opts
127
+ attach_function :zdir_watch, [:pointer, :pointer], :void, **opts
128
+ attach_function :zdir_test, [:bool], :void, **opts
129
+
130
+ require_relative 'ffi/zdir'
131
+
132
+ enum :zdir_patch_op, [
133
+ :create, 1,
134
+ :delete, 2,
135
+ ]
136
+
137
+ attach_function :zdir_patch_new, [:string, :pointer, :zdir_patch_op, :string], :pointer, **opts
138
+ attach_function :zdir_patch_destroy, [:pointer], :void, **opts
139
+ attach_function :zdir_patch_dup, [:pointer], :pointer, **opts
140
+ attach_function :zdir_patch_path, [:pointer], :string, **opts
141
+ attach_function :zdir_patch_file, [:pointer], :pointer, **opts
142
+ attach_function :zdir_patch_op, [:pointer], :zdir_patch_op, **opts
143
+ attach_function :zdir_patch_vpath, [:pointer], :string, **opts
144
+ attach_function :zdir_patch_digest_set, [:pointer], :void, **opts
145
+ attach_function :zdir_patch_digest, [:pointer], :string, **opts
146
+ attach_function :zdir_patch_test, [:bool], :void, **opts
147
+
148
+ require_relative 'ffi/zdir_patch'
149
+
150
+ attach_function :zfile_new, [:string, :string], :pointer, **opts
151
+ attach_function :zfile_destroy, [:pointer], :void, **opts
152
+ attach_function :zfile_dup, [:pointer], :pointer, **opts
153
+ attach_function :zfile_filename, [:pointer, :string], :string, **opts
154
+ attach_function :zfile_restat, [:pointer], :void, **opts
155
+ attach_function :zfile_modified, [:pointer], :pointer, **opts
156
+ attach_function :zfile_cursize, [:pointer], :pointer, **opts
157
+ attach_function :zfile_is_directory, [:pointer], :bool, **opts
158
+ attach_function :zfile_is_regular, [:pointer], :bool, **opts
159
+ attach_function :zfile_is_readable, [:pointer], :bool, **opts
160
+ attach_function :zfile_is_writeable, [:pointer], :bool, **opts
161
+ attach_function :zfile_is_stable, [:pointer], :bool, **opts
162
+ attach_function :zfile_has_changed, [:pointer], :bool, **opts
163
+ attach_function :zfile_remove, [:pointer], :void, **opts
164
+ attach_function :zfile_input, [:pointer], :int, **opts
165
+ attach_function :zfile_output, [:pointer], :int, **opts
166
+ attach_function :zfile_read, [:pointer, :size_t, :pointer], :pointer, **opts
167
+ attach_function :zfile_eof, [:pointer], :bool, **opts
168
+ attach_function :zfile_write, [:pointer, :pointer, :pointer], :int, **opts
169
+ attach_function :zfile_readln, [:pointer], :string, **opts
170
+ attach_function :zfile_close, [:pointer], :void, **opts
171
+ attach_function :zfile_handle, [:pointer], :pointer, **opts
172
+ attach_function :zfile_digest, [:pointer], :string, **opts
173
+ attach_function :zfile_test, [:bool], :void, **opts
174
+
175
+ require_relative 'ffi/zfile'
176
+
177
+ attach_function :zframe_new, [:pointer, :size_t], :pointer, **opts
178
+ attach_function :zframe_new_empty, [], :pointer, **opts
179
+ attach_function :zframe_from, [:string], :pointer, **opts
180
+ attach_function :zframe_recv, [:pointer], :pointer, **opts
181
+ attach_function :zframe_destroy, [:pointer], :void, **opts
182
+ attach_function :zframe_send, [:pointer, :pointer, :int], :int, **opts
183
+ attach_function :zframe_size, [:pointer], :size_t, **opts
184
+ attach_function :zframe_data, [:pointer], :pointer, **opts
185
+ attach_function :zframe_dup, [:pointer], :pointer, **opts
186
+ attach_function :zframe_strhex, [:pointer], :pointer, **opts
187
+ attach_function :zframe_strdup, [:pointer], :pointer, **opts
188
+ attach_function :zframe_streq, [:pointer, :string], :bool, **opts
189
+ attach_function :zframe_more, [:pointer], :int, **opts
190
+ attach_function :zframe_set_more, [:pointer, :int], :void, **opts
191
+ attach_function :zframe_routing_id, [:pointer], :uint32, **opts
192
+ attach_function :zframe_set_routing_id, [:pointer, :uint32], :void, **opts
193
+ attach_function :zframe_eq, [:pointer, :pointer], :bool, **opts
194
+ attach_function :zframe_reset, [:pointer, :pointer, :size_t], :void, **opts
195
+ attach_function :zframe_print, [:pointer, :string], :void, **opts
196
+ attach_function :zframe_is, [:pointer], :bool, **opts
197
+ attach_function :zframe_test, [:bool], :void, **opts
198
+
199
+ require_relative 'ffi/zframe'
200
+
201
+ attach_function :zhash_new, [], :pointer, **opts
202
+ attach_function :zhash_unpack, [:pointer], :pointer, **opts
203
+ attach_function :zhash_destroy, [:pointer], :void, **opts
204
+ attach_function :zhash_insert, [:pointer, :string, :pointer], :int, **opts
205
+ attach_function :zhash_update, [:pointer, :string, :pointer], :void, **opts
206
+ attach_function :zhash_delete, [:pointer, :string], :void, **opts
207
+ attach_function :zhash_lookup, [:pointer, :string], :pointer, **opts
208
+ attach_function :zhash_rename, [:pointer, :string, :string], :int, **opts
209
+ attach_function :zhash_freefn, [:pointer, :string, :pointer], :pointer, **opts
210
+ attach_function :zhash_size, [:pointer], :size_t, **opts
211
+ attach_function :zhash_dup, [:pointer], :pointer, **opts
212
+ attach_function :zhash_keys, [:pointer], :pointer, **opts
213
+ attach_function :zhash_first, [:pointer], :pointer, **opts
214
+ attach_function :zhash_next, [:pointer], :pointer, **opts
215
+ attach_function :zhash_cursor, [:pointer], :string, **opts
216
+ attach_function :zhash_comment, [:pointer, :string, :varargs], :void, **opts
217
+ attach_function :zhash_pack, [:pointer], :pointer, **opts
218
+ attach_function :zhash_save, [:pointer, :string], :int, **opts
219
+ attach_function :zhash_load, [:pointer, :string], :int, **opts
220
+ attach_function :zhash_refresh, [:pointer], :int, **opts
221
+ attach_function :zhash_autofree, [:pointer], :void, **opts
222
+ attach_function :zhash_foreach, [:pointer, :pointer, :pointer], :int, **opts
223
+ attach_function :zhash_test, [:bool], :void, **opts
224
+
225
+ require_relative 'ffi/zhash'
226
+
227
+ attach_function :zhashx_new, [], :pointer, **opts
228
+ attach_function :zhashx_unpack, [:pointer], :pointer, **opts
229
+ attach_function :zhashx_destroy, [:pointer], :void, **opts
230
+ attach_function :zhashx_insert, [:pointer, :pointer, :pointer], :int, **opts
231
+ attach_function :zhashx_update, [:pointer, :pointer, :pointer], :void, **opts
232
+ attach_function :zhashx_delete, [:pointer, :pointer], :void, **opts
233
+ attach_function :zhashx_purge, [:pointer], :void, **opts
234
+ attach_function :zhashx_lookup, [:pointer, :pointer], :pointer, **opts
235
+ attach_function :zhashx_rename, [:pointer, :pointer, :pointer], :int, **opts
236
+ attach_function :zhashx_freefn, [:pointer, :pointer, :pointer], :pointer, **opts
237
+ attach_function :zhashx_size, [:pointer], :size_t, **opts
238
+ attach_function :zhashx_keys, [:pointer], :pointer, **opts
239
+ attach_function :zhashx_values, [:pointer], :pointer, **opts
240
+ attach_function :zhashx_first, [:pointer], :pointer, **opts
241
+ attach_function :zhashx_next, [:pointer], :pointer, **opts
242
+ attach_function :zhashx_cursor, [:pointer], :pointer, **opts
243
+ attach_function :zhashx_comment, [:pointer, :string, :varargs], :void, **opts
244
+ attach_function :zhashx_save, [:pointer, :string], :int, **opts
245
+ attach_function :zhashx_load, [:pointer, :string], :int, **opts
246
+ attach_function :zhashx_refresh, [:pointer], :int, **opts
247
+ attach_function :zhashx_pack, [:pointer], :pointer, **opts
248
+ attach_function :zhashx_dup, [:pointer], :pointer, **opts
249
+ attach_function :zhashx_set_destructor, [:pointer, :pointer], :void, **opts
250
+ attach_function :zhashx_set_duplicator, [:pointer, :pointer], :void, **opts
251
+ attach_function :zhashx_set_key_destructor, [:pointer, :pointer], :void, **opts
252
+ attach_function :zhashx_set_key_duplicator, [:pointer, :pointer], :void, **opts
253
+ attach_function :zhashx_set_key_comparator, [:pointer, :pointer], :void, **opts
254
+ attach_function :zhashx_set_key_hasher, [:pointer, :pointer], :void, **opts
255
+ attach_function :zhashx_dup_v2, [:pointer], :pointer, **opts
256
+ attach_function :zhashx_autofree, [:pointer], :void, **opts
257
+ attach_function :zhashx_foreach, [:pointer, :pointer, :pointer], :int, **opts
258
+ attach_function :zhashx_test, [:bool], :void, **opts
259
+
260
+ require_relative 'ffi/zhashx'
261
+
262
+ attach_function :ziflist_new, [], :pointer, **opts
263
+ attach_function :ziflist_destroy, [:pointer], :void, **opts
264
+ attach_function :ziflist_reload, [:pointer], :void, **opts
265
+ attach_function :ziflist_size, [:pointer], :size_t, **opts
266
+ attach_function :ziflist_first, [:pointer], :string, **opts
267
+ attach_function :ziflist_next, [:pointer], :string, **opts
268
+ attach_function :ziflist_address, [:pointer], :string, **opts
269
+ attach_function :ziflist_broadcast, [:pointer], :string, **opts
270
+ attach_function :ziflist_netmask, [:pointer], :string, **opts
271
+ attach_function :ziflist_print, [:pointer], :void, **opts
272
+ attach_function :ziflist_test, [:bool], :void, **opts
273
+
274
+ require_relative 'ffi/ziflist'
275
+
276
+ attach_function :zlist_new, [], :pointer, **opts
277
+ attach_function :zlist_destroy, [:pointer], :void, **opts
278
+ attach_function :zlist_first, [:pointer], :pointer, **opts
279
+ attach_function :zlist_next, [:pointer], :pointer, **opts
280
+ attach_function :zlist_last, [:pointer], :pointer, **opts
281
+ attach_function :zlist_head, [:pointer], :pointer, **opts
282
+ attach_function :zlist_tail, [:pointer], :pointer, **opts
283
+ attach_function :zlist_item, [:pointer], :pointer, **opts
284
+ attach_function :zlist_append, [:pointer, :pointer], :int, **opts
285
+ attach_function :zlist_push, [:pointer, :pointer], :int, **opts
286
+ attach_function :zlist_pop, [:pointer], :pointer, **opts
287
+ attach_function :zlist_exists, [:pointer, :pointer], :bool, **opts
288
+ attach_function :zlist_remove, [:pointer, :pointer], :void, **opts
289
+ attach_function :zlist_dup, [:pointer], :pointer, **opts
290
+ attach_function :zlist_purge, [:pointer], :void, **opts
291
+ attach_function :zlist_size, [:pointer], :size_t, **opts
292
+ attach_function :zlist_sort, [:pointer, :pointer], :void, **opts
293
+ attach_function :zlist_autofree, [:pointer], :void, **opts
294
+ attach_function :zlist_comparefn, [:pointer, :pointer], :void, **opts
295
+ attach_function :zlist_freefn, [:pointer, :pointer, :pointer, :bool], :pointer, **opts
296
+ attach_function :zlist_test, [:bool], :void, **opts
297
+
298
+ require_relative 'ffi/zlist'
299
+
300
+ attach_function :zloop_new, [], :pointer, **opts
301
+ attach_function :zloop_destroy, [:pointer], :void, **opts
302
+ attach_function :zloop_reader, [:pointer, :pointer, :pointer, :pointer], :int, **opts
303
+ attach_function :zloop_reader_end, [:pointer, :pointer], :void, **opts
304
+ attach_function :zloop_reader_set_tolerant, [:pointer, :pointer], :void, **opts
305
+ attach_function :zloop_poller, [:pointer, :pointer, :pointer, :pointer], :int, **opts
306
+ attach_function :zloop_poller_end, [:pointer, :pointer], :void, **opts
307
+ attach_function :zloop_poller_set_tolerant, [:pointer, :pointer], :void, **opts
308
+ attach_function :zloop_timer, [:pointer, :size_t, :size_t, :pointer, :pointer], :int, **opts
309
+ attach_function :zloop_timer_end, [:pointer, :int], :int, **opts
310
+ attach_function :zloop_ticket, [:pointer, :pointer, :pointer], :pointer, **opts
311
+ attach_function :zloop_ticket_reset, [:pointer, :pointer], :void, **opts
312
+ attach_function :zloop_ticket_delete, [:pointer, :pointer], :void, **opts
313
+ attach_function :zloop_set_ticket_delay, [:pointer, :size_t], :void, **opts
314
+ attach_function :zloop_set_max_timers, [:pointer, :size_t], :void, **opts
315
+ attach_function :zloop_set_verbose, [:pointer, :bool], :void, **opts
316
+ attach_function :zloop_start, [:pointer], :int, **opts
317
+ attach_function :zloop_ignore_interrupts, [:pointer], :void, **opts
318
+ attach_function :zloop_test, [:bool], :void, **opts
319
+
320
+ require_relative 'ffi/zloop'
321
+
322
+ attach_function :zmsg_new, [], :pointer, **opts
323
+ attach_function :zmsg_recv, [:pointer], :pointer, **opts
324
+ attach_function :zmsg_load, [:pointer], :pointer, **opts
325
+ attach_function :zmsg_decode, [:pointer, :size_t], :pointer, **opts
326
+ attach_function :zmsg_new_signal, [:char], :pointer, **opts
327
+ attach_function :zmsg_destroy, [:pointer], :void, **opts
328
+ attach_function :zmsg_send, [:pointer, :pointer], :int, **opts
329
+ attach_function :zmsg_sendm, [:pointer, :pointer], :int, **opts
330
+ attach_function :zmsg_size, [:pointer], :size_t, **opts
331
+ attach_function :zmsg_content_size, [:pointer], :size_t, **opts
332
+ attach_function :zmsg_routing_id, [:pointer], :uint32, **opts
333
+ attach_function :zmsg_set_routing_id, [:pointer, :uint32], :void, **opts
334
+ attach_function :zmsg_prepend, [:pointer, :pointer], :int, **opts
335
+ attach_function :zmsg_append, [:pointer, :pointer], :int, **opts
336
+ attach_function :zmsg_pop, [:pointer], :pointer, **opts
337
+ attach_function :zmsg_pushmem, [:pointer, :pointer, :size_t], :int, **opts
338
+ attach_function :zmsg_addmem, [:pointer, :pointer, :size_t], :int, **opts
339
+ attach_function :zmsg_pushstr, [:pointer, :string], :int, **opts
340
+ attach_function :zmsg_addstr, [:pointer, :string], :int, **opts
341
+ attach_function :zmsg_pushstrf, [:pointer, :string, :varargs], :int, **opts
342
+ attach_function :zmsg_addstrf, [:pointer, :string, :varargs], :int, **opts
343
+ attach_function :zmsg_popstr, [:pointer], :pointer, **opts
344
+ attach_function :zmsg_addmsg, [:pointer, :pointer], :int, **opts
345
+ attach_function :zmsg_popmsg, [:pointer], :pointer, **opts
346
+ attach_function :zmsg_remove, [:pointer, :pointer], :void, **opts
347
+ attach_function :zmsg_first, [:pointer], :pointer, **opts
348
+ attach_function :zmsg_next, [:pointer], :pointer, **opts
349
+ attach_function :zmsg_last, [:pointer], :pointer, **opts
350
+ attach_function :zmsg_save, [:pointer, :pointer], :int, **opts
351
+ attach_function :zmsg_encode, [:pointer, :pointer], :size_t, **opts
352
+ attach_function :zmsg_dup, [:pointer], :pointer, **opts
353
+ attach_function :zmsg_print, [:pointer], :void, **opts
354
+ attach_function :zmsg_eq, [:pointer, :pointer], :bool, **opts
355
+ attach_function :zmsg_signal, [:pointer], :int, **opts
356
+ attach_function :zmsg_is, [:pointer], :bool, **opts
357
+ attach_function :zmsg_test, [:bool], :void, **opts
358
+
359
+ require_relative 'ffi/zmsg'
360
+
361
+ attach_function :zpoller_new, [:pointer, :varargs], :pointer, **opts
362
+ attach_function :zpoller_destroy, [:pointer], :void, **opts
363
+ attach_function :zpoller_add, [:pointer, :pointer], :int, **opts
364
+ attach_function :zpoller_remove, [:pointer, :pointer], :int, **opts
365
+ attach_function :zpoller_wait, [:pointer, :int], :pointer, **opts
366
+ attach_function :zpoller_expired, [:pointer], :bool, **opts
367
+ attach_function :zpoller_terminated, [:pointer], :bool, **opts
368
+ attach_function :zpoller_ignore_interrupts, [:pointer], :void, **opts
369
+ attach_function :zpoller_test, [:bool], :void, **opts
370
+
371
+ require_relative 'ffi/zpoller'
372
+
373
+ attach_function :zsock_new, [:int], :pointer, **opts
374
+ attach_function :zsock_new_pub, [:string], :pointer, **opts
375
+ attach_function :zsock_new_sub, [:string, :string], :pointer, **opts
376
+ attach_function :zsock_new_req, [:string], :pointer, **opts
377
+ attach_function :zsock_new_rep, [:string], :pointer, **opts
378
+ attach_function :zsock_new_dealer, [:string], :pointer, **opts
379
+ attach_function :zsock_new_router, [:string], :pointer, **opts
380
+ attach_function :zsock_new_push, [:string], :pointer, **opts
381
+ attach_function :zsock_new_pull, [:string], :pointer, **opts
382
+ attach_function :zsock_new_xpub, [:string], :pointer, **opts
383
+ attach_function :zsock_new_xsub, [:string], :pointer, **opts
384
+ attach_function :zsock_new_pair, [:string], :pointer, **opts
385
+ attach_function :zsock_new_stream, [:string], :pointer, **opts
386
+ attach_function :zsock_new_server, [:string], :pointer, **opts
387
+ attach_function :zsock_new_client, [:string], :pointer, **opts
388
+ attach_function :zsock_destroy, [:pointer], :void, **opts
389
+ attach_function :zsock_bind, [:pointer, :string, :varargs], :int, **opts
390
+ attach_function :zsock_endpoint, [:pointer], :string, **opts
391
+ attach_function :zsock_unbind, [:pointer, :string, :varargs], :int, **opts
392
+ attach_function :zsock_connect, [:pointer, :string, :varargs], :int, **opts
393
+ attach_function :zsock_disconnect, [:pointer, :string, :varargs], :int, **opts
394
+ attach_function :zsock_attach, [:pointer, :string, :bool], :int, **opts
395
+ attach_function :zsock_type_str, [:pointer], :string, **opts
396
+ attach_function :zsock_send, [:pointer, :string, :varargs], :int, **opts
397
+ attach_function :zsock_vsend, [:pointer, :string, :pointer], :int, **opts
398
+ attach_function :zsock_recv, [:pointer, :string, :varargs], :int, **opts
399
+ attach_function :zsock_vrecv, [:pointer, :string, :pointer], :int, **opts
400
+ attach_function :zsock_bsend, [:pointer, :string, :varargs], :int, **opts
401
+ attach_function :zsock_brecv, [:pointer, :string, :varargs], :int, **opts
402
+ attach_function :zsock_routing_id, [:pointer], :uint32, **opts
403
+ attach_function :zsock_set_routing_id, [:pointer, :uint32], :void, **opts
404
+ attach_function :zsock_set_unbounded, [:pointer], :void, **opts
405
+ attach_function :zsock_signal, [:pointer, :char], :int, **opts
406
+ attach_function :zsock_wait, [:pointer], :int, **opts
407
+ attach_function :zsock_flush, [:pointer], :void, **opts
408
+ attach_function :zsock_is, [:pointer], :bool, **opts
409
+ attach_function :zsock_resolve, [:pointer], :pointer, **opts
410
+ attach_function :zsock_tos, [:pointer], :int, **opts
411
+ attach_function :zsock_set_tos, [:pointer, :int], :void, **opts
412
+ attach_function :zsock_set_router_handover, [:pointer, :int], :void, **opts
413
+ attach_function :zsock_set_router_mandatory, [:pointer, :int], :void, **opts
414
+ attach_function :zsock_set_probe_router, [:pointer, :int], :void, **opts
415
+ attach_function :zsock_set_req_relaxed, [:pointer, :int], :void, **opts
416
+ attach_function :zsock_set_req_correlate, [:pointer, :int], :void, **opts
417
+ attach_function :zsock_set_conflate, [:pointer, :int], :void, **opts
418
+ attach_function :zsock_zap_domain, [:pointer], :pointer, **opts
419
+ attach_function :zsock_set_zap_domain, [:pointer, :string], :void, **opts
420
+ attach_function :zsock_mechanism, [:pointer], :int, **opts
421
+ attach_function :zsock_plain_server, [:pointer], :int, **opts
422
+ attach_function :zsock_set_plain_server, [:pointer, :int], :void, **opts
423
+ attach_function :zsock_plain_username, [:pointer], :pointer, **opts
424
+ attach_function :zsock_set_plain_username, [:pointer, :string], :void, **opts
425
+ attach_function :zsock_plain_password, [:pointer], :pointer, **opts
426
+ attach_function :zsock_set_plain_password, [:pointer, :string], :void, **opts
427
+ attach_function :zsock_curve_server, [:pointer], :int, **opts
428
+ attach_function :zsock_set_curve_server, [:pointer, :int], :void, **opts
429
+ attach_function :zsock_curve_publickey, [:pointer], :pointer, **opts
430
+ attach_function :zsock_set_curve_publickey, [:pointer, :string], :void, **opts
431
+ attach_function :zsock_set_curve_publickey_bin, [:pointer, :pointer], :void, **opts
432
+ attach_function :zsock_curve_secretkey, [:pointer], :pointer, **opts
433
+ attach_function :zsock_set_curve_secretkey, [:pointer, :string], :void, **opts
434
+ attach_function :zsock_set_curve_secretkey_bin, [:pointer, :pointer], :void, **opts
435
+ attach_function :zsock_curve_serverkey, [:pointer], :pointer, **opts
436
+ attach_function :zsock_set_curve_serverkey, [:pointer, :string], :void, **opts
437
+ attach_function :zsock_set_curve_serverkey_bin, [:pointer, :pointer], :void, **opts
438
+ attach_function :zsock_gssapi_server, [:pointer], :int, **opts
439
+ attach_function :zsock_set_gssapi_server, [:pointer, :int], :void, **opts
440
+ attach_function :zsock_gssapi_plaintext, [:pointer], :int, **opts
441
+ attach_function :zsock_set_gssapi_plaintext, [:pointer, :int], :void, **opts
442
+ attach_function :zsock_gssapi_principal, [:pointer], :pointer, **opts
443
+ attach_function :zsock_set_gssapi_principal, [:pointer, :string], :void, **opts
444
+ attach_function :zsock_gssapi_service_principal, [:pointer], :pointer, **opts
445
+ attach_function :zsock_set_gssapi_service_principal, [:pointer, :string], :void, **opts
446
+ attach_function :zsock_ipv6, [:pointer], :int, **opts
447
+ attach_function :zsock_set_ipv6, [:pointer, :int], :void, **opts
448
+ attach_function :zsock_immediate, [:pointer], :int, **opts
449
+ attach_function :zsock_set_immediate, [:pointer, :int], :void, **opts
450
+ attach_function :zsock_set_router_raw, [:pointer, :int], :void, **opts
451
+ attach_function :zsock_ipv4only, [:pointer], :int, **opts
452
+ attach_function :zsock_set_ipv4only, [:pointer, :int], :void, **opts
453
+ attach_function :zsock_set_delay_attach_on_connect, [:pointer, :int], :void, **opts
454
+ attach_function :zsock_type, [:pointer], :int, **opts
455
+ attach_function :zsock_sndhwm, [:pointer], :int, **opts
456
+ attach_function :zsock_set_sndhwm, [:pointer, :int], :void, **opts
457
+ attach_function :zsock_rcvhwm, [:pointer], :int, **opts
458
+ attach_function :zsock_set_rcvhwm, [:pointer, :int], :void, **opts
459
+ attach_function :zsock_affinity, [:pointer], :int, **opts
460
+ attach_function :zsock_set_affinity, [:pointer, :int], :void, **opts
461
+ attach_function :zsock_set_subscribe, [:pointer, :string], :void, **opts
462
+ attach_function :zsock_set_unsubscribe, [:pointer, :string], :void, **opts
463
+ attach_function :zsock_identity, [:pointer], :pointer, **opts
464
+ attach_function :zsock_set_identity, [:pointer, :string], :void, **opts
465
+ attach_function :zsock_rate, [:pointer], :int, **opts
466
+ attach_function :zsock_set_rate, [:pointer, :int], :void, **opts
467
+ attach_function :zsock_recovery_ivl, [:pointer], :int, **opts
468
+ attach_function :zsock_set_recovery_ivl, [:pointer, :int], :void, **opts
469
+ attach_function :zsock_sndbuf, [:pointer], :int, **opts
470
+ attach_function :zsock_set_sndbuf, [:pointer, :int], :void, **opts
471
+ attach_function :zsock_rcvbuf, [:pointer], :int, **opts
472
+ attach_function :zsock_set_rcvbuf, [:pointer, :int], :void, **opts
473
+ attach_function :zsock_linger, [:pointer], :int, **opts
474
+ attach_function :zsock_set_linger, [:pointer, :int], :void, **opts
475
+ attach_function :zsock_reconnect_ivl, [:pointer], :int, **opts
476
+ attach_function :zsock_set_reconnect_ivl, [:pointer, :int], :void, **opts
477
+ attach_function :zsock_reconnect_ivl_max, [:pointer], :int, **opts
478
+ attach_function :zsock_set_reconnect_ivl_max, [:pointer, :int], :void, **opts
479
+ attach_function :zsock_backlog, [:pointer], :int, **opts
480
+ attach_function :zsock_set_backlog, [:pointer, :int], :void, **opts
481
+ attach_function :zsock_maxmsgsize, [:pointer], :int, **opts
482
+ attach_function :zsock_set_maxmsgsize, [:pointer, :int], :void, **opts
483
+ attach_function :zsock_multicast_hops, [:pointer], :int, **opts
484
+ attach_function :zsock_set_multicast_hops, [:pointer, :int], :void, **opts
485
+ attach_function :zsock_rcvtimeo, [:pointer], :int, **opts
486
+ attach_function :zsock_set_rcvtimeo, [:pointer, :int], :void, **opts
487
+ attach_function :zsock_sndtimeo, [:pointer], :int, **opts
488
+ attach_function :zsock_set_sndtimeo, [:pointer, :int], :void, **opts
489
+ attach_function :zsock_set_xpub_verbose, [:pointer, :int], :void, **opts
490
+ attach_function :zsock_tcp_keepalive, [:pointer], :int, **opts
491
+ attach_function :zsock_set_tcp_keepalive, [:pointer, :int], :void, **opts
492
+ attach_function :zsock_tcp_keepalive_idle, [:pointer], :int, **opts
493
+ attach_function :zsock_set_tcp_keepalive_idle, [:pointer, :int], :void, **opts
494
+ attach_function :zsock_tcp_keepalive_cnt, [:pointer], :int, **opts
495
+ attach_function :zsock_set_tcp_keepalive_cnt, [:pointer, :int], :void, **opts
496
+ attach_function :zsock_tcp_keepalive_intvl, [:pointer], :int, **opts
497
+ attach_function :zsock_set_tcp_keepalive_intvl, [:pointer, :int], :void, **opts
498
+ attach_function :zsock_tcp_accept_filter, [:pointer], :pointer, **opts
499
+ attach_function :zsock_set_tcp_accept_filter, [:pointer, :string], :void, **opts
500
+ attach_function :zsock_rcvmore, [:pointer], :int, **opts
501
+ attach_function :zsock_fd, [:pointer], :pointer, **opts
502
+ attach_function :zsock_events, [:pointer], :int, **opts
503
+ attach_function :zsock_last_endpoint, [:pointer], :pointer, **opts
504
+ attach_function :zsock_test, [:bool], :void, **opts
505
+
506
+ require_relative 'ffi/zsock'
507
+
508
+ attach_function :zstr_recv, [:pointer], :pointer, **opts
509
+ attach_function :zstr_recvx, [:pointer, :pointer, :varargs], :int, **opts
510
+ attach_function :zstr_send, [:pointer, :string], :int, **opts
511
+ attach_function :zstr_sendm, [:pointer, :string], :int, **opts
512
+ attach_function :zstr_sendf, [:pointer, :string, :varargs], :int, **opts
513
+ attach_function :zstr_sendfm, [:pointer, :string, :varargs], :int, **opts
514
+ attach_function :zstr_sendx, [:pointer, :string, :varargs], :int, **opts
515
+ attach_function :zstr_str, [:pointer], :pointer, **opts
516
+ attach_function :zstr_free, [:pointer], :void, **opts
517
+ attach_function :zstr_test, [:bool], :void, **opts
518
+
519
+ require_relative 'ffi/zstr'
520
+
521
+ attach_function :ztrie_new, [:pointer], :pointer, **opts
522
+ attach_function :ztrie_destroy, [:pointer], :void, **opts
523
+ attach_function :ztrie_insert_route, [:pointer, :string, :pointer, :pointer], :int, **opts
524
+ attach_function :ztrie_remove_route, [:pointer, :string], :int, **opts
525
+ attach_function :ztrie_matches, [:pointer, :string], :bool, **opts
526
+ attach_function :ztrie_hit_data, [:pointer], :pointer, **opts
527
+ attach_function :ztrie_hit_parameter_count, [:pointer], :size_t, **opts
528
+ attach_function :ztrie_hit_parameters, [:pointer], :pointer, **opts
529
+ attach_function :ztrie_hit_asterisk_match, [:pointer], :string, **opts
530
+ attach_function :ztrie_print, [:pointer], :void, **opts
531
+ attach_function :ztrie_test, [:bool], :void, **opts
532
+
533
+ require_relative 'ffi/ztrie'
534
+
535
+ attach_function :zuuid_new, [], :pointer, **opts
536
+ attach_function :zuuid_new_from, [:pointer], :pointer, **opts
537
+ attach_function :zuuid_destroy, [:pointer], :void, **opts
538
+ attach_function :zuuid_set, [:pointer, :pointer], :void, **opts
539
+ attach_function :zuuid_set_str, [:pointer, :string], :int, **opts
540
+ attach_function :zuuid_data, [:pointer], :pointer, **opts
541
+ attach_function :zuuid_size, [:pointer], :size_t, **opts
542
+ attach_function :zuuid_str, [:pointer], :string, **opts
543
+ attach_function :zuuid_str_canonical, [:pointer], :string, **opts
544
+ attach_function :zuuid_export, [:pointer, :pointer], :void, **opts
545
+ attach_function :zuuid_eq, [:pointer, :pointer], :bool, **opts
546
+ attach_function :zuuid_neq, [:pointer, :pointer], :bool, **opts
547
+ attach_function :zuuid_dup, [:pointer], :pointer, **opts
548
+ attach_function :zuuid_test, [:bool], :void, **opts
549
+
550
+ require_relative 'ffi/zuuid'
551
+ end
552
+ end
553
+ end
554
+
555
+ ################################################################################
556
+ # THIS FILE IS 100% GENERATED BY ZPROJECT; DO NOT EDIT EXCEPT EXPERIMENTALLY #
557
+ # Please refer to the README for information about making permanent changes. #
558
+ ################################################################################