Require CFFI, not CFFI-GROVEL.
[cl-zmq.git] / package.lisp
blob7979690b9c43c6c8089b383883b93aad4744b91e
1 ;; Copyright 2009 Vitaly Mayatskikh <v.mayatskih@gmail.com>
2 ;;
3 ;; This file is a part of CL-ZMQ
4 ;;
5 ;; CL-ZMQ is free software: you can redistribute it and/or modify
6 ;; it under the terms of the 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 ;; CL-ZMQ 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 ;; GNU General Public License for more details.
15 ;; You should have received a copy of the GNU General Public License
16 ;; along with this program. If not, see <http://www.gnu.org/licenses/>.
18 (defpackage #:cl-zmq
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 #:pub
43 #:rate
44 #:recovery-ivl
45 #:rep
46 #:req
47 #:sub
48 #:subscribe
49 #:swap
50 #:unsubscribe
51 #:upstream
52 #:vsm
54 #:events
56 ;; structures
57 #:msg
58 #:pollitem
60 ;; functions
61 #:bind
62 #:close
63 #:connect
64 #:flush
65 #:init
66 #:msg-close
67 #:msg-copy
68 #:msg-data-as-array
69 #:msg-data-as-string
70 #:msg-init
71 #:msg-init-data
72 #:msg-init-size
73 #:msg-move
74 #:msg-size
75 #:msg-type
76 #:poll
77 #:pollitem-events
78 #:pollitem-fd
79 #:pollitem-revents
80 #:pollitem-socket
81 #:recv
82 #:send
83 #:setsockopt
84 #:sleep
85 #:socket
86 #:stopwatch-start
87 #:stopwatch-stop
88 #:strerror
89 #:term
91 ;; macros
92 #:with-context
93 #:with-polls
94 #:with-socket
95 #:with-stopwatch
97 ;; conditions
98 #:error-again))
100 (in-package :cl-zmq)
102 (eval-when (:compile-toplevel :load-toplevel :execute)
103 (define-foreign-library zmq
104 (:unix (:or "libzmq.so.0.0.0" "libzmq.so"))
105 (t "libzmq")))
107 (use-foreign-library zmq)