SLPSrvTypeCallback Subroutine

Purpose

Returns the same callback type as the SLPFindSrvTypes() function.

Syntax

typedef SLPBoolean SLPSrvTypeCallback(SLPHandle hSLP,
                                         const char* pcSrvTypes,
                                         SLPError errCode,
                                         void *pvCookie);

Description

The SLPSrvTypeCallback type is the type of the callback function parameter to the SLPFindSrvTypes() function.

Parameters

Item Description
hSLP The SLPHandle used to initiate the operation.
pcSrvTypes A character buffer containing a comma-separated, null-terminated list of service types.
errCode An error code indicating if an error occurred during the operation. The callback should check this error code before processing the parameters. If the error code is other than SLP_OK, then the API library can choose to terminate the outstanding operation.
pvCookie Memory passed down from the client code that called the original API function, starting the operation. Can be NULL.

Return Values

The client code should return SLP_TRUE if more data is desired; otherwise SLP_FALSE is returned.