VIRT_AddResultElement

Adds a complete element to the result buffer.

Service:VFS

Syntax

#include <nssPubs.h>

STATUS VIRT_AddResultElement (
   VirtInfo_s  *virtInfo,
   utf8_t      *tagName,
   utf8_t      *data,
   BOOL         newLine);

Parameters

virtInfo

Points to the structure that is passed in and updated.

tagName

Points to the NULL-terminated tag name that is to be used for both the beginning and ending tags of the element.

data

Points to a NULL-terminated string that contains the contents of the element.

newLine

Specifies if a new line character should be added to the result buffer:

  • TRUE Add a new line character
  • FALSE Do not add a new line character

Return Values

The return status should either be zOK or a valid NSS error code.