/****************************************************************************/
/*     Copyright (C) Siemens AG 1998  All Rights Reserved.                  */
/****************************************************************************/
/*                                                                          */
/*  version: @(#1)SAPI_S7_B.H    V 1.00                                     */
/*  BlockFunctions for SAPI DLL                                             */
/*  This header file contains all defines, typedefinitions and prototypings */
/*  for using the S7 library of Siemens AG. It is the only file that must   */
/*  be included in all source files of user applications that use S7        */
/*  calls.                                                                  */
/*                                                                          */
/*  For standard calling convention use define S732STD_DLL.                 */
/*                                                                          */
/****************************************************************************/

#ifndef SAPI_S7_B
#define SAPI_S7_B


int32  S7_FAR_PASCAL s7_bsend_req( ord32 cp_descr, ord16 cref, ord16 orderid, 
                        ord32 r_id, void *buffer_ptr, ord32 buffer_len);

int32  S7_FAR_PASCAL s7_get_bsend_cnf(void);

int32  S7_FAR_PASCAL s7_brcv_init(ord32 cp_descr, ord16 cref, ord32 r_id);

int32  S7_FAR_PASCAL s7_get_brcv_ind(void *buffer_ptr, ord32 buffer_len, 
                        ord32 *r_id_ptr, ord32 *rec_buffer_len_ptr);

int32  S7_FAR_PASCAL s7_brcv_stop(ord32 cp_descr, ord16 cref, ord32 r_id);

#define S7_BSEND_CNF						201
#define S7_BRCV_IND							202
#define S7_BSEND_IND						203

#endif
 
/****************************************************************************/
/*     Copyright (C) Siemens AG 1998  All Rights Reserved.                  */
/****************************************************************************/
