gi-ggit-1.0.7: libgit2-glib bindings

CopyrightWill Thompson Iñaki García Etxebarria and Jonas Platte
LicenseLGPL-2.1
MaintainerIñaki García Etxebarria (inaki@blueleaf.cc)
Safe HaskellNone
LanguageHaskell2010

GI.Ggit.Structs.Note

Contents

Description

Represents a note object.

Synopsis

Exported types

newtype Note Source #

Memory-managed wrapper type.

Constructors

Note (ManagedPtr Note) 
Instances
BoxedObject Note Source # 
Instance details

Defined in GI.Ggit.Structs.Note

Methods

boxedType :: Note -> IO GType #

noNote :: Maybe Note Source #

A convenience alias for Nothing :: Maybe Note.

Methods

getId

noteGetId Source #

Arguments

:: (HasCallStack, MonadIO m) 
=> Note

note: a Note.

-> m (Maybe OId)

Returns: the object's id or Nothing.

Gets the note object's id.

getMessage

noteGetMessage Source #

Arguments

:: (HasCallStack, MonadIO m) 
=> Note

note: a Note.

-> m (Maybe Text)

Returns: the note message or Nothing.

Gets the note message.

ref

noteRef Source #

Arguments

:: (HasCallStack, MonadIO m) 
=> Note

note: a Note.

-> m (Maybe Note)

Returns: a Note or Nothing.

Atomically increments the reference count of note by one. This function is MT-safe and may be called from any thread.

unref

noteUnref Source #

Arguments

:: (HasCallStack, MonadIO m) 
=> Note

note: a Note.

-> m () 

Atomically decrements the reference count of note by one. If the reference count drops to 0, note is freed.