ODBC Server Reference Manual
Stored Procedures
HP NonStop ODBC Server Reference Manual—429151-002
5-48
Shell Routines Interface
, char *buffer
, short int *reply_err
);
encode_init
extern
/*_____________________________________________________________________
This function initializes the output buffer for server encode.
env: IN: pointer to SPELIB environment object
max_len: IN: the maximum output buffer size in bytes
buffer: IN/OUT: pointer to the output buffer
reply_err: IN/OUT: pointer to the reply error
Returns: if successful -- SPELIB_OK
else -- an SPELIB error
___________________________________________________________________*/
short int encode_init( void *env
, unsigned long int max_len
, char *buffer
, short int *reply_err
);
encode_output_params
extern
/*_____________________________________________________________________
This function encodes an output parameter SQLDA struct into the
output buffer. If it detects an SPELIB_BUFFER_OVERFLOW condition,
it will invoke the CALL-BACK facility.
env: IN: pointer to SPELIB environment object
max_len: IN: the maximum output buffer size in bytes
SQLDA: IN: pointer to SQLDA struct containing the params
buffer: IN/OUT: pointer to the output buffer
reply_err: IN/OUT: pointer to the reply error
Returns: if successful -- SPELIB_OK
else -- an SPELIB error
___________________________________________________________________*/
short int encode_output_params( void *env
, unsigned long int max_len
, void *SQLDA
, char *buffer
, short int *reply_err
);
encode_printmsg
extern
/*_____________________________________________________________________
This function encodes a printmsg message into the output buffer. If
it detects an SPELIB_BUFFER_OVERFLOW condition, it will invoke the
CALL-BACK facility.
env: IN: pointer to SPELIB environment object
max_len: IN: the maximum output buffer size in bytes
msg_len: IN: the printmsg text length in bytes
msg_text: IN: pointer to the printmsg text buffer
buffer: IN/OUT: pointer to the output buffer