You are here: SwitchKit® Development Environment Programmer’s Guide > 6 Handler Functions > sk_removeChannelHandler()

sk_removeChannelHandler()

Description

The sk_removeChannelHandler() function removes the handler function aHandlerFunc from the stack for the specified span and channel. This function is also available as skts_removeChannelHandler().

Syntax

int sk_removeChannelHandler(int aSpan, int aChannel, void *aTag, HandlerFunc* aHandlerFunc);

Threadsafe Syntax

int skts_removeChannelHandler(int aSpan, int aChannel, void *aTag, HandlerFunc* aHandlerFunc);

Parameters

The function parameters are shown in the table below.

Argument | Description
--- | ---
aSpan | sp specifies the span.
aChannel | ch specifies the channel.
aTag | An application defined pointer which will be returned to the application when a handler is invoked.
aHandlerFunc | A pointer to a function that is designed to handle messages.

Return Values

Possible return values for this function:

SK_NOT_PRESENT | The specified handler function is not in the handler stack of the channel.