czmq-ffi-gen 0.9.2-x64-mingw32
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +7 -0
- data/AUTHORS +1 -0
- data/CHANGES.md +92 -0
- data/Gemfile +2 -0
- data/LICENSE +14 -0
- data/README.md +112 -0
- data/lib/czmq-ffi-gen.rb +7 -0
- data/lib/czmq-ffi-gen/czmq/ffi.rb +1210 -0
- data/lib/czmq-ffi-gen/czmq/ffi/version.rb +15 -0
- data/lib/czmq-ffi-gen/czmq/ffi/zactor.rb +186 -0
- data/lib/czmq-ffi-gen/czmq/ffi/zarmour.rb +286 -0
- data/lib/czmq-ffi-gen/czmq/ffi/zcert.rb +307 -0
- data/lib/czmq-ffi-gen/czmq/ffi/zcertstore.rb +222 -0
- data/lib/czmq-ffi-gen/czmq/ffi/zchunk.rb +388 -0
- data/lib/czmq-ffi-gen/czmq/ffi/zclock.rb +140 -0
- data/lib/czmq-ffi-gen/czmq/ffi/zconfig.rb +442 -0
- data/lib/czmq-ffi-gen/czmq/ffi/zdigest.rb +156 -0
- data/lib/czmq-ffi-gen/czmq/ffi/zdir.rb +283 -0
- data/lib/czmq-ffi-gen/czmq/ffi/zdir_patch.rb +194 -0
- data/lib/czmq-ffi-gen/czmq/ffi/zfile.rb +353 -0
- data/lib/czmq-ffi-gen/czmq/ffi/zframe.rb +359 -0
- data/lib/czmq-ffi-gen/czmq/ffi/zhash.rb +416 -0
- data/lib/czmq-ffi-gen/czmq/ffi/zhashx.rb +659 -0
- data/lib/czmq-ffi-gen/czmq/ffi/ziflist.rb +189 -0
- data/lib/czmq-ffi-gen/czmq/ffi/zlist.rb +365 -0
- data/lib/czmq-ffi-gen/czmq/ffi/zlistx.rb +478 -0
- data/lib/czmq-ffi-gen/czmq/ffi/zloop.rb +396 -0
- data/lib/czmq-ffi-gen/czmq/ffi/zmsg.rb +515 -0
- data/lib/czmq-ffi-gen/czmq/ffi/zpoller.rb +194 -0
- data/lib/czmq-ffi-gen/czmq/ffi/zproc.rb +294 -0
- data/lib/czmq-ffi-gen/czmq/ffi/zsock.rb +3479 -0
- data/lib/czmq-ffi-gen/czmq/ffi/zstr.rb +203 -0
- data/lib/czmq-ffi-gen/czmq/ffi/ztimerset.rb +203 -0
- data/lib/czmq-ffi-gen/czmq/ffi/ztrie.rb +221 -0
- data/lib/czmq-ffi-gen/czmq/ffi/zuuid.rb +227 -0
- data/lib/czmq-ffi-gen/errors.rb +12 -0
- data/lib/czmq-ffi-gen/gem_version.rb +5 -0
- data/lib/czmq-ffi-gen/legacy.rb +16 -0
- data/lib/czmq-ffi-gen/libzmq.rb +18 -0
- data/lib/czmq-ffi-gen/signals.rb +27 -0
- data/lib/czmq-ffi-gen/vendor.rb +5 -0
- data/lib/czmq-ffi-gen/versions.rb +19 -0
- data/vendor/local/bin/inproc_lat.exe +0 -0
- data/vendor/local/bin/inproc_thr.exe +0 -0
- data/vendor/local/bin/libczmq.dll +0 -0
- data/vendor/local/bin/libgcc_s_seh-1.dll +0 -0
- data/vendor/local/bin/libstdc++-6.dll +0 -0
- data/vendor/local/bin/libzmq.dll +0 -0
- data/vendor/local/bin/local_lat.exe +0 -0
- data/vendor/local/bin/local_thr.exe +0 -0
- data/vendor/local/bin/remote_lat.exe +0 -0
- data/vendor/local/bin/remote_thr.exe +0 -0
- data/vendor/local/include/czmq.h +31 -0
- data/vendor/local/include/czmq_library.h +199 -0
- data/vendor/local/include/czmq_prelude.h +641 -0
- data/vendor/local/include/readme.txt +83 -0
- data/vendor/local/include/sha1.h +76 -0
- data/vendor/local/include/sha1.inc_c +335 -0
- data/vendor/local/include/slre.h +92 -0
- data/vendor/local/include/slre.inc_c +660 -0
- data/vendor/local/include/zactor.h +76 -0
- data/vendor/local/include/zarmour.h +114 -0
- data/vendor/local/include/zauth.h +100 -0
- data/vendor/local/include/zauth_v2.h +88 -0
- data/vendor/local/include/zbeacon.h +86 -0
- data/vendor/local/include/zbeacon_v2.h +75 -0
- data/vendor/local/include/zcert.h +136 -0
- data/vendor/local/include/zcertstore.h +100 -0
- data/vendor/local/include/zchunk.h +163 -0
- data/vendor/local/include/zclock.h +73 -0
- data/vendor/local/include/zconfig.h +185 -0
- data/vendor/local/include/zctx.h +107 -0
- data/vendor/local/include/zdigest.h +65 -0
- data/vendor/local/include/zdir.h +149 -0
- data/vendor/local/include/zdir_patch.h +82 -0
- data/vendor/local/include/zfile.h +177 -0
- data/vendor/local/include/zframe.h +176 -0
- data/vendor/local/include/zgossip.h +95 -0
- data/vendor/local/include/zgossip_engine.inc +927 -0
- data/vendor/local/include/zgossip_msg.h +129 -0
- data/vendor/local/include/zhash.h +195 -0
- data/vendor/local/include/zhash_primes.inc +329 -0
- data/vendor/local/include/zhashx.h +298 -0
- data/vendor/local/include/ziflist.h +77 -0
- data/vendor/local/include/zlist.h +158 -0
- data/vendor/local/include/zlistx.h +205 -0
- data/vendor/local/include/zloop.h +168 -0
- data/vendor/local/include/zmonitor.h +73 -0
- data/vendor/local/include/zmonitor_v2.h +56 -0
- data/vendor/local/include/zmq.h +617 -0
- data/vendor/local/include/zmq_utils.h +48 -0
- data/vendor/local/include/zmsg.h +280 -0
- data/vendor/local/include/zmutex.h +55 -0
- data/vendor/local/include/zpoller.h +92 -0
- data/vendor/local/include/zproc.h +168 -0
- data/vendor/local/include/zproxy.h +111 -0
- data/vendor/local/include/zproxy_v2.h +62 -0
- data/vendor/local/include/zrex.h +82 -0
- data/vendor/local/include/zsock.h +912 -0
- data/vendor/local/include/zsock_option.inc +4126 -0
- data/vendor/local/include/zsocket.h +110 -0
- data/vendor/local/include/zsockopt.h +256 -0
- data/vendor/local/include/zstr.h +110 -0
- data/vendor/local/include/zsys.h +386 -0
- data/vendor/local/include/zthread.h +50 -0
- data/vendor/local/include/ztimerset.h +90 -0
- data/vendor/local/include/ztrie.h +106 -0
- data/vendor/local/include/zuuid.h +96 -0
- data/vendor/local/lib/libczmq.dll.a +0 -0
- data/vendor/local/lib/liblibzmq.dll.a +0 -0
- data/vendor/local/lib/libzmq-static.a +0 -0
- data/vendor/local/lib/pkgconfig/libczmq.pc +23 -0
- data/vendor/local/lib/pkgconfig/libzmq.pc +11 -0
- data/vendor/local/share/zmq/AUTHORS.txt +147 -0
- data/vendor/local/share/zmq/COPYING.LESSER.txt +181 -0
- data/vendor/local/share/zmq/COPYING.txt +674 -0
- data/vendor/local/share/zmq/NEWS.txt +978 -0
- metadata +230 -0
@@ -0,0 +1,227 @@
|
|
1
|
+
################################################################################
|
2
|
+
# THIS FILE IS 100% GENERATED BY ZPROJECT; DO NOT EDIT EXCEPT EXPERIMENTALLY #
|
3
|
+
# Read the zproject/README.md for information about making permanent changes. #
|
4
|
+
################################################################################
|
5
|
+
|
6
|
+
module CZMQ
|
7
|
+
module FFI
|
8
|
+
|
9
|
+
# UUID support class
|
10
|
+
# @note This class is 100% generated using zproject.
|
11
|
+
class Zuuid
|
12
|
+
# Raised when one tries to use an instance of {Zuuid} after
|
13
|
+
# the internal pointer to the native object has been nullified.
|
14
|
+
class DestroyedError < RuntimeError; end
|
15
|
+
|
16
|
+
# Boilerplate for self pointer, initializer, and finalizer
|
17
|
+
class << self
|
18
|
+
alias :__new :new
|
19
|
+
end
|
20
|
+
# Attaches the pointer _ptr_ to this instance and defines a finalizer for
|
21
|
+
# it if necessary.
|
22
|
+
# @param ptr [::FFI::Pointer]
|
23
|
+
# @param finalize [Boolean]
|
24
|
+
def initialize(ptr, finalize = true)
|
25
|
+
@ptr = ptr
|
26
|
+
if @ptr.null?
|
27
|
+
@ptr = nil # Remove null pointers so we don't have to test for them.
|
28
|
+
elsif finalize
|
29
|
+
@finalizer = self.class.create_finalizer_for @ptr
|
30
|
+
ObjectSpace.define_finalizer self, @finalizer
|
31
|
+
end
|
32
|
+
end
|
33
|
+
# @param ptr [::FFI::Pointer]
|
34
|
+
# @return [Proc]
|
35
|
+
def self.create_finalizer_for(ptr)
|
36
|
+
Proc.new do
|
37
|
+
ptr_ptr = ::FFI::MemoryPointer.new :pointer
|
38
|
+
ptr_ptr.write_pointer ptr
|
39
|
+
::CZMQ::FFI.zuuid_destroy ptr_ptr
|
40
|
+
end
|
41
|
+
end
|
42
|
+
# @return [Boolean]
|
43
|
+
def null?
|
44
|
+
!@ptr or @ptr.null?
|
45
|
+
end
|
46
|
+
# Return internal pointer
|
47
|
+
# @return [::FFI::Pointer]
|
48
|
+
def __ptr
|
49
|
+
raise DestroyedError unless @ptr
|
50
|
+
@ptr
|
51
|
+
end
|
52
|
+
# So external Libraries can just pass the Object to a FFI function which expects a :pointer
|
53
|
+
alias_method :to_ptr, :__ptr
|
54
|
+
# Nullify internal pointer and return pointer pointer.
|
55
|
+
# @note This detaches the current instance from the native object
|
56
|
+
# and thus makes it unusable.
|
57
|
+
# @return [::FFI::MemoryPointer] the pointer pointing to a pointer
|
58
|
+
# pointing to the native object
|
59
|
+
def __ptr_give_ref
|
60
|
+
raise DestroyedError unless @ptr
|
61
|
+
ptr_ptr = ::FFI::MemoryPointer.new :pointer
|
62
|
+
ptr_ptr.write_pointer @ptr
|
63
|
+
__undef_finalizer if @finalizer
|
64
|
+
@ptr = nil
|
65
|
+
ptr_ptr
|
66
|
+
end
|
67
|
+
# Undefines the finalizer for this object.
|
68
|
+
# @note Only use this if you need to and can guarantee that the native
|
69
|
+
# object will be freed by other means.
|
70
|
+
# @return [void]
|
71
|
+
def __undef_finalizer
|
72
|
+
ObjectSpace.undefine_finalizer self
|
73
|
+
@finalizer = nil
|
74
|
+
end
|
75
|
+
|
76
|
+
# Create a new UUID object.
|
77
|
+
# @return [CZMQ::Zuuid]
|
78
|
+
def self.new()
|
79
|
+
ptr = ::CZMQ::FFI.zuuid_new()
|
80
|
+
__new ptr
|
81
|
+
end
|
82
|
+
|
83
|
+
# Create UUID object from supplied ZUUID_LEN-octet value.
|
84
|
+
# @param source [::FFI::Pointer, #to_ptr]
|
85
|
+
# @return [CZMQ::Zuuid]
|
86
|
+
def self.new_from(source)
|
87
|
+
ptr = ::CZMQ::FFI.zuuid_new_from(source)
|
88
|
+
__new ptr
|
89
|
+
end
|
90
|
+
|
91
|
+
# Destroy a specified UUID object.
|
92
|
+
#
|
93
|
+
# @return [void]
|
94
|
+
def destroy()
|
95
|
+
return unless @ptr
|
96
|
+
self_p = __ptr_give_ref
|
97
|
+
result = ::CZMQ::FFI.zuuid_destroy(self_p)
|
98
|
+
result
|
99
|
+
end
|
100
|
+
|
101
|
+
# Set UUID to new supplied ZUUID_LEN-octet value.
|
102
|
+
#
|
103
|
+
# @param source [::FFI::Pointer, #to_ptr]
|
104
|
+
# @return [void]
|
105
|
+
def set(source)
|
106
|
+
raise DestroyedError unless @ptr
|
107
|
+
self_p = @ptr
|
108
|
+
result = ::CZMQ::FFI.zuuid_set(self_p, source)
|
109
|
+
result
|
110
|
+
end
|
111
|
+
|
112
|
+
# Set UUID to new supplied string value skipping '-' and '{' '}'
|
113
|
+
# optional delimiters. Return 0 if OK, else returns -1.
|
114
|
+
#
|
115
|
+
# @param source [String, #to_s, nil]
|
116
|
+
# @return [Integer]
|
117
|
+
def set_str(source)
|
118
|
+
raise DestroyedError unless @ptr
|
119
|
+
self_p = @ptr
|
120
|
+
result = ::CZMQ::FFI.zuuid_set_str(self_p, source)
|
121
|
+
result
|
122
|
+
end
|
123
|
+
|
124
|
+
# Return UUID binary data.
|
125
|
+
#
|
126
|
+
# @return [::FFI::Pointer]
|
127
|
+
def data()
|
128
|
+
raise DestroyedError unless @ptr
|
129
|
+
self_p = @ptr
|
130
|
+
result = ::CZMQ::FFI.zuuid_data(self_p)
|
131
|
+
result
|
132
|
+
end
|
133
|
+
|
134
|
+
# Return UUID binary size
|
135
|
+
#
|
136
|
+
# @return [Integer]
|
137
|
+
def size()
|
138
|
+
raise DestroyedError unless @ptr
|
139
|
+
self_p = @ptr
|
140
|
+
result = ::CZMQ::FFI.zuuid_size(self_p)
|
141
|
+
result
|
142
|
+
end
|
143
|
+
|
144
|
+
# Returns UUID as string
|
145
|
+
#
|
146
|
+
# @return [String]
|
147
|
+
def str()
|
148
|
+
raise DestroyedError unless @ptr
|
149
|
+
self_p = @ptr
|
150
|
+
result = ::CZMQ::FFI.zuuid_str(self_p)
|
151
|
+
result
|
152
|
+
end
|
153
|
+
|
154
|
+
# Return UUID in the canonical string format: 8-4-4-4-12, in lower
|
155
|
+
# case. Caller does not modify or free returned value. See
|
156
|
+
# http://en.wikipedia.org/wiki/Universally_unique_identifier
|
157
|
+
#
|
158
|
+
# @return [String]
|
159
|
+
def str_canonical()
|
160
|
+
raise DestroyedError unless @ptr
|
161
|
+
self_p = @ptr
|
162
|
+
result = ::CZMQ::FFI.zuuid_str_canonical(self_p)
|
163
|
+
result
|
164
|
+
end
|
165
|
+
|
166
|
+
# Store UUID blob in target array
|
167
|
+
#
|
168
|
+
# @param target [::FFI::Pointer, #to_ptr]
|
169
|
+
# @return [void]
|
170
|
+
def export(target)
|
171
|
+
raise DestroyedError unless @ptr
|
172
|
+
self_p = @ptr
|
173
|
+
result = ::CZMQ::FFI.zuuid_export(self_p, target)
|
174
|
+
result
|
175
|
+
end
|
176
|
+
|
177
|
+
# Check if UUID is same as supplied value
|
178
|
+
#
|
179
|
+
# @param compare [::FFI::Pointer, #to_ptr]
|
180
|
+
# @return [Boolean]
|
181
|
+
def eq(compare)
|
182
|
+
raise DestroyedError unless @ptr
|
183
|
+
self_p = @ptr
|
184
|
+
result = ::CZMQ::FFI.zuuid_eq(self_p, compare)
|
185
|
+
result
|
186
|
+
end
|
187
|
+
|
188
|
+
# Check if UUID is different from supplied value
|
189
|
+
#
|
190
|
+
# @param compare [::FFI::Pointer, #to_ptr]
|
191
|
+
# @return [Boolean]
|
192
|
+
def neq(compare)
|
193
|
+
raise DestroyedError unless @ptr
|
194
|
+
self_p = @ptr
|
195
|
+
result = ::CZMQ::FFI.zuuid_neq(self_p, compare)
|
196
|
+
result
|
197
|
+
end
|
198
|
+
|
199
|
+
# Make copy of UUID object; if uuid is null, or memory was exhausted,
|
200
|
+
# returns null.
|
201
|
+
#
|
202
|
+
# @return [Zuuid]
|
203
|
+
def dup()
|
204
|
+
raise DestroyedError unless @ptr
|
205
|
+
self_p = @ptr
|
206
|
+
result = ::CZMQ::FFI.zuuid_dup(self_p)
|
207
|
+
result = Zuuid.__new result, false
|
208
|
+
result
|
209
|
+
end
|
210
|
+
|
211
|
+
# Self test of this class.
|
212
|
+
#
|
213
|
+
# @param verbose [Boolean]
|
214
|
+
# @return [void]
|
215
|
+
def self.test(verbose)
|
216
|
+
verbose = !(0==verbose||!verbose) # boolean
|
217
|
+
result = ::CZMQ::FFI.zuuid_test(verbose)
|
218
|
+
result
|
219
|
+
end
|
220
|
+
end
|
221
|
+
end
|
222
|
+
end
|
223
|
+
|
224
|
+
################################################################################
|
225
|
+
# THIS FILE IS 100% GENERATED BY ZPROJECT; DO NOT EDIT EXCEPT EXPERIMENTALLY #
|
226
|
+
# Read the zproject/README.md for information about making permanent changes. #
|
227
|
+
################################################################################
|
@@ -0,0 +1,12 @@
|
|
1
|
+
# This is only used to be able to read get the last ZMQ error.
|
2
|
+
module CZMQ::FFI::Errors
|
3
|
+
# @return [String] error code of the last (ZMQ) error
|
4
|
+
def self.errno
|
5
|
+
CZMQ::FFI::LibZMQ.zmq_errno
|
6
|
+
end
|
7
|
+
|
8
|
+
# @return [String] the string representation of the last (ZMQ) error
|
9
|
+
def self.strerror
|
10
|
+
CZMQ::FFI::LibZMQ.zmq_strerror(CZMQ::FFI::LibZMQ.zmq_errno)
|
11
|
+
end
|
12
|
+
end
|
@@ -0,0 +1,16 @@
|
|
1
|
+
module CZMQ::FFI
|
2
|
+
if available?
|
3
|
+
opts = {
|
4
|
+
blocking: true # only necessary on MRI to deal with the GIL.
|
5
|
+
}
|
6
|
+
|
7
|
+
##
|
8
|
+
# NOTE: this is to support the current stable release, CZMQ 3.0.2
|
9
|
+
#
|
10
|
+
# attach zsys_has_curve (as zproc_has_curve), if zproc_has_curve isn't
|
11
|
+
# available
|
12
|
+
unless methods.include? :zproc_has_curve
|
13
|
+
attach_function :zproc_has_curve, :zsys_has_curve, [], :bool, **opts
|
14
|
+
end
|
15
|
+
end
|
16
|
+
end
|
@@ -0,0 +1,18 @@
|
|
1
|
+
# Bare minimum to get some things directly from the ZMQ library itself
|
2
|
+
# (without the CZMQ wrapper).
|
3
|
+
module CZMQ::FFI::LibZMQ
|
4
|
+
extend ::FFI::Library
|
5
|
+
|
6
|
+
lib_name = 'libzmq'
|
7
|
+
lib_paths = ['/usr/local/lib', '/opt/local/lib', '/usr/lib64']
|
8
|
+
.map { |path| "#{path}/#{lib_name}.#{::FFI::Platform::LIBSUFFIX}" }
|
9
|
+
ffi_lib lib_paths + [lib_name]
|
10
|
+
|
11
|
+
opts = {
|
12
|
+
blocking: true # only necessary on MRI to deal with the GIL.
|
13
|
+
}
|
14
|
+
|
15
|
+
attach_function :zmq_strerror, [:int], :string, **opts
|
16
|
+
attach_function :zmq_errno, [], :int, **opts
|
17
|
+
attach_function :zmq_version, [:pointer, :pointer, :pointer], :void, **opts
|
18
|
+
end
|
@@ -0,0 +1,27 @@
|
|
1
|
+
module CZMQ
|
2
|
+
module FFI
|
3
|
+
|
4
|
+
attach_function :zsys_handler_set, [:pointer], :void, blocking: true
|
5
|
+
|
6
|
+
# This is used to disable CZMQ's signal handling so blocking calls can be
|
7
|
+
# interrupted using Ctrl-C.
|
8
|
+
module Signals
|
9
|
+
module_function
|
10
|
+
|
11
|
+
@default_handling_disabled = false
|
12
|
+
|
13
|
+
# Disables default SIGINT/SIGTERM handling of CZMQ.
|
14
|
+
# @return [void]
|
15
|
+
def disable_default_handling
|
16
|
+
FFI.zsys_handler_set(nil)
|
17
|
+
@default_handling_disabled = true
|
18
|
+
end
|
19
|
+
|
20
|
+
# @return [Boolean] whether the CZMQ's default signal handling has been
|
21
|
+
# disabled
|
22
|
+
def default_handling_disabled?
|
23
|
+
@default_handling_disabled
|
24
|
+
end
|
25
|
+
end
|
26
|
+
end
|
27
|
+
end
|
@@ -0,0 +1,19 @@
|
|
1
|
+
require_relative "gem_version"
|
2
|
+
require_relative "libzmq"
|
3
|
+
|
4
|
+
module CZMQ
|
5
|
+
module FFI
|
6
|
+
# CZMQ library version
|
7
|
+
CZMQ_VERSION = VERSION
|
8
|
+
|
9
|
+
# @deprecated Use {CZMQ_VERSION} instead.
|
10
|
+
LIBRARY_VERSION = CZMQ_VERSION
|
11
|
+
|
12
|
+
# ZMQ library version
|
13
|
+
ZMQ_VERSION = begin
|
14
|
+
version = Array.new(3) { ::FFI::MemoryPointer.new(:int) }
|
15
|
+
LibZMQ.zmq_version(*version)
|
16
|
+
version.map { |n| n.get_int(0) }.join(".")
|
17
|
+
end
|
18
|
+
end
|
19
|
+
end
|
Binary file
|
Binary file
|
Binary file
|
Binary file
|
Binary file
|
Binary file
|
Binary file
|
Binary file
|
Binary file
|
Binary file
|
@@ -0,0 +1,31 @@
|
|
1
|
+
/* =========================================================================
|
2
|
+
CZMQ - a high-level binding in C for ZeroMQ
|
3
|
+
|
4
|
+
Copyright (c) the Contributors as noted in the AUTHORS file.
|
5
|
+
This file is part of CZMQ, the high-level C binding for 0MQ:
|
6
|
+
http://czmq.zeromq.org.
|
7
|
+
|
8
|
+
This Source Code Form is subject to the terms of the Mozilla Public
|
9
|
+
License, v. 2.0. If a copy of the MPL was not distributed with this
|
10
|
+
file, You can obtain one at http://mozilla.org/MPL/2.0/.
|
11
|
+
=========================================================================
|
12
|
+
*/
|
13
|
+
|
14
|
+
#ifndef __CZMQ_H_INCLUDED__
|
15
|
+
#define __CZMQ_H_INCLUDED__
|
16
|
+
|
17
|
+
// These are signatures for handler functions that customize the
|
18
|
+
// behavior of CZMQ containers. These are shared between all CZMQ
|
19
|
+
// container types.
|
20
|
+
|
21
|
+
// -- destroy an item
|
22
|
+
typedef void (czmq_destructor) (void **item);
|
23
|
+
// -- duplicate an item
|
24
|
+
typedef void *(czmq_duplicator) (const void *item);
|
25
|
+
// - compare two items, for sorting
|
26
|
+
typedef int (czmq_comparator) (const void *item1, const void *item2);
|
27
|
+
|
28
|
+
// Include the project library file
|
29
|
+
#include "czmq_library.h"
|
30
|
+
|
31
|
+
#endif
|
@@ -0,0 +1,199 @@
|
|
1
|
+
/* =========================================================================
|
2
|
+
czmq - generated layer of public API
|
3
|
+
|
4
|
+
Copyright (c) the Contributors as noted in the AUTHORS file.
|
5
|
+
This file is part of CZMQ, the high-level C binding for 0MQ:
|
6
|
+
http://czmq.zeromq.org.
|
7
|
+
|
8
|
+
This Source Code Form is subject to the terms of the Mozilla Public
|
9
|
+
License, v. 2.0. If a copy of the MPL was not distributed with this
|
10
|
+
file, You can obtain one at http://mozilla.org/MPL/2.0/.
|
11
|
+
|
12
|
+
################################################################################
|
13
|
+
# THIS FILE IS 100% GENERATED BY ZPROJECT; DO NOT EDIT EXCEPT EXPERIMENTALLY #
|
14
|
+
# Read the zproject/README.md for information about making permanent changes. #
|
15
|
+
################################################################################
|
16
|
+
=========================================================================
|
17
|
+
*/
|
18
|
+
|
19
|
+
#ifndef CZMQ_LIBRARY_H_INCLUDED
|
20
|
+
#define CZMQ_LIBRARY_H_INCLUDED
|
21
|
+
|
22
|
+
// Set up environment for the application
|
23
|
+
#include "czmq_prelude.h"
|
24
|
+
|
25
|
+
// External dependencies
|
26
|
+
#include <zmq.h>
|
27
|
+
|
28
|
+
// CZMQ version macros for compile-time API detection
|
29
|
+
#define CZMQ_VERSION_MAJOR 3
|
30
|
+
#define CZMQ_VERSION_MINOR 0
|
31
|
+
#define CZMQ_VERSION_PATCH 3
|
32
|
+
|
33
|
+
#define CZMQ_MAKE_VERSION(major, minor, patch) \
|
34
|
+
((major) * 10000 + (minor) * 100 + (patch))
|
35
|
+
#define CZMQ_VERSION \
|
36
|
+
CZMQ_MAKE_VERSION(CZMQ_VERSION_MAJOR, CZMQ_VERSION_MINOR, CZMQ_VERSION_PATCH)
|
37
|
+
|
38
|
+
#if defined (__WINDOWS__)
|
39
|
+
# if defined CZMQ_STATIC
|
40
|
+
# define CZMQ_EXPORT
|
41
|
+
# elif defined CZMQ_INTERNAL_BUILD
|
42
|
+
# if defined DLL_EXPORT
|
43
|
+
# define CZMQ_EXPORT __declspec(dllexport)
|
44
|
+
# else
|
45
|
+
# define CZMQ_EXPORT
|
46
|
+
# endif
|
47
|
+
# elif defined CZMQ_EXPORTS
|
48
|
+
# define CZMQ_EXPORT __declspec(dllexport)
|
49
|
+
# else
|
50
|
+
# define CZMQ_EXPORT __declspec(dllimport)
|
51
|
+
# endif
|
52
|
+
#else
|
53
|
+
# define CZMQ_EXPORT
|
54
|
+
#endif
|
55
|
+
|
56
|
+
// Opaque class structures to allow forward references
|
57
|
+
// These classes are stable or legacy and built in all releases
|
58
|
+
typedef struct _zactor_t zactor_t;
|
59
|
+
#define ZACTOR_T_DEFINED
|
60
|
+
typedef struct _zarmour_t zarmour_t;
|
61
|
+
#define ZARMOUR_T_DEFINED
|
62
|
+
typedef struct _zcert_t zcert_t;
|
63
|
+
#define ZCERT_T_DEFINED
|
64
|
+
typedef struct _zcertstore_t zcertstore_t;
|
65
|
+
#define ZCERTSTORE_T_DEFINED
|
66
|
+
typedef struct _zchunk_t zchunk_t;
|
67
|
+
#define ZCHUNK_T_DEFINED
|
68
|
+
typedef struct _zclock_t zclock_t;
|
69
|
+
#define ZCLOCK_T_DEFINED
|
70
|
+
typedef struct _zconfig_t zconfig_t;
|
71
|
+
#define ZCONFIG_T_DEFINED
|
72
|
+
typedef struct _zdigest_t zdigest_t;
|
73
|
+
#define ZDIGEST_T_DEFINED
|
74
|
+
typedef struct _zdir_t zdir_t;
|
75
|
+
#define ZDIR_T_DEFINED
|
76
|
+
typedef struct _zdir_patch_t zdir_patch_t;
|
77
|
+
#define ZDIR_PATCH_T_DEFINED
|
78
|
+
typedef struct _zfile_t zfile_t;
|
79
|
+
#define ZFILE_T_DEFINED
|
80
|
+
typedef struct _zframe_t zframe_t;
|
81
|
+
#define ZFRAME_T_DEFINED
|
82
|
+
typedef struct _zhash_t zhash_t;
|
83
|
+
#define ZHASH_T_DEFINED
|
84
|
+
typedef struct _zhashx_t zhashx_t;
|
85
|
+
#define ZHASHX_T_DEFINED
|
86
|
+
typedef struct _ziflist_t ziflist_t;
|
87
|
+
#define ZIFLIST_T_DEFINED
|
88
|
+
typedef struct _zlist_t zlist_t;
|
89
|
+
#define ZLIST_T_DEFINED
|
90
|
+
typedef struct _zlistx_t zlistx_t;
|
91
|
+
#define ZLISTX_T_DEFINED
|
92
|
+
typedef struct _zloop_t zloop_t;
|
93
|
+
#define ZLOOP_T_DEFINED
|
94
|
+
typedef struct _zmsg_t zmsg_t;
|
95
|
+
#define ZMSG_T_DEFINED
|
96
|
+
typedef struct _zpoller_t zpoller_t;
|
97
|
+
#define ZPOLLER_T_DEFINED
|
98
|
+
typedef struct _zsock_t zsock_t;
|
99
|
+
#define ZSOCK_T_DEFINED
|
100
|
+
typedef struct _zstr_t zstr_t;
|
101
|
+
#define ZSTR_T_DEFINED
|
102
|
+
typedef struct _zuuid_t zuuid_t;
|
103
|
+
#define ZUUID_T_DEFINED
|
104
|
+
typedef struct _zauth_t zauth_t;
|
105
|
+
#define ZAUTH_T_DEFINED
|
106
|
+
typedef struct _zbeacon_t zbeacon_t;
|
107
|
+
#define ZBEACON_T_DEFINED
|
108
|
+
typedef struct _zgossip_t zgossip_t;
|
109
|
+
#define ZGOSSIP_T_DEFINED
|
110
|
+
typedef struct _zmonitor_t zmonitor_t;
|
111
|
+
#define ZMONITOR_T_DEFINED
|
112
|
+
typedef struct _zproxy_t zproxy_t;
|
113
|
+
#define ZPROXY_T_DEFINED
|
114
|
+
typedef struct _zrex_t zrex_t;
|
115
|
+
#define ZREX_T_DEFINED
|
116
|
+
typedef struct _zsys_t zsys_t;
|
117
|
+
#define ZSYS_T_DEFINED
|
118
|
+
typedef struct _zauth_v2_t zauth_v2_t;
|
119
|
+
#define ZAUTH_V2_T_DEFINED
|
120
|
+
typedef struct _zbeacon_v2_t zbeacon_v2_t;
|
121
|
+
#define ZBEACON_V2_T_DEFINED
|
122
|
+
typedef struct _zctx_t zctx_t;
|
123
|
+
#define ZCTX_T_DEFINED
|
124
|
+
typedef struct _zmonitor_v2_t zmonitor_v2_t;
|
125
|
+
#define ZMONITOR_V2_T_DEFINED
|
126
|
+
typedef struct _zmutex_t zmutex_t;
|
127
|
+
#define ZMUTEX_T_DEFINED
|
128
|
+
typedef struct _zproxy_v2_t zproxy_v2_t;
|
129
|
+
#define ZPROXY_V2_T_DEFINED
|
130
|
+
typedef struct _zsocket_t zsocket_t;
|
131
|
+
#define ZSOCKET_T_DEFINED
|
132
|
+
typedef struct _zsockopt_t zsockopt_t;
|
133
|
+
#define ZSOCKOPT_T_DEFINED
|
134
|
+
typedef struct _zthread_t zthread_t;
|
135
|
+
#define ZTHREAD_T_DEFINED
|
136
|
+
// Draft classes are by default not built in stable releases
|
137
|
+
#ifdef CZMQ_BUILD_DRAFT_API
|
138
|
+
typedef struct _zproc_t zproc_t;
|
139
|
+
#define ZPROC_T_DEFINED
|
140
|
+
typedef struct _ztimerset_t ztimerset_t;
|
141
|
+
#define ZTIMERSET_T_DEFINED
|
142
|
+
typedef struct _ztrie_t ztrie_t;
|
143
|
+
#define ZTRIE_T_DEFINED
|
144
|
+
#endif // CZMQ_BUILD_DRAFT_API
|
145
|
+
|
146
|
+
|
147
|
+
// Public classes, each with its own header file
|
148
|
+
#include "zactor.h"
|
149
|
+
#include "zarmour.h"
|
150
|
+
#include "zcert.h"
|
151
|
+
#include "zcertstore.h"
|
152
|
+
#include "zchunk.h"
|
153
|
+
#include "zclock.h"
|
154
|
+
#include "zconfig.h"
|
155
|
+
#include "zdigest.h"
|
156
|
+
#include "zdir.h"
|
157
|
+
#include "zdir_patch.h"
|
158
|
+
#include "zfile.h"
|
159
|
+
#include "zframe.h"
|
160
|
+
#include "zhash.h"
|
161
|
+
#include "zhashx.h"
|
162
|
+
#include "ziflist.h"
|
163
|
+
#include "zlist.h"
|
164
|
+
#include "zlistx.h"
|
165
|
+
#include "zloop.h"
|
166
|
+
#include "zmsg.h"
|
167
|
+
#include "zpoller.h"
|
168
|
+
#include "zsock.h"
|
169
|
+
#include "zstr.h"
|
170
|
+
#include "zuuid.h"
|
171
|
+
#include "zauth.h"
|
172
|
+
#include "zbeacon.h"
|
173
|
+
#include "zgossip.h"
|
174
|
+
#include "zmonitor.h"
|
175
|
+
#include "zproxy.h"
|
176
|
+
#include "zrex.h"
|
177
|
+
#include "zsys.h"
|
178
|
+
#include "zauth_v2.h"
|
179
|
+
#include "zbeacon_v2.h"
|
180
|
+
#include "zctx.h"
|
181
|
+
#include "zmonitor_v2.h"
|
182
|
+
#include "zmutex.h"
|
183
|
+
#include "zproxy_v2.h"
|
184
|
+
#include "zsocket.h"
|
185
|
+
#include "zsockopt.h"
|
186
|
+
#include "zthread.h"
|
187
|
+
#ifdef CZMQ_BUILD_DRAFT_API
|
188
|
+
#include "zproc.h"
|
189
|
+
#include "ztimerset.h"
|
190
|
+
#include "ztrie.h"
|
191
|
+
#endif // CZMQ_BUILD_DRAFT_API
|
192
|
+
|
193
|
+
#endif
|
194
|
+
/*
|
195
|
+
################################################################################
|
196
|
+
# THIS FILE IS 100% GENERATED BY ZPROJECT; DO NOT EDIT EXCEPT EXPERIMENTALLY #
|
197
|
+
# Read the zproject/README.md for information about making permanent changes. #
|
198
|
+
################################################################################
|
199
|
+
*/
|