@ GNU AS assembler header file for DDEUtils
@ Written by DefMod (Dec  9 2012) on Sun Dec  9 15:45:47 2012
@ Jonathan Coxhead, jonathan@doves.demon.co.uk, 8 Sept 1996

@ OSLib---efficient, type-safe, transparent, extensible,
@ register-safe API coverage of RISC OS
@ 
@ Copyright (c) 1994-2012 Jonathan Coxhead and OSLib maintainers
@ 
@ Licence:
@ 
@    OSLib is free software; you can redistribute it and/or modify
@ it under the terms of the GNU General Public License as published by
@ the Free Software Foundation; either version 1, or (at your option)
@ any later version - and this with the following clarification and
@ special exception:
@ 
@    Linking this library statically or dynamically with other modules
@ is making a combined work based on this library. Thus, the terms
@ and conditions of the GNU General Public License cover the whole
@ combination.
@ 
@    As a special exception, the copyright holders of this library
@ give you permission to link this library with independent modules
@ to produce an executable, regardless of the license terms of these
@ independent modules, and to copy and distribute the resulting
@ executable under terms of your choice, provided that you also meet,
@ for each linked independent module, the terms and conditions of the
@ license of that module. An independent module is a module which is
@ not derived from or based on this library. If you modify this
@ library, you may extend this exception to your version of the library,
@ but you are not obliged to do so. If you do not wish to do so, delete
@ this exception statement from your version.
@ 
@    OSLib is distributed in the hope that it will be useful,
@ but WITHOUT ANY WARRANTY; without even the implied warranty of
@ MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
@ GNU General Public License for more details.
@ 
@    You should have received a copy of the GNU General Public License
@ along with this programme; if not, write to the Free Software
@ Foundation, Inc, 675 Mass Ave, Cambridge, MA 02139, USA.

#ifndef DDEUtils_Hdr
#  define DDEUtils_Hdr

#  ifndef Get_Types
#    define Get_Types
#    include "oslib/Types.Hdr"
#  endif

#  ifndef Get_OS
#    define Get_OS
#    include "oslib/OS.Hdr"
#  endif

#  ifndef Get_Wimp
#    define Get_Wimp
#    include "oslib/Wimp.Hdr"
#  endif

@Symbols for constants
#  define DDEUtils_SeverityWarning 0x0
#  define DDEUtils_SeverityError 0x1
#  define DDEUtils_SeveritySeriousError 0x2
#  define DDEUtils_ThrowbackProcessing 0x0
#  define DDEUtils_ThrowbackErrorDetails 0x1
#  define DDEUtils_ThrowbackInfoDetails 0x2
#  define Error_DDEUtilsUnknownSWI 0x20600
#  define Error_DDEUtilsNoCLIBuffer 0x20601
#  define Error_DDEUtilsNotDesktop 0x20602
#  define Error_DDEUtilsNoTask 0x20603
#  define Error_DDEUtilsAlreadyRegistered 0x20604
#  define Error_DDEUtilsNotRegistered 0x20605
#  define Message_DDEUtilsThrowbackStart 0x42580
#  define Message_DDEUtilsProcessingFile 0x42581
#  define Message_DDEUtilsErrorsIn 0x42582
#  define Message_DDEUtilsErrorDetails 0x42583
#  define Message_DDEUtilsThrowbackEnd 0x42584
#  define Message_DDEUtilsInfoForFile 0x42585
#  define Message_DDEUtilsInfoDetails 0x42586

@Symbols for structure offsets and sizes
        .struct 0
DDEUtils_MessageProcessingFile_file_name: .skip   236*Char
DDEUtils_MessageProcessingFile : 

        .struct 0
DDEUtils_MessageErrorsIn_file_name: .skip   236*Char
DDEUtils_MessageErrorsIn       : 

        .struct 0
DDEUtils_MessageErrorDetails_line_no: .skip   Int
DDEUtils_MessageErrorDetails_severity: .skip   Int
DDEUtils_MessageErrorDetails_message: .skip   228*Char
DDEUtils_MessageErrorDetails   : 

        .struct 0
DDEUtils_MessageInfoForFile_file_name: .skip   236*Char
DDEUtils_MessageInfoForFile    : 

        .struct 0
DDEUtils_MessageInfoDetails_line_no: .skip   Int
DDEUtils_MessageInfoDetails_severity: .skip   Int
DDEUtils_MessageInfoDetails_message: .skip   228*Char
DDEUtils_MessageInfoDetails    : 

        .struct 0
        Wimp_MessageHeader_MEMBERS DDEUtils_FullMessageProcessingFile
DDEUtils_FullMessageProcessingFile_file_name: .skip   236*Char
DDEUtils_FullMessageProcessingFile: 

        .struct 0
        Wimp_MessageHeader_MEMBERS DDEUtils_FullMessageErrorsIn
DDEUtils_FullMessageErrorsIn_file_name: .skip   236*Char
DDEUtils_FullMessageErrorsIn   : 

        .struct 0
        Wimp_MessageHeader_MEMBERS DDEUtils_FullMessageErrorDetails
DDEUtils_FullMessageErrorDetails_line_no: .skip   Int
DDEUtils_FullMessageErrorDetails_severity: .skip   Int
DDEUtils_FullMessageErrorDetails_message: .skip   228*Char
DDEUtils_FullMessageErrorDetails: 

        .struct 0
        Wimp_MessageHeader_MEMBERS DDEUtils_FullMessageInfoForFile
DDEUtils_FullMessageInfoForFile_file_name: .skip   236*Char
DDEUtils_FullMessageInfoForFile: 

        .struct 0
        Wimp_MessageHeader_MEMBERS DDEUtils_FullMessageInfoDetails
DDEUtils_FullMessageInfoDetails_line_no: .skip   Int
DDEUtils_FullMessageInfoDetails_severity: .skip   Int
DDEUtils_FullMessageInfoDetails_message: .skip   228*Char
DDEUtils_FullMessageInfoDetails: 


@Symbols for SWI's and SWI reason codes
.set XDDEUtils_Prefix,0x62580
.set DDEUtils_Prefix,0x42580
   @Entry
   @  R0 -> dir_name (String)

.set XDDEUtils_SetCLSize,0x62581
.set DDEUtils_SetCLSize,0x42581
   @Entry
   @  R0 = size (Int)
   @Exit
   @  R0 corrupted

.set XDDEUtils_SetCL,0x62582
.set DDEUtils_SetCL,0x42582
   @Entry
   @  R0 -> tail (String)

.set XDDEUtils_GetCLSize,0x62583
.set DDEUtils_GetCLSize,0x42583
   @Exit
   @  R0 = size (Int)

.set XDDEUtils_GetCl,0x62584
.set DDEUtils_GetCl,0x42584
   @Entry
   @  R0 = tail (pointer to String)

.set XDDEUtils_ThrowbackRegister,0x62585
.set DDEUtils_ThrowbackRegister,0x42585
   @Entry
   @  R0 = task (Wimp_T)

.set XDDEUtils_ThrowbackUnRegister,0x62586
.set DDEUtils_ThrowbackUnRegister,0x42586
   @Entry
   @  R0 = task (Wimp_T)

.set XDDEUtils_ThrowbackStart,0x62587
.set DDEUtils_ThrowbackStart,0x42587

.set XDDEUtils_ThrowbackSend,0x62588
.set DDEUtils_ThrowbackSend,0x42588
   @Entry
   @  R0 = reason (Int)
   @  R2 -> file_name (String)
   @  R3 = line_no (Int)
   @  R4 = severity (Int)
   @  R5 -> message (String)
   @Exit
   @  R5 corrupted

.set XDDEUtils_ThrowbackEnd,0x62589
.set DDEUtils_ThrowbackEnd,0x42589
   @Exit
   @  R4 corrupted

.set XDDEUtils_ReadPrefix,0x6258a
.set DDEUtils_ReadPrefix,0x4258a

.set XDDEUtils_FlushCL,0x6258b
.set DDEUtils_FlushCL,0x4258b

#endif
