+;; Copyright (C) 2009 Olof-Joachim Frahm
+
+;; This program is free software; you can redistribute it and/or modify it
+;; under the terms of the GNU General Public License as published by the
+;; Free Software Foundation; either version 3 of the License, or (at your
+;; option) any later version.
+
+;; This program is distributed in the hope that it will be useful, but
+;; WITHOUT ANY WARRANTY; without even the implied warranty of
+;; MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General
+;; Public License for more details.
+
+;; You should have received a copy of the GNU General Public License along
+;; with this program; if not, see <http://www.gnu.org/licenses/>.
+
(in-package #:cl-notify)
(defbitfield (inotify-flag :uint32)
;;;; basic wrapping of the API
-(defun read-raw-event (stream)
+(defun read-raw-event-from-stream (stream)
"Reads a raw event from the inotify stream."
(let* ((event (binary-types:read-binary 'inotify-event stream))
(len (binary-types:read-binary 'binary-types:u32 stream)))
(defun read-event-from-stream (stream)
"Reads a event from the inotify stream and converts bitmasks on reading."
- (let ((event (read-raw-event stream)))
+ (let ((event (read-raw-event-from-stream stream)))
(with-slots (mask) event
(setf mask (foreign-bitfield-symbols 'inotify-flag mask)))
event))