Skip to content

Commit

Permalink
Merge remote branch 'jonochang/master' into zdevice
Browse files Browse the repository at this point in the history
Conflicts:
	version.txt
  • Loading branch information
andrewvc committed Mar 14, 2011
2 parents 35182d4 + 8304d0f commit 4847a3b
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 0 deletions.
3 changes: 3 additions & 0 deletions lib/ffi-rzmq/wrapper.rb
Original file line number Diff line number Diff line change
Expand Up @@ -78,6 +78,9 @@ class Msg < FFI::Struct
attach_function :zmq_recv, [:pointer, :pointer, :int], :int
attach_function :zmq_close, [:pointer], :int

#experimental zmq_devices support
attach_function :zmq_device, [:int, :pointer, :pointer], :int

# Poll api
@blocking = true
attach_function :zmq_poll, [:pointer, :int, :long], :int
Expand Down
5 changes: 5 additions & 0 deletions lib/ffi-rzmq/zmq.rb
Original file line number Diff line number Diff line change
Expand Up @@ -63,6 +63,11 @@ module ZMQ
ENODEV = Errno::ENODEV::Errno
EFAULT = Errno::EFAULT::Errno

# Device Types
STREAMER = 1
FORWARDER = 2
QUEUE = 3

# ZMQ errors
HAUSNUMERO = 156384712
EMTHREAD = (HAUSNUMERO + 50)
Expand Down

0 comments on commit 4847a3b

Please sign in to comment.