gi-glib-0.2.46.13: GLib bindings

CopyrightWill Thompson, Iñaki García Etxebarria and Jonas Platte
LicenseLGPL-2.1
MaintainerIñaki García Etxebarria (garetxe@gmail.com)
Safe HaskellNone
LanguageHaskell2010

GI.GLib.Functions

Contents

Description

 

Synopsis

Methods

access

asciiDigitValue

asciiDtostr

asciiFormatd

asciiStrcasecmp

asciiStrdown

asciiStrncasecmp

asciiStrtod

asciiStrtoll

asciiStrtoull

asciiStrup

asciiTolower

asciiToupper

asciiXdigitValue

assertWarning

assertWarning :: MonadIO m => Text -> Text -> Int32 -> Text -> Text -> m () Source

assertionMessage

assertionMessage :: MonadIO m => Text -> Text -> Int32 -> Text -> Text -> m () Source

assertionMessageCmpstr

assertionMessageCmpstr :: MonadIO m => Text -> Text -> Int32 -> Text -> Text -> Text -> Text -> Text -> m () Source

assertionMessageError

assertionMessageExpr

atexit

atexit :: MonadIO m => VoidFunc -> m () Source

Deprecated: (Since version 2.32)It is best to avoid g_atexit().

atomicIntAdd

atomicIntAnd

atomicIntCompareAndExchange

atomicIntDecAndTest

atomicIntExchangeAndAdd

atomicIntExchangeAndAdd :: MonadIO m => Int32 -> Int32 -> m Int32 Source

Deprecated: (Since version 2.30)Use g_atomic_int_add() instead.

atomicIntGet

atomicIntInc

atomicIntOr

atomicIntSet

atomicIntXor

atomicPointerAdd

atomicPointerAnd

atomicPointerCompareAndExchange

atomicPointerOr

atomicPointerSet

atomicPointerSet :: MonadIO m => Ptr () -> Ptr () -> m () Source

atomicPointerXor

base64Decode

base64DecodeInplace

base64Encode

basename

basename :: MonadIO m => Text -> m Text Source

Deprecated: (Since version 2.2)Use g_path_get_basename() instead, but notice that g_path_get_basename() allocates new memory for the returned string, unlike this function which returns a pointer into the argument.

bitLock

bitLock :: MonadIO m => Int32 -> Int32 -> m () Source

bitNthLsf

bitNthMsf

bitStorage

bitTrylock

bitUnlock

bitUnlock :: MonadIO m => Int32 -> Int32 -> m () Source

buildFilenamev

buildPathv

chdir

checkVersion

childWatchAdd

childWatchSourceNew

clearError

close

close :: MonadIO m => Int32 -> m () Source

computeChecksumForBytes

computeChecksumForData

computeChecksumForString

computeHmacForData

computeHmacForString

convert

convertErrorQuark

convertWithFallback

convertWithIconv

datalistClear

datalistGetFlags

datalistIdReplaceData

datalistIdSetDataFull

datalistInit

datalistSetFlags

datalistUnsetFlags

datasetDestroy

datasetDestroy :: MonadIO m => Ptr () -> m () Source

datasetIdSetDataFull

dcgettext

dgettext

directEqual

directEqual :: MonadIO m => Maybe (Ptr ()) -> Maybe (Ptr ()) -> m Bool Source

directHash

dngettext

doubleEqual

doubleEqual :: MonadIO m => Ptr () -> Ptr () -> m Bool Source

doubleHash

dpgettext

dpgettext2

environGetenv

environSetenv

environSetenv :: MonadIO m => Maybe [Text] -> Text -> Text -> Bool -> m [Text] Source

environUnsetenv

fileErrorFromErrno

fileErrorQuark

fileGetContents

fileOpenTmp

fileReadLink

fileSetContents

fileTest

filenameDisplayBasename

filenameDisplayName

filenameFromUri

filenameFromUtf8

filenameToUri

filenameToUtf8

findProgramInPath

formatSize

formatSizeForDisplay

formatSizeForDisplay :: MonadIO m => Int64 -> m Text Source

Deprecated: (Since version 2.30)This function is broken due to its use of SI suffixes to denote IEC units. Use g_format_size() instead.

formatSizeFull

free

free :: MonadIO m => Maybe (Ptr ()) -> m () Source

getApplicationName

getCharset

getCodeset

getCurrentDir

getCurrentTime

getEnviron

getFilenameCharsets

getHomeDir

getHostName

getLanguageNames

getLocaleVariants

getMonotonicTime

getNumProcessors

getPrgname

getRealName

getRealTime

getSystemConfigDirs

getSystemDataDirs

getTmpDir

getUserCacheDir

getUserConfigDir

getUserDataDir

getUserName

getUserRuntimeDir

getUserSpecialDir

getenv

hostnameIsAsciiEncoded

hostnameIsIpAddress

hostnameIsNonAscii

hostnameToAscii

hostnameToUnicode

iconv

iconv :: MonadIO m => IConv -> Text -> Word64 -> Text -> Word64 -> m Word64 Source

idleAdd

idleRemoveByData

idleSourceNew

int64Equal

int64Equal :: MonadIO m => Ptr () -> Ptr () -> m Bool Source

int64Hash

intEqual

intEqual :: MonadIO m => Ptr () -> Ptr () -> m Bool Source

intHash

intHash :: MonadIO m => Ptr () -> m Word32 Source

internStaticString

internString

ioAddWatch

ioCreateWatch

listenv

localeFromUtf8

localeToUtf8

logDefaultHandler

logDefaultHandler :: MonadIO m => Text -> [LogLevelFlags] -> Text -> Ptr () -> m () Source

logRemoveHandler

logSetAlwaysFatal

logSetFatalMask

logSetHandler

mainCurrentSource

mainDepth

markupErrorQuark

markupEscapeText

memIsSystemMalloc

memIsSystemMalloc :: MonadIO m => m Bool Source

Deprecated: (Since version 2.46)GLib always uses the system malloc, so this function alwaysreturns %TRUE.

memProfile

memProfile :: MonadIO m => m () Source

Deprecated: (Since version 2.46)Use other memory profiling tools instead

memSetVtable

memSetVtable :: MonadIO m => MemVTable -> m () Source

Deprecated: (Since version 2.46)Use other memory profiling tools instead

mkdirWithParents

mkdtemp

mkdtemp :: MonadIO m => [Char] -> m Text Source

mkdtempFull

mkstemp

mkstempFull

nullifyPointer

nullifyPointer :: MonadIO m => Ptr () -> m () Source

onErrorQuery

onErrorStackTrace

optionErrorQuark

parseDebugString

pathGetBasename

pathGetDirname

pathIsAbsolute

pathSkipRoot

patternMatch

patternMatchSimple

patternMatchString

pointerBitLock

pointerBitLock :: MonadIO m => Ptr () -> Int32 -> m () Source

pointerBitTrylock

pointerBitUnlock

pointerBitUnlock :: MonadIO m => Ptr () -> Int32 -> m () Source

poll

propagateError

quarkFromStaticString

quarkFromString

quarkToString

quarkTryString

randomDouble

randomDoubleRange

randomInt

randomIntRange

randomSetSeed

reloadUserSpecialDirsCache

returnIfFailWarning

rmdir

setApplicationName

setErrorLiteral

setPrgname

setPrgname :: MonadIO m => Text -> m () Source

setenv

setenv :: MonadIO m => Text -> Text -> Bool -> m Bool Source

shellErrorQuark

shellParseArgv

shellQuote

shellUnquote

sliceFree1

sliceFree1 :: MonadIO m => Word64 -> Ptr () -> m () Source

sliceFreeChainWithOffset

sliceGetConfig

sliceGetConfigState

sliceSetConfig

spacedPrimesClosest

spawnAsync

spawnAsyncWithPipes

spawnCheckExitStatus

spawnClosePid

spawnCommandLineAsync

spawnCommandLineSync

spawnErrorQuark

spawnExitErrorQuark

spawnSync

stpcpy

stpcpy :: MonadIO m => Text -> Text -> m Text Source

strEqual

strEqual :: MonadIO m => Ptr () -> Ptr () -> m Bool Source

strHasPrefix

strHasSuffix

strHash

strHash :: MonadIO m => Ptr () -> m Word32 Source

strIsAscii

strMatchString

strToAscii

strTokenizeAndFold

strcanon

strcanon :: MonadIO m => Text -> Text -> Int8 -> m Text Source

strcasecmp

strcasecmp :: MonadIO m => Text -> Text -> m Int32 Source

Deprecated: (Since version 2.2)See g_strncasecmp() for a discussion of why this function is deprecated and how to replace it.

strchomp

strchug

strcmp0

strcompress

strdelimit

strdown

strdown :: MonadIO m => Text -> m Text Source

Deprecated: (Since version 2.2)This function is totally broken for the reasons discussedin the g_strncasecmp() docs - use g_ascii_strdown() or g_utf8_strdown()instead.

strdup

strerror

strescape

strfreev

strfreev :: MonadIO m => Text -> m () Source

stringNew

stringNewLen

stringSizedNew

stripContext

strjoinv

strlcat

strlcpy

strncasecmp

strncasecmp :: MonadIO m => Text -> Text -> Word32 -> m Int32 Source

Deprecated: (Since version 2.2)The problem with g_strncasecmp() is that it does the comparison by calling toupper()/tolower(). These functions are locale-specific and operate on single bytes. However, it is impossible to handle things correctly from an internationalization standpoint by operating on bytes, since characters may be multibyte. Thus g_strncasecmp() is broken if your string is guaranteed to be ASCII, since it is locale-sensitive, and it's broken if your string is localized, since it doesn't work on many encodings at all, including UTF-8, EUC-JP, etc. There are therefore two replacement techniques: g_ascii_strncasecmp(), which only works on ASCII and is not locale-sensitive, and g_utf8_casefold() followed by strcmp() on the resulting strings, which is good for case-insensitive sorting of UTF-8.

strndup

strnfill

strreverse

strrstr

strrstrLen

strsignal

strstrLen

strtod

strup

strup :: MonadIO m => Text -> m Text Source

Deprecated: (Since version 2.2)This function is totally broken for the reasons discussed in the g_strncasecmp() docs - use g_ascii_strup() or g_utf8_strup() instead.

strvContains

strvGetType

strvLength

testAddDataFunc

testAddFunc

testAssertExpectedMessagesInternal

testBug

testBug :: MonadIO m => Text -> m () Source

testBugBase

testBugBase :: MonadIO m => Text -> m () Source

testExpectMessage

testFail

testFail :: MonadIO m => m () Source

testFailed

testGetDir

testIncomplete

testLogTypeName

testQueueDestroy

testQueueFree

testQueueFree :: MonadIO m => Ptr () -> m () Source

testRandDouble

testRandDoubleRange

testRandInt

testRandIntRange

testRun

testRunSuite

testSetNonfatalAssertions

testSkip

testSkip :: MonadIO m => Maybe Text -> m () Source

testSubprocess

testTimerElapsed

testTimerLast

testTimerStart

testTrapAssertions

testTrapAssertions :: MonadIO m => Text -> Text -> Int32 -> Text -> Word64 -> Text -> m () Source

testTrapFork

testTrapFork :: MonadIO m => Word64 -> [TestTrapFlags] -> m Bool Source

Deprecated: This function is implemented only on Unix platforms,and is not always reliable due to problems inherent infork-without-exec. Use g_test_trap_subprocess() instead.

testTrapHasPassed

testTrapReachedTimeout

testTrapSubprocess

timeoutAdd

timeoutAddSeconds

timeoutSourceNew

timeoutSourceNewSeconds

unicharBreakType

unicharCombiningClass

unicharCompose

unicharDecompose

unicharDigitValue

unicharGetMirrorChar

unicharGetScript

unicharIsalnum

unicharIsalpha

unicharIscntrl

unicharIsdefined

unicharIsdigit

unicharIsgraph

unicharIslower

unicharIsmark

unicharIsprint

unicharIspunct

unicharIsspace

unicharIstitle

unicharIsupper

unicharIswide

unicharIswideCjk

unicharIsxdigit

unicharIszerowidth

unicharToUtf8

unicharTolower

unicharTotitle

unicharToupper

unicharType

unicharValidate

unicharXdigitValue

unicodeCanonicalDecomposition

unicodeCanonicalDecomposition :: MonadIO m => Char -> Word64 -> m Char Source

Deprecated: (Since version 2.30)Use the more flexible g_unichar_fully_decompose() instead.

unicodeCanonicalOrdering

unicodeScriptFromIso15924

unicodeScriptToIso15924

unixErrorQuark

unixFdAddFull

unixFdSourceNew

unixOpenPipe

unixSetFdNonblocking

unixSignalAdd

unixSignalSourceNew

unlink

unsetenv

unsetenv :: MonadIO m => Text -> m () Source

uriEscapeString

uriListExtractUris

uriParseScheme

uriUnescapeSegment

uriUnescapeString

usleep

usleep :: MonadIO m => Word64 -> m () Source

utf8Casefold

utf8Collate

utf8CollateKey

utf8CollateKeyForFilename

utf8FindNextChar

utf8FindPrevChar

utf8GetChar

utf8GetCharValidated

utf8Normalize

utf8OffsetToPointer

utf8PointerToOffset

utf8PrevChar

utf8Strchr

utf8Strdown

utf8Strlen

utf8Strncpy

utf8Strrchr

utf8Strreverse

utf8Strup

utf8Substring

utf8Validate

variantGetGtype

warnMessage

warnMessage :: MonadIO m => Text -> Text -> Int32 -> Text -> Text -> m () Source