Copyright | Will Thompson, Iñaki García Etxebarria and Jonas Platte |
---|---|
License | LGPL-2.1 |
Maintainer | Iñaki García Etxebarria (garetxe@gmail.com) |
Safe Haskell | None |
Language | Haskell2010 |
The following functions allow you to detect the media type of an unknown stream.
- newtype TypeFind = TypeFind (ForeignPtr TypeFind)
- newZeroTypeFind :: MonadIO m => m TypeFind
- noTypeFind :: Maybe TypeFind
- data TypeFindGetLengthMethodInfo
- typeFindGetLength :: MonadIO m => TypeFind -> m Word64
- data TypeFindPeekMethodInfo
- typeFindPeek :: MonadIO m => TypeFind -> Int64 -> m ByteString
- typeFindRegister :: (MonadIO m, PluginK a) => Maybe a -> Text -> Word32 -> TypeFindFunction -> Maybe Text -> Caps -> m Bool
- data TypeFindSuggestMethodInfo
- typeFindSuggest :: MonadIO m => TypeFind -> Word32 -> Caps -> m ()
- typeFindReadData :: TypeFind -> IO (Ptr ())
Exported types
((~) * info (ResolveTypeFindMethod t TypeFind), MethodInfo * info TypeFind p) => IsLabel t (TypeFind -> p) Source | |
((~) * info (ResolveTypeFindMethod t TypeFind), MethodInfo * info TypeFind p) => IsLabelProxy t (TypeFind -> p) Source | |
((~) (TYPE Lifted) signature (Word32 -> Caps -> m ()), MonadIO m) => MethodInfo (TYPE Lifted) TypeFindSuggestMethodInfo TypeFind signature Source | |
((~) (TYPE Lifted) signature (Int64 -> m ByteString), MonadIO m) => MethodInfo (TYPE Lifted) TypeFindPeekMethodInfo TypeFind signature Source | |
((~) (TYPE Lifted) signature (m Word64), MonadIO m) => MethodInfo (TYPE Lifted) TypeFindGetLengthMethodInfo TypeFind signature Source | |
newZeroTypeFind :: MonadIO m => m TypeFind Source
Construct a TypeFind
struct initialized to zero.
Methods
typeFindGetLength
data TypeFindGetLengthMethodInfo Source
((~) (TYPE Lifted) signature (m Word64), MonadIO m) => MethodInfo (TYPE Lifted) TypeFindGetLengthMethodInfo TypeFind signature Source | |
typeFindGetLength :: MonadIO m => TypeFind -> m Word64 Source
typeFindPeek
data TypeFindPeekMethodInfo Source
((~) (TYPE Lifted) signature (Int64 -> m ByteString), MonadIO m) => MethodInfo (TYPE Lifted) TypeFindPeekMethodInfo TypeFind signature Source | |
typeFindPeek :: MonadIO m => TypeFind -> Int64 -> m ByteString Source
typeFindRegister
typeFindRegister :: (MonadIO m, PluginK a) => Maybe a -> Text -> Word32 -> TypeFindFunction -> Maybe Text -> Caps -> m Bool Source
typeFindSuggest
Properties
Data
typeFindReadData :: TypeFind -> IO (Ptr ()) Source