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_param_lookup, [:pointer, :string], :string, **opts 78 attach_function :zargs_param_lookupx, [:pointer, :string, :varargs], :string, **opts 79 attach_function :zargs_has_help, [:pointer], :bool, **opts 80 attach_function :zargs_param_empty, [:string], :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_test, [:bool], :void, **opts 139 140 require_relative 'ffi/zcertstore' 141 142 attach_function :zchunk_new, [:pointer, :size_t], :pointer, **opts 143 attach_function :zchunk_destroy, [:pointer], :void, **opts 144 attach_function :zchunk_resize, [:pointer, :size_t], :void, **opts 145 attach_function :zchunk_size, [:pointer], :size_t, **opts 146 attach_function :zchunk_max_size, [:pointer], :size_t, **opts 147 attach_function :zchunk_data, [:pointer], :pointer, **opts 148 attach_function :zchunk_set, [:pointer, :pointer, :size_t], :size_t, **opts 149 attach_function :zchunk_fill, [:pointer, :char, :size_t], :size_t, **opts 150 attach_function :zchunk_append, [:pointer, :pointer, :size_t], :size_t, **opts 151 attach_function :zchunk_extend, [:pointer, :pointer, :size_t], :size_t, **opts 152 attach_function :zchunk_consume, [:pointer, :pointer], :size_t, **opts 153 attach_function :zchunk_exhausted, [:pointer], :bool, **opts 154 attach_function :zchunk_read, [:pointer, :size_t], :pointer, **opts 155 attach_function :zchunk_write, [:pointer, :pointer], :int, **opts 156 attach_function :zchunk_slurp, [:string, :size_t], :pointer, **opts 157 attach_function :zchunk_dup, [:pointer], :pointer, **opts 158 attach_function :zchunk_strhex, [:pointer], :pointer, **opts 159 attach_function :zchunk_strdup, [:pointer], :pointer, **opts 160 attach_function :zchunk_streq, [:pointer, :string], :bool, **opts 161 attach_function :zchunk_pack, [:pointer], :pointer, **opts 162 attach_function :zchunk_unpack, [:pointer], :pointer, **opts 163 attach_function :zchunk_digest, [:pointer], :string, **opts 164 attach_function :zchunk_fprint, [:pointer, :pointer], :void, **opts 165 attach_function :zchunk_print, [:pointer], :void, **opts 166 attach_function :zchunk_is, [:pointer], :bool, **opts 167 attach_function :zchunk_test, [:bool], :void, **opts 168 169 require_relative 'ffi/zchunk' 170 171 attach_function :zclock_sleep, [:int], :void, **opts 172 attach_function :zclock_time, [], :pointer, **opts 173 attach_function :zclock_mono, [], :pointer, **opts 174 attach_function :zclock_usecs, [], :pointer, **opts 175 attach_function :zclock_timestr, [], :pointer, **opts 176 attach_function :zclock_test, [:bool], :void, **opts 177 178 require_relative 'ffi/zclock' 179 180 attach_function :zconfig_new, [:string, :pointer], :pointer, **opts 181 attach_function :zconfig_load, [:string], :pointer, **opts 182 attach_function :zconfig_loadf, [:string, :varargs], :pointer, **opts 183 attach_function :zconfig_destroy, [:pointer], :void, **opts 184 attach_function :zconfig_name, [:pointer], :pointer, **opts 185 attach_function :zconfig_value, [:pointer], :pointer, **opts 186 attach_function :zconfig_put, [:pointer, :string, :string], :void, **opts 187 attach_function :zconfig_putf, [:pointer, :string, :string, :varargs], :void, **opts 188 attach_function :zconfig_get, [:pointer, :string, :string], :pointer, **opts 189 attach_function :zconfig_set_name, [:pointer, :string], :void, **opts 190 attach_function :zconfig_set_value, [:pointer, :string, :varargs], :void, **opts 191 attach_function :zconfig_child, [:pointer], :pointer, **opts 192 attach_function :zconfig_next, [:pointer], :pointer, **opts 193 attach_function :zconfig_locate, [:pointer, :string], :pointer, **opts 194 attach_function :zconfig_at_depth, [:pointer, :int], :pointer, **opts 195 attach_function :zconfig_execute, [:pointer, :pointer, :pointer], :int, **opts 196 attach_function :zconfig_set_comment, [:pointer, :string, :varargs], :void, **opts 197 attach_function :zconfig_comments, [:pointer], :pointer, **opts 198 attach_function :zconfig_save, [:pointer, :string], :int, **opts 199 attach_function :zconfig_savef, [:pointer, :string, :varargs], :int, **opts 200 attach_function :zconfig_filename, [:pointer], :string, **opts 201 attach_function :zconfig_reload, [:pointer], :int, **opts 202 attach_function :zconfig_chunk_load, [:pointer], :pointer, **opts 203 attach_function :zconfig_chunk_save, [:pointer], :pointer, **opts 204 attach_function :zconfig_str_load, [:string], :pointer, **opts 205 attach_function :zconfig_str_save, [:pointer], :pointer, **opts 206 attach_function :zconfig_has_changed, [:pointer], :bool, **opts 207 attach_function :zconfig_remove_subtree, [:pointer], :void, **opts 208 attach_function :zconfig_remove, [:pointer], :void, **opts 209 attach_function :zconfig_fprint, [:pointer, :pointer], :void, **opts 210 attach_function :zconfig_print, [:pointer], :void, **opts 211 attach_function :zconfig_test, [:bool], :void, **opts 212 213 require_relative 'ffi/zconfig' 214 215 attach_function :zdigest_new, [], :pointer, **opts 216 attach_function :zdigest_destroy, [:pointer], :void, **opts 217 attach_function :zdigest_update, [:pointer, :pointer, :size_t], :void, **opts 218 attach_function :zdigest_data, [:pointer], :pointer, **opts 219 attach_function :zdigest_size, [:pointer], :size_t, **opts 220 attach_function :zdigest_string, [:pointer], :pointer, **opts 221 attach_function :zdigest_test, [:bool], :void, **opts 222 223 require_relative 'ffi/zdigest' 224 225 attach_function :zdir_new, [:string, :string], :pointer, **opts 226 attach_function :zdir_destroy, [:pointer], :void, **opts 227 attach_function :zdir_path, [:pointer], :string, **opts 228 attach_function :zdir_modified, [:pointer], :pointer, **opts 229 attach_function :zdir_cursize, [:pointer], :pointer, **opts 230 attach_function :zdir_count, [:pointer], :size_t, **opts 231 attach_function :zdir_list, [:pointer], :pointer, **opts 232 attach_function :zdir_remove, [:pointer, :bool], :void, **opts 233 attach_function :zdir_diff, [:pointer, :pointer, :string], :pointer, **opts 234 attach_function :zdir_resync, [:pointer, :string], :pointer, **opts 235 attach_function :zdir_cache, [:pointer], :pointer, **opts 236 attach_function :zdir_fprint, [:pointer, :pointer, :int], :void, **opts 237 attach_function :zdir_print, [:pointer, :int], :void, **opts 238 attach_function :zdir_watch, [:pointer, :pointer], :void, **opts 239 attach_function :zdir_test, [:bool], :void, **opts 240 241 require_relative 'ffi/zdir' 242 243 attach_function :zdir_patch_new, [:string, :pointer, :int, :string], :pointer, **opts 244 attach_function :zdir_patch_destroy, [:pointer], :void, **opts 245 attach_function :zdir_patch_dup, [:pointer], :pointer, **opts 246 attach_function :zdir_patch_path, [:pointer], :string, **opts 247 attach_function :zdir_patch_file, [:pointer], :pointer, **opts 248 attach_function :zdir_patch_op, [:pointer], :int, **opts 249 attach_function :zdir_patch_vpath, [:pointer], :string, **opts 250 attach_function :zdir_patch_digest_set, [:pointer], :void, **opts 251 attach_function :zdir_patch_digest, [:pointer], :string, **opts 252 attach_function :zdir_patch_test, [:bool], :void, **opts 253 254 require_relative 'ffi/zdir_patch' 255 256 attach_function :zfile_new, [:string, :string], :pointer, **opts 257 attach_function :zfile_tmp, [], :pointer, **opts 258 attach_function :zfile_destroy, [:pointer], :void, **opts 259 attach_function :zfile_dup, [:pointer], :pointer, **opts 260 attach_function :zfile_filename, [:pointer, :string], :string, **opts 261 attach_function :zfile_restat, [:pointer], :void, **opts 262 attach_function :zfile_modified, [:pointer], :pointer, **opts 263 attach_function :zfile_cursize, [:pointer], :pointer, **opts 264 attach_function :zfile_is_directory, [:pointer], :bool, **opts 265 attach_function :zfile_is_regular, [:pointer], :bool, **opts 266 attach_function :zfile_is_readable, [:pointer], :bool, **opts 267 attach_function :zfile_is_writeable, [:pointer], :bool, **opts 268 attach_function :zfile_is_stable, [:pointer], :bool, **opts 269 attach_function :zfile_has_changed, [:pointer], :bool, **opts 270 attach_function :zfile_remove, [:pointer], :void, **opts 271 attach_function :zfile_input, [:pointer], :int, **opts 272 attach_function :zfile_output, [:pointer], :int, **opts 273 attach_function :zfile_read, [:pointer, :size_t, :pointer], :pointer, **opts 274 attach_function :zfile_eof, [:pointer], :bool, **opts 275 attach_function :zfile_write, [:pointer, :pointer, :pointer], :int, **opts 276 attach_function :zfile_readln, [:pointer], :string, **opts 277 attach_function :zfile_close, [:pointer], :void, **opts 278 attach_function :zfile_handle, [:pointer], :pointer, **opts 279 attach_function :zfile_digest, [:pointer], :string, **opts 280 attach_function :zfile_test, [:bool], :void, **opts 281 282 require_relative 'ffi/zfile' 283 284 attach_function :zframe_new, [:pointer, :size_t], :pointer, **opts 285 attach_function :zframe_new_empty, [], :pointer, **opts 286 attach_function :zframe_from, [:string], :pointer, **opts 287 attach_function :zframe_recv, [:pointer], :pointer, **opts 288 attach_function :zframe_destroy, [:pointer], :void, **opts 289 attach_function :zframe_send, [:pointer, :pointer, :int], :int, **opts 290 attach_function :zframe_size, [:pointer], :size_t, **opts 291 attach_function :zframe_data, [:pointer], :pointer, **opts 292 attach_function :zframe_meta, [:pointer, :string], :string, **opts 293 attach_function :zframe_dup, [:pointer], :pointer, **opts 294 attach_function :zframe_strhex, [:pointer], :pointer, **opts 295 attach_function :zframe_strdup, [:pointer], :pointer, **opts 296 attach_function :zframe_streq, [:pointer, :string], :bool, **opts 297 attach_function :zframe_more, [:pointer], :int, **opts 298 attach_function :zframe_set_more, [:pointer, :int], :void, **opts 299 attach_function :zframe_routing_id, [:pointer], :uint32, **opts 300 attach_function :zframe_set_routing_id, [:pointer, :uint32], :void, **opts 301 attach_function :zframe_group, [:pointer], :string, **opts 302 attach_function :zframe_set_group, [:pointer, :string], :int, **opts 303 attach_function :zframe_eq, [:pointer, :pointer], :bool, **opts 304 attach_function :zframe_reset, [:pointer, :pointer, :size_t], :void, **opts 305 attach_function :zframe_print, [:pointer, :string], :void, **opts 306 attach_function :zframe_is, [:pointer], :bool, **opts 307 attach_function :zframe_test, [:bool], :void, **opts 308 309 require_relative 'ffi/zframe' 310 311 attach_function :zhash_new, [], :pointer, **opts 312 attach_function :zhash_unpack, [:pointer], :pointer, **opts 313 attach_function :zhash_destroy, [:pointer], :void, **opts 314 attach_function :zhash_insert, [:pointer, :string, :pointer], :int, **opts 315 attach_function :zhash_update, [:pointer, :string, :pointer], :void, **opts 316 attach_function :zhash_delete, [:pointer, :string], :void, **opts 317 attach_function :zhash_lookup, [:pointer, :string], :pointer, **opts 318 attach_function :zhash_rename, [:pointer, :string, :string], :int, **opts 319 attach_function :zhash_freefn, [:pointer, :string, :pointer], :pointer, **opts 320 attach_function :zhash_size, [:pointer], :size_t, **opts 321 attach_function :zhash_dup, [:pointer], :pointer, **opts 322 attach_function :zhash_keys, [:pointer], :pointer, **opts 323 attach_function :zhash_first, [:pointer], :pointer, **opts 324 attach_function :zhash_next, [:pointer], :pointer, **opts 325 attach_function :zhash_cursor, [:pointer], :string, **opts 326 attach_function :zhash_comment, [:pointer, :string, :varargs], :void, **opts 327 attach_function :zhash_pack, [:pointer], :pointer, **opts 328 attach_function :zhash_save, [:pointer, :string], :int, **opts 329 attach_function :zhash_load, [:pointer, :string], :int, **opts 330 attach_function :zhash_refresh, [:pointer], :int, **opts 331 attach_function :zhash_autofree, [:pointer], :void, **opts 332 attach_function :zhash_test, [:bool], :void, **opts 333 334 require_relative 'ffi/zhash' 335 336 attach_function :zhashx_new, [], :pointer, **opts 337 attach_function :zhashx_unpack, [:pointer], :pointer, **opts 338 attach_function :zhashx_unpack_own, [:pointer, :pointer], :pointer, **opts 339 attach_function :zhashx_destroy, [:pointer], :void, **opts 340 attach_function :zhashx_insert, [:pointer, :pointer, :pointer], :int, **opts 341 attach_function :zhashx_update, [:pointer, :pointer, :pointer], :void, **opts 342 attach_function :zhashx_delete, [:pointer, :pointer], :void, **opts 343 attach_function :zhashx_purge, [:pointer], :void, **opts 344 attach_function :zhashx_lookup, [:pointer, :pointer], :pointer, **opts 345 attach_function :zhashx_rename, [:pointer, :pointer, :pointer], :int, **opts 346 attach_function :zhashx_freefn, [:pointer, :pointer, :pointer], :pointer, **opts 347 attach_function :zhashx_size, [:pointer], :size_t, **opts 348 attach_function :zhashx_keys, [:pointer], :pointer, **opts 349 attach_function :zhashx_values, [:pointer], :pointer, **opts 350 attach_function :zhashx_first, [:pointer], :pointer, **opts 351 attach_function :zhashx_next, [:pointer], :pointer, **opts 352 attach_function :zhashx_cursor, [:pointer], :pointer, **opts 353 attach_function :zhashx_comment, [:pointer, :string, :varargs], :void, **opts 354 attach_function :zhashx_save, [:pointer, :string], :int, **opts 355 attach_function :zhashx_load, [:pointer, :string], :int, **opts 356 attach_function :zhashx_refresh, [:pointer], :int, **opts 357 attach_function :zhashx_pack, [:pointer], :pointer, **opts 358 attach_function :zhashx_pack_own, [:pointer, :pointer], :pointer, **opts 359 attach_function :zhashx_dup, [:pointer], :pointer, **opts 360 attach_function :zhashx_set_destructor, [:pointer, :pointer], :void, **opts 361 attach_function :zhashx_set_duplicator, [:pointer, :pointer], :void, **opts 362 attach_function :zhashx_set_key_destructor, [:pointer, :pointer], :void, **opts 363 attach_function :zhashx_set_key_duplicator, [:pointer, :pointer], :void, **opts 364 attach_function :zhashx_set_key_comparator, [:pointer, :pointer], :void, **opts 365 attach_function :zhashx_set_key_hasher, [:pointer, :pointer], :void, **opts 366 attach_function :zhashx_dup_v2, [:pointer], :pointer, **opts 367 attach_function :zhashx_test, [:bool], :void, **opts 368 369 require_relative 'ffi/zhashx' 370 371 attach_function :ziflist_new, [], :pointer, **opts 372 attach_function :ziflist_destroy, [:pointer], :void, **opts 373 attach_function :ziflist_reload, [:pointer], :void, **opts 374 attach_function :ziflist_size, [:pointer], :size_t, **opts 375 attach_function :ziflist_first, [:pointer], :string, **opts 376 attach_function :ziflist_next, [:pointer], :string, **opts 377 attach_function :ziflist_address, [:pointer], :string, **opts 378 attach_function :ziflist_broadcast, [:pointer], :string, **opts 379 attach_function :ziflist_netmask, [:pointer], :string, **opts 380 attach_function :ziflist_print, [:pointer], :void, **opts 381 attach_function :ziflist_new_ipv6, [], :pointer, **opts 382 attach_function :ziflist_reload_ipv6, [:pointer], :void, **opts 383 attach_function :ziflist_is_ipv6, [:pointer], :bool, **opts 384 attach_function :ziflist_test, [:bool], :void, **opts 385 386 require_relative 'ffi/ziflist' 387 388 attach_function :zlist_new, [], :pointer, **opts 389 attach_function :zlist_destroy, [:pointer], :void, **opts 390 attach_function :zlist_first, [:pointer], :pointer, **opts 391 attach_function :zlist_next, [:pointer], :pointer, **opts 392 attach_function :zlist_last, [:pointer], :pointer, **opts 393 attach_function :zlist_head, [:pointer], :pointer, **opts 394 attach_function :zlist_tail, [:pointer], :pointer, **opts 395 attach_function :zlist_item, [:pointer], :pointer, **opts 396 attach_function :zlist_append, [:pointer, :pointer], :int, **opts 397 attach_function :zlist_push, [:pointer, :pointer], :int, **opts 398 attach_function :zlist_pop, [:pointer], :pointer, **opts 399 attach_function :zlist_exists, [:pointer, :pointer], :bool, **opts 400 attach_function :zlist_remove, [:pointer, :pointer], :void, **opts 401 attach_function :zlist_dup, [:pointer], :pointer, **opts 402 attach_function :zlist_purge, [:pointer], :void, **opts 403 attach_function :zlist_size, [:pointer], :size_t, **opts 404 attach_function :zlist_sort, [:pointer, :pointer], :void, **opts 405 attach_function :zlist_autofree, [:pointer], :void, **opts 406 attach_function :zlist_comparefn, [:pointer, :pointer], :void, **opts 407 attach_function :zlist_freefn, [:pointer, :pointer, :pointer, :bool], :pointer, **opts 408 attach_function :zlist_test, [:bool], :void, **opts 409 410 require_relative 'ffi/zlist' 411 412 attach_function :zlistx_new, [], :pointer, **opts 413 attach_function :zlistx_destroy, [:pointer], :void, **opts 414 attach_function :zlistx_add_start, [:pointer, :pointer], :pointer, **opts 415 attach_function :zlistx_add_end, [:pointer, :pointer], :pointer, **opts 416 attach_function :zlistx_size, [:pointer], :size_t, **opts 417 attach_function :zlistx_head, [:pointer], :pointer, **opts 418 attach_function :zlistx_tail, [:pointer], :pointer, **opts 419 attach_function :zlistx_first, [:pointer], :pointer, **opts 420 attach_function :zlistx_next, [:pointer], :pointer, **opts 421 attach_function :zlistx_prev, [:pointer], :pointer, **opts 422 attach_function :zlistx_last, [:pointer], :pointer, **opts 423 attach_function :zlistx_item, [:pointer], :pointer, **opts 424 attach_function :zlistx_cursor, [:pointer], :pointer, **opts 425 attach_function :zlistx_handle_item, [:pointer], :pointer, **opts 426 attach_function :zlistx_find, [:pointer, :pointer], :pointer, **opts 427 attach_function :zlistx_detach, [:pointer, :pointer], :pointer, **opts 428 attach_function :zlistx_detach_cur, [:pointer], :pointer, **opts 429 attach_function :zlistx_delete, [:pointer, :pointer], :int, **opts 430 attach_function :zlistx_move_start, [:pointer, :pointer], :void, **opts 431 attach_function :zlistx_move_end, [:pointer, :pointer], :void, **opts 432 attach_function :zlistx_purge, [:pointer], :void, **opts 433 attach_function :zlistx_sort, [:pointer], :void, **opts 434 attach_function :zlistx_insert, [:pointer, :pointer, :bool], :pointer, **opts 435 attach_function :zlistx_reorder, [:pointer, :pointer, :bool], :void, **opts 436 attach_function :zlistx_dup, [:pointer], :pointer, **opts 437 attach_function :zlistx_set_destructor, [:pointer, :pointer], :void, **opts 438 attach_function :zlistx_set_duplicator, [:pointer, :pointer], :void, **opts 439 attach_function :zlistx_set_comparator, [:pointer, :pointer], :void, **opts 440 attach_function :zlistx_test, [:bool], :void, **opts 441 442 require_relative 'ffi/zlistx' 443 444 attach_function :zloop_new, [], :pointer, **opts 445 attach_function :zloop_destroy, [:pointer], :void, **opts 446 attach_function :zloop_reader, [:pointer, :pointer, :pointer, :pointer], :int, **opts 447 attach_function :zloop_reader_end, [:pointer, :pointer], :void, **opts 448 attach_function :zloop_reader_set_tolerant, [:pointer, :pointer], :void, **opts 449 attach_function :zloop_poller, [:pointer, :pointer, :pointer, :pointer], :int, **opts 450 attach_function :zloop_poller_end, [:pointer, :pointer], :void, **opts 451 attach_function :zloop_poller_set_tolerant, [:pointer, :pointer], :void, **opts 452 attach_function :zloop_timer, [:pointer, :size_t, :size_t, :pointer, :pointer], :int, **opts 453 attach_function :zloop_timer_end, [:pointer, :int], :int, **opts 454 attach_function :zloop_ticket, [:pointer, :pointer, :pointer], :pointer, **opts 455 attach_function :zloop_ticket_reset, [:pointer, :pointer], :void, **opts 456 attach_function :zloop_ticket_delete, [:pointer, :pointer], :void, **opts 457 attach_function :zloop_set_ticket_delay, [:pointer, :size_t], :void, **opts 458 attach_function :zloop_set_max_timers, [:pointer, :size_t], :void, **opts 459 attach_function :zloop_set_verbose, [:pointer, :bool], :void, **opts 460 attach_function :zloop_set_nonstop, [:pointer, :bool], :void, **opts 461 attach_function :zloop_start, [:pointer], :int, **opts 462 attach_function :zloop_test, [:bool], :void, **opts 463 464 require_relative 'ffi/zloop' 465 466 attach_function :zmsg_new, [], :pointer, **opts 467 attach_function :zmsg_recv, [:pointer], :pointer, **opts 468 attach_function :zmsg_load, [:pointer], :pointer, **opts 469 attach_function :zmsg_decode, [:pointer], :pointer, **opts 470 attach_function :zmsg_new_signal, [:char], :pointer, **opts 471 attach_function :zmsg_destroy, [:pointer], :void, **opts 472 attach_function :zmsg_send, [:pointer, :pointer], :int, **opts 473 attach_function :zmsg_sendm, [:pointer, :pointer], :int, **opts 474 attach_function :zmsg_size, [:pointer], :size_t, **opts 475 attach_function :zmsg_content_size, [:pointer], :size_t, **opts 476 attach_function :zmsg_routing_id, [:pointer], :uint32, **opts 477 attach_function :zmsg_set_routing_id, [:pointer, :uint32], :void, **opts 478 attach_function :zmsg_prepend, [:pointer, :pointer], :int, **opts 479 attach_function :zmsg_append, [:pointer, :pointer], :int, **opts 480 attach_function :zmsg_pop, [:pointer], :pointer, **opts 481 attach_function :zmsg_pushmem, [:pointer, :pointer, :size_t], :int, **opts 482 attach_function :zmsg_addmem, [:pointer, :pointer, :size_t], :int, **opts 483 attach_function :zmsg_pushstr, [:pointer, :string], :int, **opts 484 attach_function :zmsg_addstr, [:pointer, :string], :int, **opts 485 attach_function :zmsg_pushstrf, [:pointer, :string, :varargs], :int, **opts 486 attach_function :zmsg_addstrf, [:pointer, :string, :varargs], :int, **opts 487 attach_function :zmsg_popstr, [:pointer], :pointer, **opts 488 attach_function :zmsg_addmsg, [:pointer, :pointer], :int, **opts 489 attach_function :zmsg_popmsg, [:pointer], :pointer, **opts 490 attach_function :zmsg_remove, [:pointer, :pointer], :void, **opts 491 attach_function :zmsg_first, [:pointer], :pointer, **opts 492 attach_function :zmsg_next, [:pointer], :pointer, **opts 493 attach_function :zmsg_last, [:pointer], :pointer, **opts 494 attach_function :zmsg_save, [:pointer, :pointer], :int, **opts 495 attach_function :zmsg_encode, [:pointer], :pointer, **opts 496 attach_function :zmsg_dup, [:pointer], :pointer, **opts 497 attach_function :zmsg_print, [:pointer], :void, **opts 498 attach_function :zmsg_eq, [:pointer, :pointer], :bool, **opts 499 attach_function :zmsg_signal, [:pointer], :int, **opts 500 attach_function :zmsg_is, [:pointer], :bool, **opts 501 attach_function :zmsg_test, [:bool], :void, **opts 502 503 require_relative 'ffi/zmsg' 504 505 attach_function :zpoller_new, [:pointer, :varargs], :pointer, **opts 506 attach_function :zpoller_destroy, [:pointer], :void, **opts 507 attach_function :zpoller_add, [:pointer, :pointer], :int, **opts 508 attach_function :zpoller_remove, [:pointer, :pointer], :int, **opts 509 attach_function :zpoller_set_nonstop, [:pointer, :bool], :void, **opts 510 attach_function :zpoller_wait, [:pointer, :int], :pointer, **opts 511 attach_function :zpoller_expired, [:pointer], :bool, **opts 512 attach_function :zpoller_terminated, [:pointer], :bool, **opts 513 attach_function :zpoller_test, [:bool], :void, **opts 514 515 require_relative 'ffi/zpoller' 516 517 attach_function :zproc_new, [], :pointer, **opts 518 attach_function :zproc_destroy, [:pointer], :void, **opts 519 attach_function :zproc_args, [:pointer], :pointer, **opts 520 attach_function :zproc_set_args, [:pointer, :pointer], :void, **opts 521 attach_function :zproc_set_argsx, [:pointer, :string, :varargs], :void, **opts 522 attach_function :zproc_set_env, [:pointer, :pointer], :void, **opts 523 attach_function :zproc_set_stdin, [:pointer, :pointer], :void, **opts 524 attach_function :zproc_set_stdout, [:pointer, :pointer], :void, **opts 525 attach_function :zproc_set_stderr, [:pointer, :pointer], :void, **opts 526 attach_function :zproc_stdin, [:pointer], :pointer, **opts 527 attach_function :zproc_stdout, [:pointer], :pointer, **opts 528 attach_function :zproc_stderr, [:pointer], :pointer, **opts 529 attach_function :zproc_run, [:pointer], :int, **opts 530 attach_function :zproc_returncode, [:pointer], :int, **opts 531 attach_function :zproc_pid, [:pointer], :int, **opts 532 attach_function :zproc_running, [:pointer], :bool, **opts 533 attach_function :zproc_wait, [:pointer, :bool], :int, **opts 534 attach_function :zproc_actor, [:pointer], :pointer, **opts 535 attach_function :zproc_kill, [:pointer, :int], :void, **opts 536 attach_function :zproc_set_verbose, [:pointer, :bool], :void, **opts 537 attach_function :zproc_test, [:bool], :void, **opts 538 539 require_relative 'ffi/zproc' 540 541 attach_function :zsock_new, [:int], :pointer, **opts 542 attach_function :zsock_new_pub, [:string], :pointer, **opts 543 attach_function :zsock_new_sub, [:string, :string], :pointer, **opts 544 attach_function :zsock_new_req, [:string], :pointer, **opts 545 attach_function :zsock_new_rep, [:string], :pointer, **opts 546 attach_function :zsock_new_dealer, [:string], :pointer, **opts 547 attach_function :zsock_new_router, [:string], :pointer, **opts 548 attach_function :zsock_new_push, [:string], :pointer, **opts 549 attach_function :zsock_new_pull, [:string], :pointer, **opts 550 attach_function :zsock_new_xpub, [:string], :pointer, **opts 551 attach_function :zsock_new_xsub, [:string], :pointer, **opts 552 attach_function :zsock_new_pair, [:string], :pointer, **opts 553 attach_function :zsock_new_stream, [:string], :pointer, **opts 554 attach_function :zsock_new_server, [:string], :pointer, **opts 555 attach_function :zsock_new_client, [:string], :pointer, **opts 556 attach_function :zsock_new_radio, [:string], :pointer, **opts 557 attach_function :zsock_new_dish, [:string], :pointer, **opts 558 attach_function :zsock_new_gather, [:string], :pointer, **opts 559 attach_function :zsock_new_scatter, [:string], :pointer, **opts 560 attach_function :zsock_destroy, [:pointer], :void, **opts 561 attach_function :zsock_bind, [:pointer, :string, :varargs], :int, **opts 562 attach_function :zsock_endpoint, [:pointer], :string, **opts 563 attach_function :zsock_unbind, [:pointer, :string, :varargs], :int, **opts 564 attach_function :zsock_connect, [:pointer, :string, :varargs], :int, **opts 565 attach_function :zsock_disconnect, [:pointer, :string, :varargs], :int, **opts 566 attach_function :zsock_attach, [:pointer, :string, :bool], :int, **opts 567 attach_function :zsock_type_str, [:pointer], :string, **opts 568 attach_function :zsock_send, [:pointer, :string, :varargs], :int, **opts 569 attach_function :zsock_vsend, [:pointer, :string, :pointer], :int, **opts 570 attach_function :zsock_recv, [:pointer, :string, :varargs], :int, **opts 571 attach_function :zsock_vrecv, [:pointer, :string, :pointer], :int, **opts 572 attach_function :zsock_bsend, [:pointer, :string, :varargs], :int, **opts 573 attach_function :zsock_brecv, [:pointer, :string, :varargs], :int, **opts 574 attach_function :zsock_routing_id, [:pointer], :uint32, **opts 575 attach_function :zsock_set_routing_id, [:pointer, :uint32], :void, **opts 576 attach_function :zsock_set_unbounded, [:pointer], :void, **opts 577 attach_function :zsock_signal, [:pointer, :char], :int, **opts 578 attach_function :zsock_wait, [:pointer], :int, **opts 579 attach_function :zsock_flush, [:pointer], :void, **opts 580 attach_function :zsock_join, [:pointer, :string], :int, **opts 581 attach_function :zsock_leave, [:pointer, :string], :int, **opts 582 attach_function :zsock_is, [:pointer], :bool, **opts 583 attach_function :zsock_resolve, [:pointer], :pointer, **opts 584 attach_function :zsock_heartbeat_ivl, [:pointer], :int, **opts 585 attach_function :zsock_set_heartbeat_ivl, [:pointer, :int], :void, **opts 586 attach_function :zsock_heartbeat_ttl, [:pointer], :int, **opts 587 attach_function :zsock_set_heartbeat_ttl, [:pointer, :int], :void, **opts 588 attach_function :zsock_heartbeat_timeout, [:pointer], :int, **opts 589 attach_function :zsock_set_heartbeat_timeout, [:pointer, :int], :void, **opts 590 attach_function :zsock_use_fd, [:pointer], :int, **opts 591 attach_function :zsock_set_use_fd, [:pointer, :int], :void, **opts 592 attach_function :zsock_set_xpub_manual, [:pointer, :int], :void, **opts 593 attach_function :zsock_set_xpub_welcome_msg, [:pointer, :string], :void, **opts 594 attach_function :zsock_set_stream_notify, [:pointer, :int], :void, **opts 595 attach_function :zsock_invert_matching, [:pointer], :int, **opts 596 attach_function :zsock_set_invert_matching, [:pointer, :int], :void, **opts 597 attach_function :zsock_set_xpub_verboser, [:pointer, :int], :void, **opts 598 attach_function :zsock_connect_timeout, [:pointer], :int, **opts 599 attach_function :zsock_set_connect_timeout, [:pointer, :int], :void, **opts 600 attach_function :zsock_tcp_maxrt, [:pointer], :int, **opts 601 attach_function :zsock_set_tcp_maxrt, [:pointer, :int], :void, **opts 602 attach_function :zsock_thread_safe, [:pointer], :int, **opts 603 attach_function :zsock_multicast_maxtpdu, [:pointer], :int, **opts 604 attach_function :zsock_set_multicast_maxtpdu, [:pointer, :int], :void, **opts 605 attach_function :zsock_vmci_buffer_size, [:pointer], :int, **opts 606 attach_function :zsock_set_vmci_buffer_size, [:pointer, :int], :void, **opts 607 attach_function :zsock_vmci_buffer_min_size, [:pointer], :int, **opts 608 attach_function :zsock_set_vmci_buffer_min_size, [:pointer, :int], :void, **opts 609 attach_function :zsock_vmci_buffer_max_size, [:pointer], :int, **opts 610 attach_function :zsock_set_vmci_buffer_max_size, [:pointer, :int], :void, **opts 611 attach_function :zsock_vmci_connect_timeout, [:pointer], :int, **opts 612 attach_function :zsock_set_vmci_connect_timeout, [:pointer, :int], :void, **opts 613 attach_function :zsock_tos, [:pointer], :int, **opts 614 attach_function :zsock_set_tos, [:pointer, :int], :void, **opts 615 attach_function :zsock_set_router_handover, [:pointer, :int], :void, **opts 616 attach_function :zsock_set_connect_rid, [:pointer, :string], :void, **opts 617 attach_function :zsock_set_connect_rid_bin, [:pointer, :pointer], :void, **opts 618 attach_function :zsock_handshake_ivl, [:pointer], :int, **opts 619 attach_function :zsock_set_handshake_ivl, [:pointer, :int], :void, **opts 620 attach_function :zsock_socks_proxy, [:pointer], :pointer, **opts 621 attach_function :zsock_set_socks_proxy, [:pointer, :string], :void, **opts 622 attach_function :zsock_set_xpub_nodrop, [:pointer, :int], :void, **opts 623 attach_function :zsock_set_router_mandatory, [:pointer, :int], :void, **opts 624 attach_function :zsock_set_probe_router, [:pointer, :int], :void, **opts 625 attach_function :zsock_set_req_relaxed, [:pointer, :int], :void, **opts 626 attach_function :zsock_set_req_correlate, [:pointer, :int], :void, **opts 627 attach_function :zsock_set_conflate, [:pointer, :int], :void, **opts 628 attach_function :zsock_zap_domain, [:pointer], :pointer, **opts 629 attach_function :zsock_set_zap_domain, [:pointer, :string], :void, **opts 630 attach_function :zsock_mechanism, [:pointer], :int, **opts 631 attach_function :zsock_plain_server, [:pointer], :int, **opts 632 attach_function :zsock_set_plain_server, [:pointer, :int], :void, **opts 633 attach_function :zsock_plain_username, [:pointer], :pointer, **opts 634 attach_function :zsock_set_plain_username, [:pointer, :string], :void, **opts 635 attach_function :zsock_plain_password, [:pointer], :pointer, **opts 636 attach_function :zsock_set_plain_password, [:pointer, :string], :void, **opts 637 attach_function :zsock_curve_server, [:pointer], :int, **opts 638 attach_function :zsock_set_curve_server, [:pointer, :int], :void, **opts 639 attach_function :zsock_curve_publickey, [:pointer], :pointer, **opts 640 attach_function :zsock_set_curve_publickey, [:pointer, :string], :void, **opts 641 attach_function :zsock_set_curve_publickey_bin, [:pointer, :pointer], :void, **opts 642 attach_function :zsock_curve_secretkey, [:pointer], :pointer, **opts 643 attach_function :zsock_set_curve_secretkey, [:pointer, :string], :void, **opts 644 attach_function :zsock_set_curve_secretkey_bin, [:pointer, :pointer], :void, **opts 645 attach_function :zsock_curve_serverkey, [:pointer], :pointer, **opts 646 attach_function :zsock_set_curve_serverkey, [:pointer, :string], :void, **opts 647 attach_function :zsock_set_curve_serverkey_bin, [:pointer, :pointer], :void, **opts 648 attach_function :zsock_gssapi_server, [:pointer], :int, **opts 649 attach_function :zsock_set_gssapi_server, [:pointer, :int], :void, **opts 650 attach_function :zsock_gssapi_plaintext, [:pointer], :int, **opts 651 attach_function :zsock_set_gssapi_plaintext, [:pointer, :int], :void, **opts 652 attach_function :zsock_gssapi_principal, [:pointer], :pointer, **opts 653 attach_function :zsock_set_gssapi_principal, [:pointer, :string], :void, **opts 654 attach_function :zsock_gssapi_service_principal, [:pointer], :pointer, **opts 655 attach_function :zsock_set_gssapi_service_principal, [:pointer, :string], :void, **opts 656 attach_function :zsock_ipv6, [:pointer], :int, **opts 657 attach_function :zsock_set_ipv6, [:pointer, :int], :void, **opts 658 attach_function :zsock_immediate, [:pointer], :int, **opts 659 attach_function :zsock_set_immediate, [:pointer, :int], :void, **opts 660 attach_function :zsock_sndhwm, [:pointer], :int, **opts 661 attach_function :zsock_set_sndhwm, [:pointer, :int], :void, **opts 662 attach_function :zsock_rcvhwm, [:pointer], :int, **opts 663 attach_function :zsock_set_rcvhwm, [:pointer, :int], :void, **opts 664 attach_function :zsock_maxmsgsize, [:pointer], :int, **opts 665 attach_function :zsock_set_maxmsgsize, [:pointer, :int], :void, **opts 666 attach_function :zsock_multicast_hops, [:pointer], :int, **opts 667 attach_function :zsock_set_multicast_hops, [:pointer, :int], :void, **opts 668 attach_function :zsock_set_xpub_verbose, [:pointer, :int], :void, **opts 669 attach_function :zsock_tcp_keepalive, [:pointer], :int, **opts 670 attach_function :zsock_set_tcp_keepalive, [:pointer, :int], :void, **opts 671 attach_function :zsock_tcp_keepalive_idle, [:pointer], :int, **opts 672 attach_function :zsock_set_tcp_keepalive_idle, [:pointer, :int], :void, **opts 673 attach_function :zsock_tcp_keepalive_cnt, [:pointer], :int, **opts 674 attach_function :zsock_set_tcp_keepalive_cnt, [:pointer, :int], :void, **opts 675 attach_function :zsock_tcp_keepalive_intvl, [:pointer], :int, **opts 676 attach_function :zsock_set_tcp_keepalive_intvl, [:pointer, :int], :void, **opts 677 attach_function :zsock_tcp_accept_filter, [:pointer], :pointer, **opts 678 attach_function :zsock_set_tcp_accept_filter, [:pointer, :string], :void, **opts 679 attach_function :zsock_last_endpoint, [:pointer], :pointer, **opts 680 attach_function :zsock_set_router_raw, [:pointer, :int], :void, **opts 681 attach_function :zsock_ipv4only, [:pointer], :int, **opts 682 attach_function :zsock_set_ipv4only, [:pointer, :int], :void, **opts 683 attach_function :zsock_set_delay_attach_on_connect, [:pointer, :int], :void, **opts 684 attach_function :zsock_hwm, [:pointer], :int, **opts 685 attach_function :zsock_set_hwm, [:pointer, :int], :void, **opts 686 attach_function :zsock_swap, [:pointer], :int, **opts 687 attach_function :zsock_set_swap, [:pointer, :int], :void, **opts 688 attach_function :zsock_affinity, [:pointer], :int, **opts 689 attach_function :zsock_set_affinity, [:pointer, :int], :void, **opts 690 attach_function :zsock_identity, [:pointer], :pointer, **opts 691 attach_function :zsock_set_identity, [:pointer, :string], :void, **opts 692 attach_function :zsock_rate, [:pointer], :int, **opts 693 attach_function :zsock_set_rate, [:pointer, :int], :void, **opts 694 attach_function :zsock_recovery_ivl, [:pointer], :int, **opts 695 attach_function :zsock_set_recovery_ivl, [:pointer, :int], :void, **opts 696 attach_function :zsock_recovery_ivl_msec, [:pointer], :int, **opts 697 attach_function :zsock_set_recovery_ivl_msec, [:pointer, :int], :void, **opts 698 attach_function :zsock_mcast_loop, [:pointer], :int, **opts 699 attach_function :zsock_set_mcast_loop, [:pointer, :int], :void, **opts 700 attach_function :zsock_rcvtimeo, [:pointer], :int, **opts 701 attach_function :zsock_set_rcvtimeo, [:pointer, :int], :void, **opts 702 attach_function :zsock_sndtimeo, [:pointer], :int, **opts 703 attach_function :zsock_set_sndtimeo, [:pointer, :int], :void, **opts 704 attach_function :zsock_sndbuf, [:pointer], :int, **opts 705 attach_function :zsock_set_sndbuf, [:pointer, :int], :void, **opts 706 attach_function :zsock_rcvbuf, [:pointer], :int, **opts 707 attach_function :zsock_set_rcvbuf, [:pointer, :int], :void, **opts 708 attach_function :zsock_linger, [:pointer], :int, **opts 709 attach_function :zsock_set_linger, [:pointer, :int], :void, **opts 710 attach_function :zsock_reconnect_ivl, [:pointer], :int, **opts 711 attach_function :zsock_set_reconnect_ivl, [:pointer, :int], :void, **opts 712 attach_function :zsock_reconnect_ivl_max, [:pointer], :int, **opts 713 attach_function :zsock_set_reconnect_ivl_max, [:pointer, :int], :void, **opts 714 attach_function :zsock_backlog, [:pointer], :int, **opts 715 attach_function :zsock_set_backlog, [:pointer, :int], :void, **opts 716 attach_function :zsock_set_subscribe, [:pointer, :string], :void, **opts 717 attach_function :zsock_set_unsubscribe, [:pointer, :string], :void, **opts 718 attach_function :zsock_type, [:pointer], :int, **opts 719 attach_function :zsock_rcvmore, [:pointer], :int, **opts 720 attach_function :zsock_fd, [:pointer], (::FFI::Platform.unix? ? :int : :uint64), **opts 721 attach_function :zsock_events, [:pointer], :int, **opts 722 attach_function :zsock_test, [:bool], :void, **opts 723 724 require_relative 'ffi/zsock' 725 726 attach_function :zstr_recv, [:pointer], :pointer, **opts 727 attach_function :zstr_recvx, [:pointer, :pointer, :varargs], :int, **opts 728 attach_function :zstr_recv_compress, [:pointer], :pointer, **opts 729 attach_function :zstr_send, [:pointer, :string], :int, **opts 730 attach_function :zstr_sendm, [:pointer, :string], :int, **opts 731 attach_function :zstr_sendf, [:pointer, :string, :varargs], :int, **opts 732 attach_function :zstr_sendfm, [:pointer, :string, :varargs], :int, **opts 733 attach_function :zstr_sendx, [:pointer, :string, :varargs], :int, **opts 734 attach_function :zstr_send_compress, [:pointer, :string], :int, **opts 735 attach_function :zstr_sendm_compress, [:pointer, :string], :int, **opts 736 attach_function :zstr_str, [:pointer], :pointer, **opts 737 attach_function :zstr_free, [:pointer], :void, **opts 738 attach_function :zstr_test, [:bool], :void, **opts 739 740 require_relative 'ffi/zstr' 741 742 attach_function :zsys_init, [], :pointer, **opts 743 attach_function :zsys_shutdown, [], :void, **opts 744 attach_function :zsys_socket, [:int, :string, :size_t], :pointer, **opts 745 attach_function :zsys_close, [:pointer, :string, :size_t], :int, **opts 746 attach_function :zsys_sockname, [:int], :pointer, **opts 747 attach_function :zsys_create_pipe, [:pointer], :pointer, **opts 748 attach_function :zsys_handler_set, [:pointer], :void, **opts 749 attach_function :zsys_handler_reset, [], :void, **opts 750 attach_function :zsys_catch_interrupts, [], :void, **opts 751 attach_function :zsys_is_interrupted, [], :bool, **opts 752 attach_function :zsys_set_interrupted, [], :void, **opts 753 attach_function :zsys_file_exists, [:string], :bool, **opts 754 attach_function :zsys_file_modified, [:string], :pointer, **opts 755 attach_function :zsys_file_mode, [:string], :int, **opts 756 attach_function :zsys_file_delete, [:string], :int, **opts 757 attach_function :zsys_file_stable, [:string], :bool, **opts 758 attach_function :zsys_dir_create, [:string, :varargs], :int, **opts 759 attach_function :zsys_dir_delete, [:string, :varargs], :int, **opts 760 attach_function :zsys_dir_change, [:string], :int, **opts 761 attach_function :zsys_file_mode_private, [], :void, **opts 762 attach_function :zsys_file_mode_default, [], :void, **opts 763 attach_function :zsys_version, [:pointer, :pointer, :pointer], :void, **opts 764 attach_function :zsys_sprintf, [:string, :varargs], :pointer, **opts 765 attach_function :zsys_vprintf, [:string, :pointer], :pointer, **opts 766 attach_function :zsys_udp_new, [:bool], (::FFI::Platform.unix? ? :int : :uint64), **opts 767 attach_function :zsys_udp_close, [(::FFI::Platform.unix? ? :int : :uint64)], :int, **opts 768 attach_function :zsys_udp_send, [(::FFI::Platform.unix? ? :int : :uint64), :pointer, :pointer, :int], :int, **opts 769 attach_function :zsys_udp_recv, [(::FFI::Platform.unix? ? :int : :uint64), :pointer, :int], :pointer, **opts 770 attach_function :zsys_socket_error, [:string], :void, **opts 771 attach_function :zsys_hostname, [], :pointer, **opts 772 attach_function :zsys_daemonize, [:string], :int, **opts 773 attach_function :zsys_run_as, [:string, :string, :string], :int, **opts 774 attach_function :zsys_has_curve, [], :bool, **opts 775 attach_function :zsys_set_io_threads, [:size_t], :void, **opts 776 attach_function :zsys_set_thread_sched_policy, [:int], :void, **opts 777 attach_function :zsys_set_thread_priority, [:int], :void, **opts 778 attach_function :zsys_set_max_sockets, [:size_t], :void, **opts 779 attach_function :zsys_socket_limit, [], :size_t, **opts 780 attach_function :zsys_set_max_msgsz, [:int], :void, **opts 781 attach_function :zsys_max_msgsz, [], :int, **opts 782 attach_function :zsys_set_zero_copy_recv, [:int], :void, **opts 783 attach_function :zsys_zero_copy_recv, [], :int, **opts 784 attach_function :zsys_set_file_stable_age_msec, [:pointer], :void, **opts 785 attach_function :zsys_file_stable_age_msec, [], :pointer, **opts 786 attach_function :zsys_set_linger, [:size_t], :void, **opts 787 attach_function :zsys_set_sndhwm, [:size_t], :void, **opts 788 attach_function :zsys_set_rcvhwm, [:size_t], :void, **opts 789 attach_function :zsys_set_pipehwm, [:size_t], :void, **opts 790 attach_function :zsys_pipehwm, [], :size_t, **opts 791 attach_function :zsys_set_ipv6, [:int], :void, **opts 792 attach_function :zsys_ipv6, [], :int, **opts 793 attach_function :zsys_set_interface, [:string], :void, **opts 794 attach_function :zsys_interface, [], :string, **opts 795 attach_function :zsys_set_ipv6_address, [:string], :void, **opts 796 attach_function :zsys_ipv6_address, [], :string, **opts 797 attach_function :zsys_set_ipv6_mcast_address, [:string], :void, **opts 798 attach_function :zsys_ipv6_mcast_address, [], :string, **opts 799 attach_function :zsys_set_auto_use_fd, [:int], :void, **opts 800 attach_function :zsys_auto_use_fd, [], :int, **opts 801 attach_function :zsys_set_logident, [:string], :void, **opts 802 attach_function :zsys_set_logstream, [:pointer], :void, **opts 803 attach_function :zsys_set_logsender, [:string], :void, **opts 804 attach_function :zsys_set_logsystem, [:bool], :void, **opts 805 attach_function :zsys_error, [:string, :varargs], :void, **opts 806 attach_function :zsys_warning, [:string, :varargs], :void, **opts 807 attach_function :zsys_notice, [:string, :varargs], :void, **opts 808 attach_function :zsys_info, [:string, :varargs], :void, **opts 809 attach_function :zsys_debug, [:string, :varargs], :void, **opts 810 attach_function :zsys_test, [:bool], :void, **opts 811 812 require_relative 'ffi/zsys' 813 814 attach_function :ztimerset_new, [], :pointer, **opts 815 attach_function :ztimerset_destroy, [:pointer], :void, **opts 816 attach_function :ztimerset_add, [:pointer, :size_t, :pointer, :pointer], :int, **opts 817 attach_function :ztimerset_cancel, [:pointer, :int], :int, **opts 818 attach_function :ztimerset_set_interval, [:pointer, :int, :size_t], :int, **opts 819 attach_function :ztimerset_reset, [:pointer, :int], :int, **opts 820 attach_function :ztimerset_timeout, [:pointer], :int, **opts 821 attach_function :ztimerset_execute, [:pointer], :int, **opts 822 attach_function :ztimerset_test, [:bool], :void, **opts 823 824 require_relative 'ffi/ztimerset' 825 826 attach_function :ztrie_new, [:pointer], :pointer, **opts 827 attach_function :ztrie_destroy, [:pointer], :void, **opts 828 attach_function :ztrie_insert_route, [:pointer, :string, :pointer, :pointer], :int, **opts 829 attach_function :ztrie_remove_route, [:pointer, :string], :int, **opts 830 attach_function :ztrie_matches, [:pointer, :string], :bool, **opts 831 attach_function :ztrie_hit_data, [:pointer], :pointer, **opts 832 attach_function :ztrie_hit_parameter_count, [:pointer], :size_t, **opts 833 attach_function :ztrie_hit_parameters, [:pointer], :pointer, **opts 834 attach_function :ztrie_hit_asterisk_match, [:pointer], :string, **opts 835 attach_function :ztrie_print, [:pointer], :void, **opts 836 attach_function :ztrie_test, [:bool], :void, **opts 837 838 require_relative 'ffi/ztrie' 839 840 attach_function :zuuid_new, [], :pointer, **opts 841 attach_function :zuuid_new_from, [:pointer], :pointer, **opts 842 attach_function :zuuid_destroy, [:pointer], :void, **opts 843 attach_function :zuuid_set, [:pointer, :pointer], :void, **opts 844 attach_function :zuuid_set_str, [:pointer, :string], :int, **opts 845 attach_function :zuuid_data, [:pointer], :pointer, **opts 846 attach_function :zuuid_size, [:pointer], :size_t, **opts 847 attach_function :zuuid_str, [:pointer], :string, **opts 848 attach_function :zuuid_str_canonical, [:pointer], :string, **opts 849 attach_function :zuuid_export, [:pointer, :pointer], :void, **opts 850 attach_function :zuuid_eq, [:pointer, :pointer], :bool, **opts 851 attach_function :zuuid_neq, [:pointer, :pointer], :bool, **opts 852 attach_function :zuuid_dup, [:pointer], :pointer, **opts 853 attach_function :zuuid_test, [:bool], :void, **opts 854 855 require_relative 'ffi/zuuid' 856 end 857 end 858end 859 860################################################################################ 861# THIS FILE IS 100% GENERATED BY ZPROJECT; DO NOT EDIT EXCEPT EXPERIMENTALLY # 862# Read the zproject/README.md for information about making permanent changes. # 863################################################################################ 864