SLPAttrCallback Subroutine

Purpose

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

Syntax

   typedef SLPBoolean SLPAttrCallback(SLPHandle hSLP,
                                      const char* pcAttrList,
                                      SLPError errCode,
                                      void *pvCookie);

Description

The SLPAttrCallback type is the type of the callback function parameter to the SLPFindAttrs() function.

The pcAttrList parameter contains the requested attributes as a comma-separated list (or is empty if no attributes matched the original tag list).

Parameters

Item Description
hSLP The SLPHandle used to initiate the operation.
pcAttrList A character buffer containing a comma-separated, null-terminated list of attribute ID/value assignments, in SLP wire format: "(attr-id=attr-value-list)"
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.