Skip to content

Commit

Permalink
The device function was missing in zeromq-api.lisp
Browse files Browse the repository at this point in the history
Also were added constants related to zmq_device().
  • Loading branch information
solvip authored and vtl committed Jul 1, 2010
1 parent 19c271d commit 44c48dc
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 0 deletions.
3 changes: 3 additions & 0 deletions zeromq-api.lisp
Original file line number Diff line number Diff line change
Expand Up @@ -196,4 +196,7 @@ The string must be freed with FOREIGN-STRING-FREE."
(mem-ref minor :int)
(mem-ref patch :int))))

(defun device (device insocket outsocket)
(%device device insocket outsocket))

;
8 changes: 8 additions & 0 deletions zeromq.lisp
Original file line number Diff line number Diff line change
Expand Up @@ -192,6 +192,14 @@

(defcfun ("zmq_errno" errno) :int)

;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
;; Devices
;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;

(defconstant streamer 1)
(defconstant forwarder 2)
(defconstant queue 3)

(defcfun* ("zmq_device" %device) :int
(device :int)
(insocket :pointer)
Expand Down

0 comments on commit 44c48dc

Please sign in to comment.