Table of Contents

Class Hook

Namespace
GLib
Assembly
GLib-2.0.dll
public sealed class Hook
Inheritance
Hook
Inherited Members

Constructors

Hook()

public Hook()

Hook(HookOwnedHandle)

public Hook(HookOwnedHandle handle)

Parameters

handle HookOwnedHandle

Properties

Flags

public uint Flags { get; set; }

Property Value

uint

Handle

public HookOwnedHandle Handle { get; }

Property Value

HookOwnedHandle

HookId

public ulong HookId { get; set; }

Property Value

ulong

RefCount

public uint RefCount { get; set; }

Property Value

uint

Methods

Alloc(HookList)

public static Hook Alloc(HookList hookList)

Parameters

hookList HookList

Returns

Hook

CompareIds(Hook)

public int CompareIds(Hook sibling)

Parameters

sibling Hook

Returns

int

Destroy(HookList, ulong)

public static bool Destroy(HookList hookList, ulong hookId)

Parameters

hookList HookList
hookId ulong

Returns

bool
public static void DestroyLink(HookList hookList, Hook hook)

Parameters

hookList HookList
hook Hook

Equals(Hook?)

public bool Equals(Hook? other)

Parameters

other Hook

Returns

bool

Equals(object?)

Determines whether the specified object is equal to the current object.

public override bool Equals(object? obj)

Parameters

obj object

The object to compare with the current object.

Returns

bool

true if the specified object is equal to the current object; otherwise, false.

Find(HookList, bool, HookFindFunc)

public static Hook Find(HookList hookList, bool needValids, HookFindFunc func)

Parameters

hookList HookList
needValids bool
func HookFindFunc

Returns

Hook

FindData(HookList, bool, IntPtr)

public static Hook FindData(HookList hookList, bool needValids, IntPtr data)

Parameters

hookList HookList
needValids bool
data IntPtr

Returns

Hook

FindFunc(HookList, bool, IntPtr)

public static Hook FindFunc(HookList hookList, bool needValids, IntPtr func)

Parameters

hookList HookList
needValids bool
func IntPtr

Returns

Hook

FindFuncData(HookList, bool, IntPtr, IntPtr)

public static Hook FindFuncData(HookList hookList, bool needValids, IntPtr func, IntPtr data)

Parameters

hookList HookList
needValids bool
func IntPtr
data IntPtr

Returns

Hook

FirstValid(HookList, bool)

public static Hook FirstValid(HookList hookList, bool mayBeInCall)

Parameters

hookList HookList
mayBeInCall bool

Returns

Hook

Free(HookList, Hook)

public static void Free(HookList hookList, Hook hook)

Parameters

hookList HookList
hook Hook

Get(HookList, ulong)

public static Hook Get(HookList hookList, ulong hookId)

Parameters

hookList HookList
hookId ulong

Returns

Hook

GetHashCode()

Serves as the default hash function.

public override int GetHashCode()

Returns

int

A hash code for the current object.

InsertBefore(HookList, Hook?, Hook)

public static void InsertBefore(HookList hookList, Hook? sibling, Hook hook)

Parameters

hookList HookList
sibling Hook
hook Hook

InsertSorted(HookList, Hook, HookCompareFunc)

public static void InsertSorted(HookList hookList, Hook hook, HookCompareFunc func)

Parameters

hookList HookList
hook Hook
func HookCompareFunc

NextValid(HookList, Hook, bool)

public static Hook NextValid(HookList hookList, Hook hook, bool mayBeInCall)

Parameters

hookList HookList
hook Hook
mayBeInCall bool

Returns

Hook

Prepend(HookList, Hook)

public static void Prepend(HookList hookList, Hook hook)

Parameters

hookList HookList
hook Hook

Ref(HookList, Hook)

public static Hook Ref(HookList hookList, Hook hook)

Parameters

hookList HookList
hook Hook

Returns

Hook

Unref(HookList, Hook)

public static void Unref(HookList hookList, Hook hook)

Parameters

hookList HookList
hook Hook