/*++
*******************************************************************************
* Copyright (c) 1990-98 Digi International Inc., All Rights Reserved				*
* 																										*
* This software contains proprietary and confidential information of Digi		*
* International Inc.  By accepting transfer of this copy, Recipient agrees		*
* to retain this software in confidence, to prevent disclosure to others,		*
* and to make no use of this software other than that for which it was			*
* delivered.  This is an unpublished copyrighted work of Digi International	*
* Inc.  Except as permitted by federal law, 17 USC 117, copying is strictly	*
* prohibited.																						*
* 																										*
* Restricted Rights Legend																		*
*																										*
* Use, duplication, or disclosure by the Government is subject to					*
* restrictions set forth in sub-paragraph (c)(1)(ii) of The Rights in			*
* Technical Data and Computer Software clause at DFARS 252.227-7031 or			*
* subparagraphs (c)(1) and (2) of the Commercial Computer Software -				*
* Restricted Rights at 48 CFR 52.227-19, as applicable.								*
*																										*
* Digi International Inc. 11001 Bren Road East, Minnetonka, MN 55343				*
*																										*
*******************************************************************************

Module Name:

   X25call.h

Abstract:

   Call control management public routines.

Author:

   Michael Zarns

--*/

#ifndef ISDNCALL_H
#define ISDNCALL_H

PX25_CALL X25CallConstruct( IN PX25_ADAPTER pAdapter,
                              IN ULONG         iLine );
#define X25_LINE_ANY 0xFFFFFFFF

VOID X25CallDestruct( IN PX25_CALL pCall );

NTSTATUS X25CallMgrThreadStart( IN PX25_ADAPTER pAdapter );

VOID X25CallMgrThreadStop( IN PX25_ADAPTER pAdapter );

NTSTATUS X25CallDial( IN PX25_ADAPTER pAdapter,
                       IN HDRV_LINE     hdLine,
                       IN HTAPI_CALL    htCall,
                       IN ULONG         MediaMode,
                       IN ULONG         BearerMode,
                       IN ULONG         MinRate,
                       IN ULONG         MaxRate,
                       IN PCHAR        pDestAddr,
                       IN ULONG         cbDestAddr,
                       OUT PX25_CALL   *ppCall );

NTSTATUS X25CallOffer( IN PX25_CALL pAdapter );

NTSTATUS X25CallAnswer( IN PX25_CALL pCall );

NTSTATUS X25CallDrop( IN PX25_CALL pCall );

NTSTATUS X25CallCloseCall( IN PX25_CALL pCall );

NTSTATUS X25CallClose( IN PX25_CALL pCall );

NTSTATUS X25CallSend( IN PX25_CALL       pCall, 
                       IN PNDIS_WAN_PACKET pPacket );

VOID X25CallOnConnect( IN PVOID          pOwner,
                        IN PVOID pControl ,
                        IN PVOID pData);

VOID X25CallOnConnack( IN PVOID pOwner,
                        IN ULONG Controller,
                        IN ULONG Channel );

VOID X25CallOnCActive( IN PVOID pOwner );

VOID X25CallOnDisconn( IN PVOID pOwner,  
                        IN ULONG Controller,
                        IN ULONG Channel );

VOID X25CallOnConnend( IN PVOID pOwner,
                        IN ULONG Controller,
                        IN ULONG Channel );

VOID X25CallOnListen( IN PVOID pOwner );

VOID X25CallOnData( IN PVOID pOwner,
					 IN PVOID  pControl,
					 IN ULONG cbControl,
                     IN PVOID pData, 
                     IN ULONG cbData );

#endif
