czmq-ffi-gen 1.1.0.pre1 → 1.1.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/czmq-ffi-gen/czmq/ffi/zactor.rb +2 -1
- data/lib/czmq-ffi-gen/czmq/ffi/zargs.rb +2 -1
- data/lib/czmq-ffi-gen/czmq/ffi/zarmour.rb +2 -1
- data/lib/czmq-ffi-gen/czmq/ffi/zcert.rb +2 -1
- data/lib/czmq-ffi-gen/czmq/ffi/zcertstore.rb +2 -1
- data/lib/czmq-ffi-gen/czmq/ffi/zchunk.rb +2 -1
- data/lib/czmq-ffi-gen/czmq/ffi/zconfig.rb +2 -1
- data/lib/czmq-ffi-gen/czmq/ffi/zdigest.rb +2 -1
- data/lib/czmq-ffi-gen/czmq/ffi/zdir.rb +14 -1
- data/lib/czmq-ffi-gen/czmq/ffi/zdir_patch.rb +2 -1
- data/lib/czmq-ffi-gen/czmq/ffi/zfile.rb +2 -1
- data/lib/czmq-ffi-gen/czmq/ffi/zframe.rb +2 -1
- data/lib/czmq-ffi-gen/czmq/ffi/zhash.rb +2 -1
- data/lib/czmq-ffi-gen/czmq/ffi/zhashx.rb +2 -1
- data/lib/czmq-ffi-gen/czmq/ffi/zhttp_client.rb +2 -1
- data/lib/czmq-ffi-gen/czmq/ffi/zhttp_request.rb +2 -1
- data/lib/czmq-ffi-gen/czmq/ffi/zhttp_response.rb +2 -1
- data/lib/czmq-ffi-gen/czmq/ffi/zhttp_server.rb +2 -1
- data/lib/czmq-ffi-gen/czmq/ffi/zhttp_server_options.rb +2 -1
- data/lib/czmq-ffi-gen/czmq/ffi/ziflist.rb +12 -1
- data/lib/czmq-ffi-gen/czmq/ffi/zlist.rb +4 -3
- data/lib/czmq-ffi-gen/czmq/ffi/zlistx.rb +5 -5
- data/lib/czmq-ffi-gen/czmq/ffi/zloop.rb +2 -1
- data/lib/czmq-ffi-gen/czmq/ffi/zmsg.rb +2 -1
- data/lib/czmq-ffi-gen/czmq/ffi/zosc.rb +2 -1
- data/lib/czmq-ffi-gen/czmq/ffi/zpoller.rb +2 -1
- data/lib/czmq-ffi-gen/czmq/ffi/zproc.rb +2 -1
- data/lib/czmq-ffi-gen/czmq/ffi/zsock.rb +2 -1
- data/lib/czmq-ffi-gen/czmq/ffi/ztimerset.rb +2 -1
- data/lib/czmq-ffi-gen/czmq/ffi/ztrie.rb +2 -1
- data/lib/czmq-ffi-gen/czmq/ffi/zuuid.rb +2 -1
- data/lib/czmq-ffi-gen/czmq/ffi.rb +2 -0
- data/lib/czmq-ffi-gen/gem_version.rb +1 -1
- metadata +6 -6
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: b0ce6ab97770996a32527f2bcc6ed0dfb902d3cb93c46509f8dcd3417e55b6be
|
4
|
+
data.tar.gz: 0031d85ed9d0952f27f0d76566ad090e435177ebd80c7271ab43e24555d3d0d0
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: f4507594fd520553e9db3d6d1f1a3ce9a168d6f2ebab5e0178809fc579419b0fa646e5c11f86756b05fb0f0402936999414c32c415b520728704028d9edab76b
|
7
|
+
data.tar.gz: c42860abb75439d4941c4fb6cebbb6148049f007415093dafb59eba8f5cdae1edb399ca511ffe2859ebfe86d5b77015d2e60c6950ab75b1195f737035050bc43
|
@@ -33,8 +33,9 @@ module CZMQ
|
|
33
33
|
# @param ptr [::FFI::Pointer]
|
34
34
|
# @return [Proc]
|
35
35
|
def self.create_finalizer_for(ptr)
|
36
|
+
ptr_ptr = ::FFI::MemoryPointer.new :pointer
|
37
|
+
|
36
38
|
Proc.new do
|
37
|
-
ptr_ptr = ::FFI::MemoryPointer.new :pointer
|
38
39
|
ptr_ptr.write_pointer ptr
|
39
40
|
::CZMQ::FFI.zactor_destroy ptr_ptr
|
40
41
|
end
|
@@ -54,8 +54,9 @@ module CZMQ
|
|
54
54
|
# @param ptr [::FFI::Pointer]
|
55
55
|
# @return [Proc]
|
56
56
|
def self.create_finalizer_for(ptr)
|
57
|
+
ptr_ptr = ::FFI::MemoryPointer.new :pointer
|
58
|
+
|
57
59
|
Proc.new do
|
58
|
-
ptr_ptr = ::FFI::MemoryPointer.new :pointer
|
59
60
|
ptr_ptr.write_pointer ptr
|
60
61
|
::CZMQ::FFI.zargs_destroy ptr_ptr
|
61
62
|
end
|
@@ -51,8 +51,9 @@ module CZMQ
|
|
51
51
|
# @param ptr [::FFI::Pointer]
|
52
52
|
# @return [Proc]
|
53
53
|
def self.create_finalizer_for(ptr)
|
54
|
+
ptr_ptr = ::FFI::MemoryPointer.new :pointer
|
55
|
+
|
54
56
|
Proc.new do
|
55
|
-
ptr_ptr = ::FFI::MemoryPointer.new :pointer
|
56
57
|
ptr_ptr.write_pointer ptr
|
57
58
|
::CZMQ::FFI.zarmour_destroy ptr_ptr
|
58
59
|
end
|
@@ -33,8 +33,9 @@ module CZMQ
|
|
33
33
|
# @param ptr [::FFI::Pointer]
|
34
34
|
# @return [Proc]
|
35
35
|
def self.create_finalizer_for(ptr)
|
36
|
+
ptr_ptr = ::FFI::MemoryPointer.new :pointer
|
37
|
+
|
36
38
|
Proc.new do
|
37
|
-
ptr_ptr = ::FFI::MemoryPointer.new :pointer
|
38
39
|
ptr_ptr.write_pointer ptr
|
39
40
|
::CZMQ::FFI.zcert_destroy ptr_ptr
|
40
41
|
end
|
@@ -33,8 +33,9 @@ module CZMQ
|
|
33
33
|
# @param ptr [::FFI::Pointer]
|
34
34
|
# @return [Proc]
|
35
35
|
def self.create_finalizer_for(ptr)
|
36
|
+
ptr_ptr = ::FFI::MemoryPointer.new :pointer
|
37
|
+
|
36
38
|
Proc.new do
|
37
|
-
ptr_ptr = ::FFI::MemoryPointer.new :pointer
|
38
39
|
ptr_ptr.write_pointer ptr
|
39
40
|
::CZMQ::FFI.zcertstore_destroy ptr_ptr
|
40
41
|
end
|
@@ -33,8 +33,9 @@ module CZMQ
|
|
33
33
|
# @param ptr [::FFI::Pointer]
|
34
34
|
# @return [Proc]
|
35
35
|
def self.create_finalizer_for(ptr)
|
36
|
+
ptr_ptr = ::FFI::MemoryPointer.new :pointer
|
37
|
+
|
36
38
|
Proc.new do
|
37
|
-
ptr_ptr = ::FFI::MemoryPointer.new :pointer
|
38
39
|
ptr_ptr.write_pointer ptr
|
39
40
|
::CZMQ::FFI.zchunk_destroy ptr_ptr
|
40
41
|
end
|
@@ -33,8 +33,9 @@ module CZMQ
|
|
33
33
|
# @param ptr [::FFI::Pointer]
|
34
34
|
# @return [Proc]
|
35
35
|
def self.create_finalizer_for(ptr)
|
36
|
+
ptr_ptr = ::FFI::MemoryPointer.new :pointer
|
37
|
+
|
36
38
|
Proc.new do
|
37
|
-
ptr_ptr = ::FFI::MemoryPointer.new :pointer
|
38
39
|
ptr_ptr.write_pointer ptr
|
39
40
|
::CZMQ::FFI.zconfig_destroy ptr_ptr
|
40
41
|
end
|
@@ -33,8 +33,9 @@ module CZMQ
|
|
33
33
|
# @param ptr [::FFI::Pointer]
|
34
34
|
# @return [Proc]
|
35
35
|
def self.create_finalizer_for(ptr)
|
36
|
+
ptr_ptr = ::FFI::MemoryPointer.new :pointer
|
37
|
+
|
36
38
|
Proc.new do
|
37
|
-
ptr_ptr = ::FFI::MemoryPointer.new :pointer
|
38
39
|
ptr_ptr.write_pointer ptr
|
39
40
|
::CZMQ::FFI.zdigest_destroy ptr_ptr
|
40
41
|
end
|
@@ -33,8 +33,9 @@ module CZMQ
|
|
33
33
|
# @param ptr [::FFI::Pointer]
|
34
34
|
# @return [Proc]
|
35
35
|
def self.create_finalizer_for(ptr)
|
36
|
+
ptr_ptr = ::FFI::MemoryPointer.new :pointer
|
37
|
+
|
36
38
|
Proc.new do
|
37
|
-
ptr_ptr = ::FFI::MemoryPointer.new :pointer
|
38
39
|
ptr_ptr.write_pointer ptr
|
39
40
|
::CZMQ::FFI.zdir_destroy ptr_ptr
|
40
41
|
end
|
@@ -148,6 +149,18 @@ module CZMQ
|
|
148
149
|
result
|
149
150
|
end
|
150
151
|
|
152
|
+
# Returns a sorted list of char*; Each entry in the list is a path of a file
|
153
|
+
# or directory contained in self.
|
154
|
+
#
|
155
|
+
# @return [Zlist]
|
156
|
+
def list_paths()
|
157
|
+
raise DestroyedError unless @ptr
|
158
|
+
self_p = @ptr
|
159
|
+
result = ::CZMQ::FFI.zdir_list_paths(self_p)
|
160
|
+
result = Zlist.__new result, true
|
161
|
+
result
|
162
|
+
end
|
163
|
+
|
151
164
|
# Remove directory, optionally including all files that it contains, at
|
152
165
|
# all levels. If force is false, will only remove the directory if empty.
|
153
166
|
# If force is true, will remove all files and all subdirectories.
|
@@ -39,8 +39,9 @@ module CZMQ
|
|
39
39
|
# @param ptr [::FFI::Pointer]
|
40
40
|
# @return [Proc]
|
41
41
|
def self.create_finalizer_for(ptr)
|
42
|
+
ptr_ptr = ::FFI::MemoryPointer.new :pointer
|
43
|
+
|
42
44
|
Proc.new do
|
43
|
-
ptr_ptr = ::FFI::MemoryPointer.new :pointer
|
44
45
|
ptr_ptr.write_pointer ptr
|
45
46
|
::CZMQ::FFI.zdir_patch_destroy ptr_ptr
|
46
47
|
end
|
@@ -33,8 +33,9 @@ module CZMQ
|
|
33
33
|
# @param ptr [::FFI::Pointer]
|
34
34
|
# @return [Proc]
|
35
35
|
def self.create_finalizer_for(ptr)
|
36
|
+
ptr_ptr = ::FFI::MemoryPointer.new :pointer
|
37
|
+
|
36
38
|
Proc.new do
|
37
|
-
ptr_ptr = ::FFI::MemoryPointer.new :pointer
|
38
39
|
ptr_ptr.write_pointer ptr
|
39
40
|
::CZMQ::FFI.zfile_destroy ptr_ptr
|
40
41
|
end
|
@@ -42,8 +42,9 @@ module CZMQ
|
|
42
42
|
# @param ptr [::FFI::Pointer]
|
43
43
|
# @return [Proc]
|
44
44
|
def self.create_finalizer_for(ptr)
|
45
|
+
ptr_ptr = ::FFI::MemoryPointer.new :pointer
|
46
|
+
|
45
47
|
Proc.new do
|
46
|
-
ptr_ptr = ::FFI::MemoryPointer.new :pointer
|
47
48
|
ptr_ptr.write_pointer ptr
|
48
49
|
::CZMQ::FFI.zframe_destroy ptr_ptr
|
49
50
|
end
|
@@ -33,8 +33,9 @@ module CZMQ
|
|
33
33
|
# @param ptr [::FFI::Pointer]
|
34
34
|
# @return [Proc]
|
35
35
|
def self.create_finalizer_for(ptr)
|
36
|
+
ptr_ptr = ::FFI::MemoryPointer.new :pointer
|
37
|
+
|
36
38
|
Proc.new do
|
37
|
-
ptr_ptr = ::FFI::MemoryPointer.new :pointer
|
38
39
|
ptr_ptr.write_pointer ptr
|
39
40
|
::CZMQ::FFI.zhash_destroy ptr_ptr
|
40
41
|
end
|
@@ -33,8 +33,9 @@ module CZMQ
|
|
33
33
|
# @param ptr [::FFI::Pointer]
|
34
34
|
# @return [Proc]
|
35
35
|
def self.create_finalizer_for(ptr)
|
36
|
+
ptr_ptr = ::FFI::MemoryPointer.new :pointer
|
37
|
+
|
36
38
|
Proc.new do
|
37
|
-
ptr_ptr = ::FFI::MemoryPointer.new :pointer
|
38
39
|
ptr_ptr.write_pointer ptr
|
39
40
|
::CZMQ::FFI.zhashx_destroy ptr_ptr
|
40
41
|
end
|
@@ -35,8 +35,9 @@ module CZMQ
|
|
35
35
|
# @param ptr [::FFI::Pointer]
|
36
36
|
# @return [Proc]
|
37
37
|
def self.create_finalizer_for(ptr)
|
38
|
+
ptr_ptr = ::FFI::MemoryPointer.new :pointer
|
39
|
+
|
38
40
|
Proc.new do
|
39
|
-
ptr_ptr = ::FFI::MemoryPointer.new :pointer
|
40
41
|
ptr_ptr.write_pointer ptr
|
41
42
|
::CZMQ::FFI.zhttp_client_destroy ptr_ptr
|
42
43
|
end
|
@@ -35,8 +35,9 @@ module CZMQ
|
|
35
35
|
# @param ptr [::FFI::Pointer]
|
36
36
|
# @return [Proc]
|
37
37
|
def self.create_finalizer_for(ptr)
|
38
|
+
ptr_ptr = ::FFI::MemoryPointer.new :pointer
|
39
|
+
|
38
40
|
Proc.new do
|
39
|
-
ptr_ptr = ::FFI::MemoryPointer.new :pointer
|
40
41
|
ptr_ptr.write_pointer ptr
|
41
42
|
::CZMQ::FFI.zhttp_request_destroy ptr_ptr
|
42
43
|
end
|
@@ -35,8 +35,9 @@ module CZMQ
|
|
35
35
|
# @param ptr [::FFI::Pointer]
|
36
36
|
# @return [Proc]
|
37
37
|
def self.create_finalizer_for(ptr)
|
38
|
+
ptr_ptr = ::FFI::MemoryPointer.new :pointer
|
39
|
+
|
38
40
|
Proc.new do
|
39
|
-
ptr_ptr = ::FFI::MemoryPointer.new :pointer
|
40
41
|
ptr_ptr.write_pointer ptr
|
41
42
|
::CZMQ::FFI.zhttp_response_destroy ptr_ptr
|
42
43
|
end
|
@@ -47,8 +47,9 @@ module CZMQ
|
|
47
47
|
# @param ptr [::FFI::Pointer]
|
48
48
|
# @return [Proc]
|
49
49
|
def self.create_finalizer_for(ptr)
|
50
|
+
ptr_ptr = ::FFI::MemoryPointer.new :pointer
|
51
|
+
|
50
52
|
Proc.new do
|
51
|
-
ptr_ptr = ::FFI::MemoryPointer.new :pointer
|
52
53
|
ptr_ptr.write_pointer ptr
|
53
54
|
::CZMQ::FFI.zhttp_server_destroy ptr_ptr
|
54
55
|
end
|
@@ -33,8 +33,9 @@ module CZMQ
|
|
33
33
|
# @param ptr [::FFI::Pointer]
|
34
34
|
# @return [Proc]
|
35
35
|
def self.create_finalizer_for(ptr)
|
36
|
+
ptr_ptr = ::FFI::MemoryPointer.new :pointer
|
37
|
+
|
36
38
|
Proc.new do
|
37
|
-
ptr_ptr = ::FFI::MemoryPointer.new :pointer
|
38
39
|
ptr_ptr.write_pointer ptr
|
39
40
|
::CZMQ::FFI.zhttp_server_options_destroy ptr_ptr
|
40
41
|
end
|
@@ -33,8 +33,9 @@ module CZMQ
|
|
33
33
|
# @param ptr [::FFI::Pointer]
|
34
34
|
# @return [Proc]
|
35
35
|
def self.create_finalizer_for(ptr)
|
36
|
+
ptr_ptr = ::FFI::MemoryPointer.new :pointer
|
37
|
+
|
36
38
|
Proc.new do
|
37
|
-
ptr_ptr = ::FFI::MemoryPointer.new :pointer
|
38
39
|
ptr_ptr.write_pointer ptr
|
39
40
|
::CZMQ::FFI.ziflist_destroy ptr_ptr
|
40
41
|
end
|
@@ -160,6 +161,16 @@ module CZMQ
|
|
160
161
|
result
|
161
162
|
end
|
162
163
|
|
164
|
+
# Return the current interface MAC address as a printable string
|
165
|
+
#
|
166
|
+
# @return [String]
|
167
|
+
def mac()
|
168
|
+
raise DestroyedError unless @ptr
|
169
|
+
self_p = @ptr
|
170
|
+
result = ::CZMQ::FFI.ziflist_mac(self_p)
|
171
|
+
result
|
172
|
+
end
|
173
|
+
|
163
174
|
# Return the list of interfaces.
|
164
175
|
#
|
165
176
|
# @return [void]
|
@@ -33,8 +33,9 @@ module CZMQ
|
|
33
33
|
# @param ptr [::FFI::Pointer]
|
34
34
|
# @return [Proc]
|
35
35
|
def self.create_finalizer_for(ptr)
|
36
|
+
ptr_ptr = ::FFI::MemoryPointer.new :pointer
|
37
|
+
|
36
38
|
Proc.new do
|
37
|
-
ptr_ptr = ::FFI::MemoryPointer.new :pointer
|
38
39
|
ptr_ptr.write_pointer ptr
|
39
40
|
::CZMQ::FFI.zlist_destroy ptr_ptr
|
40
41
|
end
|
@@ -188,7 +189,7 @@ module CZMQ
|
|
188
189
|
end
|
189
190
|
|
190
191
|
# Append an item to the end of the list, return 0 if OK or -1 if this
|
191
|
-
# failed for some reason (
|
192
|
+
# failed for some reason (invalid input). Note that if a duplicator has
|
192
193
|
# been set, this method will also duplicate the item.
|
193
194
|
#
|
194
195
|
# @param item [::FFI::Pointer, #to_ptr]
|
@@ -201,7 +202,7 @@ module CZMQ
|
|
201
202
|
end
|
202
203
|
|
203
204
|
# Push an item to the start of the list, return 0 if OK or -1 if this
|
204
|
-
# failed for some reason (
|
205
|
+
# failed for some reason (invalid input). Note that if a duplicator has
|
205
206
|
# been set, this method will also duplicate the item.
|
206
207
|
#
|
207
208
|
# @param item [::FFI::Pointer, #to_ptr]
|
@@ -33,8 +33,9 @@ module CZMQ
|
|
33
33
|
# @param ptr [::FFI::Pointer]
|
34
34
|
# @return [Proc]
|
35
35
|
def self.create_finalizer_for(ptr)
|
36
|
+
ptr_ptr = ::FFI::MemoryPointer.new :pointer
|
37
|
+
|
36
38
|
Proc.new do
|
37
|
-
ptr_ptr = ::FFI::MemoryPointer.new :pointer
|
38
39
|
ptr_ptr.write_pointer ptr
|
39
40
|
::CZMQ::FFI.zlistx_destroy ptr_ptr
|
40
41
|
end
|
@@ -153,7 +154,7 @@ module CZMQ
|
|
153
154
|
|
154
155
|
# Add an item to the head of the list. Calls the item duplicator, if any,
|
155
156
|
# on the item. Resets cursor to list head. Returns an item handle on
|
156
|
-
# success
|
157
|
+
# success.
|
157
158
|
#
|
158
159
|
# @param item [::FFI::Pointer, #to_ptr]
|
159
160
|
# @return [::FFI::Pointer]
|
@@ -166,7 +167,7 @@ module CZMQ
|
|
166
167
|
|
167
168
|
# Add an item to the tail of the list. Calls the item duplicator, if any,
|
168
169
|
# on the item. Resets cursor to list head. Returns an item handle on
|
169
|
-
# success
|
170
|
+
# success.
|
170
171
|
#
|
171
172
|
# @param item [::FFI::Pointer, #to_ptr]
|
172
173
|
# @return [::FFI::Pointer]
|
@@ -390,8 +391,7 @@ module CZMQ
|
|
390
391
|
# duplicator, if any, on the item. If low_value is true, starts searching
|
391
392
|
# from the start of the list, otherwise searches from the end. Use the item
|
392
393
|
# comparator, if any, to find where to place the new node. Returns a handle
|
393
|
-
# to the new node
|
394
|
-
# list head.
|
394
|
+
# to the new node. Resets the cursor to the list head.
|
395
395
|
#
|
396
396
|
# @param item [::FFI::Pointer, #to_ptr]
|
397
397
|
# @param low_value [Boolean]
|
@@ -33,8 +33,9 @@ module CZMQ
|
|
33
33
|
# @param ptr [::FFI::Pointer]
|
34
34
|
# @return [Proc]
|
35
35
|
def self.create_finalizer_for(ptr)
|
36
|
+
ptr_ptr = ::FFI::MemoryPointer.new :pointer
|
37
|
+
|
36
38
|
Proc.new do
|
37
|
-
ptr_ptr = ::FFI::MemoryPointer.new :pointer
|
38
39
|
ptr_ptr.write_pointer ptr
|
39
40
|
::CZMQ::FFI.zloop_destroy ptr_ptr
|
40
41
|
end
|
@@ -33,8 +33,9 @@ module CZMQ
|
|
33
33
|
# @param ptr [::FFI::Pointer]
|
34
34
|
# @return [Proc]
|
35
35
|
def self.create_finalizer_for(ptr)
|
36
|
+
ptr_ptr = ::FFI::MemoryPointer.new :pointer
|
37
|
+
|
36
38
|
Proc.new do
|
37
|
-
ptr_ptr = ::FFI::MemoryPointer.new :pointer
|
38
39
|
ptr_ptr.write_pointer ptr
|
39
40
|
::CZMQ::FFI.zmsg_destroy ptr_ptr
|
40
41
|
end
|
@@ -54,8 +54,9 @@ module CZMQ
|
|
54
54
|
# @param ptr [::FFI::Pointer]
|
55
55
|
# @return [Proc]
|
56
56
|
def self.create_finalizer_for(ptr)
|
57
|
+
ptr_ptr = ::FFI::MemoryPointer.new :pointer
|
58
|
+
|
57
59
|
Proc.new do
|
58
|
-
ptr_ptr = ::FFI::MemoryPointer.new :pointer
|
59
60
|
ptr_ptr.write_pointer ptr
|
60
61
|
::CZMQ::FFI.zosc_destroy ptr_ptr
|
61
62
|
end
|
@@ -33,8 +33,9 @@ module CZMQ
|
|
33
33
|
# @param ptr [::FFI::Pointer]
|
34
34
|
# @return [Proc]
|
35
35
|
def self.create_finalizer_for(ptr)
|
36
|
+
ptr_ptr = ::FFI::MemoryPointer.new :pointer
|
37
|
+
|
36
38
|
Proc.new do
|
37
|
-
ptr_ptr = ::FFI::MemoryPointer.new :pointer
|
38
39
|
ptr_ptr.write_pointer ptr
|
39
40
|
::CZMQ::FFI.zpoller_destroy ptr_ptr
|
40
41
|
end
|
@@ -33,8 +33,9 @@ module CZMQ
|
|
33
33
|
# @param ptr [::FFI::Pointer]
|
34
34
|
# @return [Proc]
|
35
35
|
def self.create_finalizer_for(ptr)
|
36
|
+
ptr_ptr = ::FFI::MemoryPointer.new :pointer
|
37
|
+
|
36
38
|
Proc.new do
|
37
|
-
ptr_ptr = ::FFI::MemoryPointer.new :pointer
|
38
39
|
ptr_ptr.write_pointer ptr
|
39
40
|
::CZMQ::FFI.zproc_destroy ptr_ptr
|
40
41
|
end
|
@@ -33,8 +33,9 @@ module CZMQ
|
|
33
33
|
# @param ptr [::FFI::Pointer]
|
34
34
|
# @return [Proc]
|
35
35
|
def self.create_finalizer_for(ptr)
|
36
|
+
ptr_ptr = ::FFI::MemoryPointer.new :pointer
|
37
|
+
|
36
38
|
Proc.new do
|
37
|
-
ptr_ptr = ::FFI::MemoryPointer.new :pointer
|
38
39
|
ptr_ptr.write_pointer ptr
|
39
40
|
::CZMQ::FFI.zsock_destroy ptr_ptr
|
40
41
|
end
|
@@ -33,8 +33,9 @@ module CZMQ
|
|
33
33
|
# @param ptr [::FFI::Pointer]
|
34
34
|
# @return [Proc]
|
35
35
|
def self.create_finalizer_for(ptr)
|
36
|
+
ptr_ptr = ::FFI::MemoryPointer.new :pointer
|
37
|
+
|
36
38
|
Proc.new do
|
37
|
-
ptr_ptr = ::FFI::MemoryPointer.new :pointer
|
38
39
|
ptr_ptr.write_pointer ptr
|
39
40
|
::CZMQ::FFI.ztimerset_destroy ptr_ptr
|
40
41
|
end
|
@@ -33,8 +33,9 @@ module CZMQ
|
|
33
33
|
# @param ptr [::FFI::Pointer]
|
34
34
|
# @return [Proc]
|
35
35
|
def self.create_finalizer_for(ptr)
|
36
|
+
ptr_ptr = ::FFI::MemoryPointer.new :pointer
|
37
|
+
|
36
38
|
Proc.new do
|
37
|
-
ptr_ptr = ::FFI::MemoryPointer.new :pointer
|
38
39
|
ptr_ptr.write_pointer ptr
|
39
40
|
::CZMQ::FFI.ztrie_destroy ptr_ptr
|
40
41
|
end
|
@@ -33,8 +33,9 @@ module CZMQ
|
|
33
33
|
# @param ptr [::FFI::Pointer]
|
34
34
|
# @return [Proc]
|
35
35
|
def self.create_finalizer_for(ptr)
|
36
|
+
ptr_ptr = ::FFI::MemoryPointer.new :pointer
|
37
|
+
|
36
38
|
Proc.new do
|
37
|
-
ptr_ptr = ::FFI::MemoryPointer.new :pointer
|
38
39
|
ptr_ptr.write_pointer ptr
|
39
40
|
::CZMQ::FFI.zuuid_destroy ptr_ptr
|
40
41
|
end
|
@@ -233,6 +233,7 @@ module CZMQ
|
|
233
233
|
attach_function :zdir_cursize, [:pointer], :pointer, **opts
|
234
234
|
attach_function :zdir_count, [:pointer], :size_t, **opts
|
235
235
|
attach_function :zdir_list, [:pointer], :pointer, **opts
|
236
|
+
attach_function :zdir_list_paths, [:pointer], :pointer, **opts
|
236
237
|
attach_function :zdir_remove, [:pointer, :bool], :void, **opts
|
237
238
|
attach_function :zdir_diff, [:pointer, :pointer, :string], :pointer, **opts
|
238
239
|
attach_function :zdir_resync, [:pointer, :string], :pointer, **opts
|
@@ -383,6 +384,7 @@ module CZMQ
|
|
383
384
|
attach_function :ziflist_address, [:pointer], :string, **opts
|
384
385
|
attach_function :ziflist_broadcast, [:pointer], :string, **opts
|
385
386
|
attach_function :ziflist_netmask, [:pointer], :string, **opts
|
387
|
+
attach_function :ziflist_mac, [:pointer], :string, **opts
|
386
388
|
attach_function :ziflist_print, [:pointer], :void, **opts
|
387
389
|
attach_function :ziflist_new_ipv6, [], :pointer, **opts
|
388
390
|
attach_function :ziflist_reload_ipv6, [:pointer], :void, **opts
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: czmq-ffi-gen
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 1.1.0
|
4
|
+
version: 1.1.0
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Patrik Wenger
|
8
8
|
autorequire:
|
9
9
|
bindir: exe
|
10
10
|
cert_chain: []
|
11
|
-
date:
|
11
|
+
date: 2024-01-03 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: ffi
|
@@ -138,14 +138,14 @@ required_ruby_version: !ruby/object:Gem::Requirement
|
|
138
138
|
requirements:
|
139
139
|
- - ">="
|
140
140
|
- !ruby/object:Gem::Version
|
141
|
-
version:
|
141
|
+
version: 3.0.0
|
142
142
|
required_rubygems_version: !ruby/object:Gem::Requirement
|
143
143
|
requirements:
|
144
|
-
- - "
|
144
|
+
- - ">="
|
145
145
|
- !ruby/object:Gem::Version
|
146
|
-
version:
|
146
|
+
version: '0'
|
147
147
|
requirements: []
|
148
|
-
rubygems_version: 3.
|
148
|
+
rubygems_version: 3.4.17
|
149
149
|
signing_key:
|
150
150
|
specification_version: 4
|
151
151
|
summary: Generated low-level Ruby binding for CZMQ
|