dc_mcf_tempput - Update temporary-stored data

Format

ANSI C, C++

#include <dcmcf.h>
int  dc_mcf_tempput(DCLONG action,char *putdata,DCLONG pdataleng,
                    char *resv01)

K&R C

#include <dcmcf.h>
int  dc_mcf_tempput (action, putdata, pdataleng, resv01)
DCLONG    action;
char      *putdata;
DCLONG    pdataleng;
char      *resv01;

Description

The function dc_mcf_tempput() updates data stored in the temporary-stored area which is used for continuous-inquiry-response processing.

Call the function dc_mcf_tempget() before the function dc_mcf_tempput().

The figure below shows the format of the send segment area. With buffer format 1, L is 8 bytes; with buffer format 2, L is 6 bytes.

[Figure]

Arguments whose values are set in the UAP

action

Specify the type of buffer format to be used.

{DCMCFBUF1|DCMCFBUF2}

DCMCFBUF1
Specify that buffer format 1 is used.
DCMCFBUF2
Specify that buffer format 2 is used.

putdata

Specify the area storing the temporary-stored data to be updated.

ptempleng

Specify the length of the temporary-stored data to be updated.

resv01

Specify a null character.

Return values

Return valueReturn value (numeric)Explanation
DCMCFRTN_000000Normal termination.
DCMCFRTN_71103-12103The area for updating the temporary-stored data could not be acquired.
DCMCFRTN_72000-13000The function dc_mcf_tempput() cannot be called from an SPP.
DCMCFRTN_72016-13016The value specified for action is invalid.
The value of the area pointed to by resv01 is not a null character.
DCMCFRTN_72035-13035The value specified for the data update length exceeds the value specified for the temporary data storage area length in the MCF application definition.
The value specified for the data update length is less than 1 byte.
DCMCFRTN_72101-13101The function dc_mcf_tempput() was called from an MHP for which type=cont (continuous-inquiry-response type) was not specified in the MCF application definition.
DCMCFRTN_72105-13105The function dc_mcf_tempput() was called before the function dc_mcf_tempget().
DCMCFRTN_72106-13106The function dc_mcf_tempput() was called before the function dc_mcf_receive() for receiving the first segment.
DCMCFRTN_72107-13107The function dc_mcf_tempput() was called after the function dc_mcf_contend().
Other than the aboveAn unprecedented error (e.g., program damage) occurred.