packages feed

bindings-libv4l2 (empty) → 0.1

raw patch · 4 files changed

+77/−0 lines, 4 filesdep +basedep +bindings-DSLsetup-changed

Dependencies added: base, bindings-DSL

Files

+ Bindings/LibV4L2.hsc view
@@ -0,0 +1,19 @@+{-# LANGUAGE ForeignFunctionInterface #-}+#include <bindings.dsl.h>+#include <libv4l2.h>+-- | Bindings for libv4l2 on Linux, wrapping:+--   <file:///usr/include/libv4l2.h>+module Bindings.LibV4L2 where+#strict_import+#ccall v4l2_open , Ptr CChar -> CInt -> CInt -> IO CInt+#ccall v4l2_close , CInt -> IO CInt+#ccall v4l2_dup , CInt -> IO CInt+#ccall v4l2_ioctl , CInt -> CULong -> Ptr a -> IO CInt+#ccall v4l2_read , CInt -> Ptr a -> CSize -> IO CInt+#ccall v4l2_mmap , Ptr a -> CSize -> CInt -> CInt -> CInt -> Int64 -> IO (Ptr a)+#ccall v4l2_munmap , Ptr a -> CSize -> IO CInt+#ccall v4l2_set_control , CInt -> CInt -> CInt -> IO CInt+#ccall v4l2_get_control , CInt -> CInt -> IO CInt+#ccall v4l2_fd_open , CInt -> CInt -> IO CInt+#num V4L2_DISABLE_CONVERSION+#num V4L2_ENABLE_ENUM_FMT_EMULATION
+ LICENSE view
@@ -0,0 +1,30 @@+Copyright (c)2011, Claude Heiland-Allen++All rights reserved.++Redistribution and use in source and binary forms, with or without+modification, are permitted provided that the following conditions are met:++    * Redistributions of source code must retain the above copyright+      notice, this list of conditions and the following disclaimer.++    * Redistributions in binary form must reproduce the above+      copyright notice, this list of conditions and the following+      disclaimer in the documentation and/or other materials provided+      with the distribution.++    * Neither the name of Claude Heiland-Allen nor the names of other+      contributors may be used to endorse or promote products derived+      from this software without specific prior written permission.++THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS+"AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT+LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR+A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT+OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,+SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT+LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,+DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY+THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT+(INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE+OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
+ Setup.hs view
@@ -0,0 +1,2 @@+import Distribution.Simple+main = defaultMain
+ bindings-libv4l2.cabal view
@@ -0,0 +1,26 @@+Name:                bindings-libv4l2+Version:             0.1+Synopsis:            bindings to libv4l2 for Linux++Description:+  Bindings for libv4l2 on Linux, wrapping:+  <file:///usr/include/libv4l2.h>++Homepage:            https://gitorious.org/hsv4l2+License:             BSD3+License-file:        LICENSE+Author:              Claude Heiland-Allen+Maintainer:          claudiusmaximus@goto10.org+Category:            System++Build-type:          Simple++Cabal-version:       >=1.2++Library+  Exposed-modules:     Bindings.LibV4L2+  Build-depends:+    base >= 3 && < 5,+    bindings-DSL >= 1.0.7 && < 1.1+  Build-tools:         hsc2hs+  Extra-libraries:     v4l2