Commit 997ad198 authored by Robert Sprowson's avatar Robert Sprowson Committed by ROOL
Browse files

Update to use Dialler exports

Delete local copy of Dialler header, rename subtle differences between the two.
Built binary identical. Not tested.

Version 2.18. Tagged as 'Browse-2_18'
parent 304956a0
/* (2.17)
/* (2.18)
*
* This file is automatically maintained by srccommit, do not edit manually.
*
*/
#define Module_MajorVersion_CMHG 2.17
#define Module_MinorVersion_CMHG
#define Module_Date_CMHG 11 Jan 2020
#define Module_MajorVersion_CMHG 2.18
#define Module_MinorVersion_CMHG
#define Module_Date_CMHG 02 May 2020
#define Module_MajorVersion "2.17"
#define Module_Version 217
#define Module_MajorVersion "2.18"
#define Module_Version 218
#define Module_MinorVersion ""
#define Module_Date "11 Jan 2020"
#define Module_Date "02 May 2020"
#define Module_ApplicationDate "11-Jan-20"
#define Module_ApplicationDate "02-May-20"
#define Module_ComponentName "Browse"
#define Module_FullVersion "2.17"
#define Module_HelpVersion "2.17 (11 Jan 2020)"
#define Module_LibraryVersionInfo "2:17"
#define Module_FullVersion "2.18"
#define Module_HelpVersion "2.18 (02 May 2020)"
#define Module_LibraryVersionInfo "2:18"
......@@ -2723,7 +2723,7 @@ _kernel_oserror * toolbars_update_dialler_status(browser_data * b)
e = _swix(Dialler_Status,
_INR(0,2) | _OUT(0),
Dialler_Status_StatusString,
Dialler_Status_String,
statstr,
sizeof(statstr),
......@@ -2736,7 +2736,7 @@ _kernel_oserror * toolbars_update_dialler_status(browser_data * b)
statstr[sizeof(statstr) - 1] = 0;
if (status & Dialler_StatusChanged)
if (status & Dialler_StatusStringChanged)
{
/* Use the status string. Put the text in the 'tokens' messages buffer */
/* as this is used lower down for the actual dialler status display */
......
/* Copyright 1997 Acorn Computers Ltd
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
/* File: dialler.h
* Purpose: Interface to Dialler SWIs, status codes etc.
* Author: B Laughton
* History: 07-Feb-1997 (BAL): Created
* 25-Feb-1997 (BAL): Added reason code masks courtesy of AH; added R0
* bit mask for entry to SWI Dialler_Status
* 23-May-2000 (ADH): Removed Service_DiallerStatus as Service_Dialler
# is in Services.h now
*/
#ifndef dialler_h
#define dialler_h
/* =============================================================================
* Include header files
*/
/* CLib */
#include <kernel.h>
/* =============================================================================
* Define contants
*/
#ifndef Dialler_Dial
#define Dialler_Dial 0x04c6c0
#define Dialler_HangUp 0x04c6c1
#define Dialler_Status 0x04c6c2
#define Dialler_Answering 0x04c6c3
#define Dialler_Configure 0x04c6c4
#define Dialler_Register 0x04c6c5
#define Dialler_Arbitrate 0x04c6c6
#define Dialler_Timeout 0x04c6c7
#define Dialler_ResetCounter 0x04c6c8
#endif
/* Bit masks for r0 flags word on entry to SWI Dialler_Status */
#define Dialler_Status_ConnectTime (1u<<0)
#define Dialler_Status_StatusString (1u<<1)
/* SWI Dialler_Arbitrate entry and exit values */
#define Dialler_Arbitrate_RequestIOAccess 0
#define Dialler_Arbitrate_RelinquishAccess 1
#define Dialler_IOAccessGranted_BlockDrivers 0
#define Dialler_IOAccessGranted_DualSerial 1
#define Dialler_IOAccessDenied_ActiveClient 64
#define Dialler_IOAccessDenied_NotConnected 65
/* Reason code masks */
#define Dialler_MajorReasonCodeMask 0xffff0000
#define Dialler_MinorReasonCodeMask 0x0000ff00
#define Dialler_GeneralInfoMask 0x000000ff
/* Major reason code (top two bytes of status word) */
#define Dialler_StateChanged 0x00010000
#define Dialler_LineDropped 0x00020000
#define Dialler_StatusChanged 0x00040000
/* Minor reason code (2nd byte of status word) */
#define Dialler_ConnectedFlagsMask 0x00000300
#define Dialler_Disconnected 0x00000000
#define Dialler_Connected 0x00000200
#define Dialler_ConnectedOutgoing 0x00000200
#define Dialler_ConnectedIncoming 0x00000300
#define Dialler_RelinquishAccess 0x00000400
#define Dialler_DiallerDroppedLine 0x00000000
#define Dialler_RemoteDroppedLine 0x00000800
/* General info (1st byte of status word) */
enum
{
Dialler_ExecutingScript_Dial = 1,
Dialler_ExecutingScript_Hangup,
Dialler_ExecutingScript_Answer,
Dialler_AbortedScript_Syntax,
Dialler_AbortedScript_Timeout,
Dialler_AbortedScript_NoCarrier,
Dialler_AbortedScript_Error,
Dialler_AbortedScript_NoDialtone,
Dialler_AbortedScript_Busy,
Dialler_AbortedScript_NoAnswer
};
#endif
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment