gi-glib-2.0.17: GLib bindings

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

GI.GLib.Structs.IOFuncs

Contents

- Exported types
- Properties
  - ioClose
  - ioCreateWatch
  - ioFree
  - ioGetFlags
  - ioRead
  - ioSeek
  - ioSetFlags
  - ioWrite

Description

A table of functions used to handle different types of `IOChannel` in a generic way.

Synopsis

- newtype IOFuncs = IOFuncs (ManagedPtr IOFuncs)
- newZeroIOFuncs :: MonadIO m => m IOFuncs
- noIOFuncs :: Maybe IOFuncs
- clearIOFuncsIoClose :: MonadIO m => IOFuncs -> m ()
- getIOFuncsIoClose :: MonadIO m => IOFuncs -> m (Maybe IOFuncsIoCloseFieldCallback)
- setIOFuncsIoClose :: MonadIO m => IOFuncs -> FunPtr C_IOFuncsIoCloseFieldCallback -> m ()
- clearIOFuncsIoCreateWatch :: MonadIO m => IOFuncs -> m ()
- getIOFuncsIoCreateWatch :: MonadIO m => IOFuncs -> m (Maybe IOFuncsIoCreateWatchFieldCallback)
- setIOFuncsIoCreateWatch :: MonadIO m => IOFuncs -> FunPtr C_IOFuncsIoCreateWatchFieldCallback -> m ()
- clearIOFuncsIoFree :: MonadIO m => IOFuncs -> m ()
- getIOFuncsIoFree :: MonadIO m => IOFuncs -> m (Maybe IOFuncsIoFreeFieldCallback)
- setIOFuncsIoFree :: MonadIO m => IOFuncs -> FunPtr C_IOFuncsIoFreeFieldCallback -> m ()
- clearIOFuncsIoGetFlags :: MonadIO m => IOFuncs -> m ()
- getIOFuncsIoGetFlags :: MonadIO m => IOFuncs -> m (Maybe IOFuncsIoGetFlagsFieldCallback)
- setIOFuncsIoGetFlags :: MonadIO m => IOFuncs -> FunPtr C_IOFuncsIoGetFlagsFieldCallback -> m ()
- clearIOFuncsIoRead :: MonadIO m => IOFuncs -> m ()
- getIOFuncsIoRead :: MonadIO m => IOFuncs -> m (Maybe IOFuncsIoReadFieldCallback)
- setIOFuncsIoRead :: MonadIO m => IOFuncs -> FunPtr C_IOFuncsIoReadFieldCallback -> m ()
- clearIOFuncsIoSeek :: MonadIO m => IOFuncs -> m ()
- getIOFuncsIoSeek :: MonadIO m => IOFuncs -> m (Maybe IOFuncsIoSeekFieldCallback)
- setIOFuncsIoSeek :: MonadIO m => IOFuncs -> FunPtr C_IOFuncsIoSeekFieldCallback -> m ()
- clearIOFuncsIoSetFlags :: MonadIO m => IOFuncs -> m ()
- getIOFuncsIoSetFlags :: MonadIO m => IOFuncs -> m (Maybe IOFuncsIoSetFlagsFieldCallback)
- setIOFuncsIoSetFlags :: MonadIO m => IOFuncs -> FunPtr C_IOFuncsIoSetFlagsFieldCallback -> m ()
- clearIOFuncsIoWrite :: MonadIO m => IOFuncs -> m ()
- getIOFuncsIoWrite :: MonadIO m => IOFuncs -> m (Maybe IOFuncsIoWriteFieldCallback)
- setIOFuncsIoWrite :: MonadIO m => IOFuncs -> FunPtr C_IOFuncsIoWriteFieldCallback -> m ()

# Exported types

newtype IOFuncs Source #

Memory-managed wrapper type.

Constructors

IOFuncs (ManagedPtr IOFuncs) |

Instances

WrappedPtr IOFuncs Source # |
Instance details Defined in GI.GLib.Structs.IOFuncs Methods wrappedPtrCalloc :: IO (Ptr IOFuncs) Source # wrappedPtrCopy :: IOFuncs -> IO IOFuncs Source # wrappedPtrFree :: Maybe (FunPtr (Ptr IOFuncs -> IO ())) Source #
tag ~ AttrSet => Constructible IOFuncs tag Source # |
Instance details Defined in GI.GLib.Structs.IOFuncs Methods new :: MonadIO m => (ManagedPtr IOFuncs -> IOFuncs) -> [AttrOp IOFuncs tag] -> m IOFuncs Source #

newZeroIOFuncs :: MonadIO m => m IOFuncs Source #

Construct a `IOFuncs` struct initialized to zero.

noIOFuncs :: Maybe IOFuncs Source #

A convenience alias for `Nothing` :: `Maybe` `IOFuncs`.

# Properties

## ioClose

No description available in the introspection data.

clearIOFuncsIoClose :: MonadIO m => IOFuncs -> m () Source #

Set the value of the “`io_close`” field to `Nothing`. When overloading is enabled, this is equivalent to

    clear #ioClose

getIOFuncsIoClose :: MonadIO m => IOFuncs -> m (Maybe IOFuncsIoCloseFieldCallback) Source #

Get the value of the “`io_close`” field. When overloading is enabled, this is equivalent to

    get iOFuncs #ioClose

setIOFuncsIoClose :: MonadIO m => IOFuncs -> FunPtr C_IOFuncsIoCloseFieldCallback -> m () Source #

Set the value of the “`io_close`” field. When overloading is enabled, this is equivalent to

    set iOFuncs [ #ioClose := value ]

## ioCreateWatch

No description available in the introspection data.

clearIOFuncsIoCreateWatch :: MonadIO m => IOFuncs -> m () Source #

Set the value of the “`io_create_watch`” field to `Nothing`. When overloading is enabled, this is equivalent to

    clear #ioCreateWatch

getIOFuncsIoCreateWatch :: MonadIO m => IOFuncs -> m (Maybe IOFuncsIoCreateWatchFieldCallback) Source #

Get the value of the “`io_create_watch`” field. When overloading is enabled, this is equivalent to

    get iOFuncs #ioCreateWatch

setIOFuncsIoCreateWatch :: MonadIO m => IOFuncs -> FunPtr C_IOFuncsIoCreateWatchFieldCallback -> m () Source #

Set the value of the “`io_create_watch`” field. When overloading is enabled, this is equivalent to

    set iOFuncs [ #ioCreateWatch := value ]

## ioFree

No description available in the introspection data.

clearIOFuncsIoFree :: MonadIO m => IOFuncs -> m () Source #

Set the value of the “`io_free`” field to `Nothing`. When overloading is enabled, this is equivalent to

    clear #ioFree

getIOFuncsIoFree :: MonadIO m => IOFuncs -> m (Maybe IOFuncsIoFreeFieldCallback) Source #

Get the value of the “`io_free`” field. When overloading is enabled, this is equivalent to

    get iOFuncs #ioFree

setIOFuncsIoFree :: MonadIO m => IOFuncs -> FunPtr C_IOFuncsIoFreeFieldCallback -> m () Source #

Set the value of the “`io_free`” field. When overloading is enabled, this is equivalent to

    set iOFuncs [ #ioFree := value ]

## ioGetFlags

No description available in the introspection data.

clearIOFuncsIoGetFlags :: MonadIO m => IOFuncs -> m () Source #

Set the value of the “`io_get_flags`” field to `Nothing`. When overloading is enabled, this is equivalent to

    clear #ioGetFlags

getIOFuncsIoGetFlags :: MonadIO m => IOFuncs -> m (Maybe IOFuncsIoGetFlagsFieldCallback) Source #

Get the value of the “`io_get_flags`” field. When overloading is enabled, this is equivalent to

    get iOFuncs #ioGetFlags

setIOFuncsIoGetFlags :: MonadIO m => IOFuncs -> FunPtr C_IOFuncsIoGetFlagsFieldCallback -> m () Source #

Set the value of the “`io_get_flags`” field. When overloading is enabled, this is equivalent to

    set iOFuncs [ #ioGetFlags := value ]

## ioRead

No description available in the introspection data.

clearIOFuncsIoRead :: MonadIO m => IOFuncs -> m () Source #

Set the value of the “`io_read`” field to `Nothing`. When overloading is enabled, this is equivalent to

    clear #ioRead

getIOFuncsIoRead :: MonadIO m => IOFuncs -> m (Maybe IOFuncsIoReadFieldCallback) Source #

Get the value of the “`io_read`” field. When overloading is enabled, this is equivalent to

    get iOFuncs #ioRead

setIOFuncsIoRead :: MonadIO m => IOFuncs -> FunPtr C_IOFuncsIoReadFieldCallback -> m () Source #

Set the value of the “`io_read`” field. When overloading is enabled, this is equivalent to

    set iOFuncs [ #ioRead := value ]

## ioSeek

No description available in the introspection data.

clearIOFuncsIoSeek :: MonadIO m => IOFuncs -> m () Source #

Set the value of the “`io_seek`” field to `Nothing`. When overloading is enabled, this is equivalent to

    clear #ioSeek

getIOFuncsIoSeek :: MonadIO m => IOFuncs -> m (Maybe IOFuncsIoSeekFieldCallback) Source #

Get the value of the “`io_seek`” field. When overloading is enabled, this is equivalent to

    get iOFuncs #ioSeek

setIOFuncsIoSeek :: MonadIO m => IOFuncs -> FunPtr C_IOFuncsIoSeekFieldCallback -> m () Source #

Set the value of the “`io_seek`” field. When overloading is enabled, this is equivalent to

    set iOFuncs [ #ioSeek := value ]

## ioSetFlags

No description available in the introspection data.

clearIOFuncsIoSetFlags :: MonadIO m => IOFuncs -> m () Source #

Set the value of the “`io_set_flags`” field to `Nothing`. When overloading is enabled, this is equivalent to

    clear #ioSetFlags

getIOFuncsIoSetFlags :: MonadIO m => IOFuncs -> m (Maybe IOFuncsIoSetFlagsFieldCallback) Source #

Get the value of the “`io_set_flags`” field. When overloading is enabled, this is equivalent to

    get iOFuncs #ioSetFlags

setIOFuncsIoSetFlags :: MonadIO m => IOFuncs -> FunPtr C_IOFuncsIoSetFlagsFieldCallback -> m () Source #

Set the value of the “`io_set_flags`” field. When overloading is enabled, this is equivalent to

    set iOFuncs [ #ioSetFlags := value ]

## ioWrite

No description available in the introspection data.

clearIOFuncsIoWrite :: MonadIO m => IOFuncs -> m () Source #

Set the value of the “`io_write`” field to `Nothing`. When overloading is enabled, this is equivalent to

    clear #ioWrite

getIOFuncsIoWrite :: MonadIO m => IOFuncs -> m (Maybe IOFuncsIoWriteFieldCallback) Source #

Get the value of the “`io_write`” field. When overloading is enabled, this is equivalent to

    get iOFuncs #ioWrite

setIOFuncsIoWrite :: MonadIO m => IOFuncs -> FunPtr C_IOFuncsIoWriteFieldCallback -> m () Source #

Set the value of the “`io_write`” field. When overloading is enabled, this is equivalent to

    set iOFuncs [ #ioWrite := value ]