Rollback commit 9636f4ef1bbedad61e80dd621b800f4bf5a8c30e
[cl-zmq.git] / package.lisp
blobd1c9c741f4d5822ded7265a79846ec54cb976e4e
1 ;; Copyright (c) 2009, 2010 Vitaly Mayatskikh <v.mayatskih@gmail.com>
2 ;;
3 ;; This file is part of 0MQ.
4 ;;
5 ;; 0MQ is free software; you can redistribute it and/or modify it under
6 ;; the terms of the Lesser GNU General Public License as published by
7 ;; the Free Software Foundation; either version 3 of the License, or
8 ;; (at your option) any later version.
9 ;;
10 ;; 0MQ is distributed in the hope that it will be useful,
11 ;; but WITHOUT ANY WARRANTY; without even the implied warranty of
12 ;; MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
13 ;; Lesser GNU General Public License for more details.
15 ;; You should have received a copy of the Lesser GNU General Public License
16 ;; along with this program. If not, see <http://www.gnu.org/licenses/>.
18 (defpackage #:zeromq
19 (:nicknames :zmq)
20 (:use :cl :cffi)
21 (:shadow #:sleep #:close)
22 (:export
23 ;; constants
24 #:affinity
25 #:delimiter
26 #:downstream
27 #:efsm
28 #:emthread
29 #:enocompatproto
30 #:hausnumero
31 #:hwm
32 #:identity
33 #:lwm
34 #:max-vsm-size
35 #:mcast-loop
36 #:noblock
37 #:noflush
38 #:p2p
39 #:poll
40 #:pollin
41 #:pollout
42 #:pollerr
43 #:pub
44 #:rate
45 #:recovery-ivl
46 #:rep
47 #:req
48 #:sub
49 #:subscribe
50 #:swap
51 #:unsubscribe
52 #:upstream
53 #:vsm
55 #:events
57 ;; structures
58 #:msg
59 #:pollitem
61 ;; functions
62 #:bind
63 #:close
64 #:connect
65 #:flush
66 #:init
67 #:msg-close
68 #:msg-copy
69 #:msg-data-as-array
70 #:msg-data-as-is
71 #:msg-data-as-string
72 #:msg-init
73 #:msg-init-data
74 #:msg-init-size
75 #:msg-move
76 #:msg-size
77 #:msg-type
78 #:poll
79 #:pollitem-events
80 #:pollitem-fd
81 #:pollitem-revents
82 #:pollitem-socket
83 #:recv
84 #:send
85 #:setsockopt
86 #:sleep
87 #:socket
88 #:stopwatch-start
89 #:stopwatch-stop
90 #:strerror
91 #:term
92 #:version
94 ;; macros
95 #:with-context
96 #:with-polls
97 #:with-socket
98 #:with-stopwatch
100 ;; conditions
101 #:error-again))
103 (in-package :zeromq)
105 (eval-when (:compile-toplevel :load-toplevel :execute)
106 (define-foreign-library zeromq
107 (:unix (:or "libzmq.so.0.0.0" "libzmq.so"))
108 (t "libzmq")))
110 (use-foreign-library zeromq)