Home| base |src.lib|xml|xmldb| EntitySetText Index

EntitySetText

Syntax
int EntitySetText(struct Entitydata *ptr, int (*text)(char *,int, void *),void *data);
Header
base/entity.h
Library
rxmldb
Description

The EntitySetText function sets the interface function used to process output from the entity codec.

The data structure associated with the enitity codec is pointed to by the argument ptr.

The argument user is a pointer to a function of the form:

int user(char *buffer,int size,void *dptr);

This function is called each time the entity codec either encodes or decodes data.

The argument buffer is a pointer to a buffer containing the encoded or decoded data buffer and the argument size indicates the size of the buffer.

The data argument of the EntitySetText function is passed directly as the dptr argument and allows extra parameters to be passed to the function.

Returns
None
Errors
None
Example
None