/*++
*******************************************************************************
* 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:

   PPPcall.h

Abstract:

   Call control management public routines.

Author:

   Michael Zarns

--*/

#ifndef ISDNCALL_H
#define ISDNCALL_H

PDIGI_PPP_CALL PPPCallConstruct( IN PDIGI_PPP_ADAPTER pAdapter,
                              IN ULONG         iLine );
#define DIGI_PPP_LINE_ANY 0xFFFFFFFF

VOID PPPCallDestruct( IN PDIGI_PPP_CALL pCall );

NTSTATUS PPPCallMgrThreadStart( IN PDIGI_PPP_ADAPTER pAdapter );

VOID PPPCallMgrThreadStop( IN PDIGI_PPP_ADAPTER pAdapter );

NTSTATUS PPPCallDial( IN PDIGI_PPP_ADAPTER pAdapter,
                       IN HDRV_LINE     hdLine,
                       IN HTAPI_CALL    htCall,
							  IN ULONG         MediaMode,
							  IN ULONG         BearerMode,
                       IN PCHAR        pDestAddr,
                       IN ULONG         cbDestAddr,
                       OUT PDIGI_PPP_CALL   *ppCall );

NTSTATUS PPPCallOffer( IN PDIGI_PPP_CALL pAdapter );

NTSTATUS PPPCallAnswer( IN PDIGI_PPP_CALL pCall );

NTSTATUS PPPCallDrop( IN PDIGI_PPP_CALL pCall );

NTSTATUS PPPCallCloseCall( IN PDIGI_PPP_CALL pCall );

NTSTATUS PPPCallClose( IN PDIGI_PPP_CALL pCall );

NTSTATUS PPPCallSend( IN PDIGI_PPP_CALL       pCall, 
                       IN PNDIS_WAN_PACKET pPacket );

VOID PPPCallOnConnect( IN PVOID          pOwner,
                        IN ULONG          Controller,
                        IN ULONG          Channel,
                        IN DIGI_PPP_CONN_TYPE ConnType );

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

VOID PPPCallOnCActive( IN PVOID pOwner );

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

VOID PPPCallOnConnend( IN PVOID pOwner);

VOID PPPCallOnListen( IN PVOID pOwner );

VOID PPPCallOnData( IN PVOID pOwner,
                     IN PVOID pData, 
                     IN ULONG cbData );

#endif
