ODBC Server Reference Manual

Stored Procedures
HP NonStop ODBC Server Reference Manual429151-002
5-29
SPELIB Interface
SP_SRV_DECODE_INIT
This function must be called before any attempt is made to decode the stored
procedure request. This function sets up the environment object that allows decoding
of stored procedure requests in “server mode.”
env
input
is a pointer to the environment object STRUCT.
buffer
input
is a pointer to the data received from a READUPDATE call to $RECEIVE.
buffer-len
input
defines the length, in bytes, of the buffer.
The input of this function is a buffer read from $RECEIVE.
This function checks the SPELIB version. If the function returns an
SPELIB_VERSION_NOT_SUPPORTED error, the caller should return this error, as
well as the current SPELIB version (by calling the SPELIB function
SP_SRV_SET_CURRENT_VERSION), to the requester (the NonStop ODBC Server).
The requester should reissue the PATHSEND call with the SPELIB version supported
Note. If you are using the shell routines supplied with the sample Pathway server program,
this function is called on your behalf by the routine PROCESS_REQUEST; it must not be
called again.
short int SP_SRV_DECODE_INIT
( void * env
, char * buffer
, unsigned long int buffer-len
)