nxLibWaitForType

Navigation:  NxLib API > C Interface > Waiting >

nxLibWaitForType

Previous pageReturn to chapter overviewNext page

Wait for a type change to the specified item. When the condition to wait for is already satisfied initially, the function returns immediately.

Signature

void nxLibWaitForType (NXLIBERR* result, NXLIBSTR itemPath, NXLIBINT nxLibItemType, NXLIBBOOL waitForEqual);

Parameters

result

The error code of the operation. If the item is deleted during the wait operation, the return code will be NxLibItemInexistent.

itemPath

The path of the item to wait for.

nxLibItemType

The constant corresponding to the type to wait for. See also nxLibGetType.

waitForEqual

When true, the function waits until the item has the specified type, otherwise it waits until the item has a different type than the one specified.

Return Value

none