Fixed modelines.
[iolib/alendvai.git] / io.multiplex / pkgdcl.lisp
blob9986a66c5a16f98ac597d6931b05ec3315ecb6d6
1 ;;;; -*- Mode: Lisp; Syntax: ANSI-Common-Lisp; indent-tabs-mode: nil -*-
2 ;;;
3 ;;; package.lisp --- Package definition.
4 ;;;
5 ;;; Copyright (C) 2006-2008, Stelian Ionescu <sionescu@common-lisp.net>
6 ;;;
7 ;;; This code is free software; you can redistribute it and/or
8 ;;; modify it under the terms of the version 2.1 of
9 ;;; the GNU Lesser General Public License as published by
10 ;;; the Free Software Foundation, as clarified by the
11 ;;; preamble found here:
12 ;;; http://opensource.franz.com/preamble.html
13 ;;;
14 ;;; This program is distributed in the hope that it will be useful,
15 ;;; but WITHOUT ANY WARRANTY; without even the implied warranty of
16 ;;; MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
17 ;;; GNU General Public License for more details.
18 ;;;
19 ;;; You should have received a copy of the GNU Lesser General
20 ;;; Public License along with this library; if not, write to the
21 ;;; Free Software Foundation, Inc., 51 Franklin St, Fifth Floor,
22 ;;; Boston, MA 02110-1301, USA
24 (in-package :common-lisp-user)
26 (defpackage :io.multiplex
27 (:nicknames #:iomux)
28 (:use #:common-lisp :cffi :alexandria :series)
29 (:import-from #:osicat-posix #:defsyscall #:bzero
30 #:file-descriptor-designator
31 #:timeval #:sec #:usec)
32 (:export
33 ;; Classes
34 #:event
35 #:event-base
36 #:multiplexer
37 #:select-multiplexer
38 #:poll-multiplexer
39 #+bsd #:kqueue-multiplexer
40 #+linux #:epoll-multiplexer
41 #:fd-event
42 #:priority-queue
44 ;; Event-base Operations
45 #:*available-multiplexers*
46 #:*default-multiplexer*
47 #:*default-event-loop-timeout*
48 #:add-fd
49 #:add-timer
50 #:event-base-empty-p
51 #:event-dispatch
52 #:exit-event-loop
53 #:remove-event
54 #:remove-fd
55 #:with-event-base
57 ;; Operations on FDs
58 #:fd-readablep
59 #:fd-ready-p
60 #:fd-writablep
61 #:poll-error
62 #:poll-error-fd
63 #:poll-error-identifier
64 #:wait-until-fd-ready
65 #:poll-timeout
66 #:poll-timeout-fd
67 #:poll-timeout-event-type
70 (in-package :io.multiplex)
72 (series::install)