; Assembler header file for DDEUtils
; Written by DefMod (Dec  9 2012) on Sun Dec  9 15:43:59 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.

        [       :LNOT: :DEF: DDEUtils_Hdr
        GBLS    DDEUtils_Hdr

        [       :LNOT: :DEF: Get_Types
        GBLS    Get_Types
        ]
        [       :LNOT: :DEF: Types_Hdr
Get_Types                       SETS    "GET oslib/Types.Hdr"
        |
Get_Types                       SETS    ""
        ]
        $Get_Types

        [       :LNOT: :DEF: Get_OS
        GBLS    Get_OS
        ]
        [       :LNOT: :DEF: OS_Hdr
Get_OS                          SETS    "GET oslib/OS.Hdr"
        |
Get_OS                          SETS    ""
        ]
        $Get_OS

        [       :LNOT: :DEF: Get_Wimp
        GBLS    Get_Wimp
        ]
        [       :LNOT: :DEF: Wimp_Hdr
Get_Wimp                        SETS    "GET oslib/Wimp.Hdr"
        |
Get_Wimp                        SETS    ""
        ]
        $Get_Wimp

;Symbols for constants
DDEUtils_SeverityWarning        *       0
DDEUtils_SeverityError          *       1
DDEUtils_SeveritySeriousError   *       2
DDEUtils_ThrowbackProcessing    *       0
DDEUtils_ThrowbackErrorDetails  *       1
DDEUtils_ThrowbackInfoDetails   *       2
Error_DDEUtilsUnknownSWI        *       &20600
Error_DDEUtilsNoCLIBuffer       *       &20601
Error_DDEUtilsNotDesktop        *       &20602
Error_DDEUtilsNoTask            *       &20603
Error_DDEUtilsAlreadyRegistered *       &20604
Error_DDEUtilsNotRegistered     *       &20605
Message_DDEUtilsThrowbackStart  *       &42580
Message_DDEUtilsProcessingFile  *       &42581
Message_DDEUtilsErrorsIn        *       &42582
Message_DDEUtilsErrorDetails    *       &42583
Message_DDEUtilsThrowbackEnd    *       &42584
Message_DDEUtilsInfoForFile     *       &42585
Message_DDEUtilsInfoDetails     *       &42586

;Symbols for structure offsets and sizes
        ^       0
DDEUtils_MessageProcessingFile_file_name #       236*Char
DDEUtils_MessageProcessingFile  *       @

        ^       0
DDEUtils_MessageErrorsIn_file_name #       236*Char
DDEUtils_MessageErrorsIn        *       @

        ^       0
DDEUtils_MessageErrorDetails_line_no #       Int
DDEUtils_MessageErrorDetails_severity #       Int
DDEUtils_MessageErrorDetails_message #       228*Char
DDEUtils_MessageErrorDetails    *       @

        ^       0
DDEUtils_MessageInfoForFile_file_name #       236*Char
DDEUtils_MessageInfoForFile     *       @

        ^       0
DDEUtils_MessageInfoDetails_line_no #       Int
DDEUtils_MessageInfoDetails_severity #       Int
DDEUtils_MessageInfoDetails_message #       228*Char
DDEUtils_MessageInfoDetails     *       @

        ^       0
DDEUtils_FullMessageProcessingFile Wimp_MessageHeader_MEMBERS
DDEUtils_FullMessageProcessingFile_file_name #       236*Char
DDEUtils_FullMessageProcessingFile *       @

        ^       0
DDEUtils_FullMessageErrorsIn    Wimp_MessageHeader_MEMBERS
DDEUtils_FullMessageErrorsIn_file_name #       236*Char
DDEUtils_FullMessageErrorsIn    *       @

        ^       0
DDEUtils_FullMessageErrorDetails Wimp_MessageHeader_MEMBERS
DDEUtils_FullMessageErrorDetails_line_no #       Int
DDEUtils_FullMessageErrorDetails_severity #       Int
DDEUtils_FullMessageErrorDetails_message #       228*Char
DDEUtils_FullMessageErrorDetails *       @

        ^       0
DDEUtils_FullMessageInfoForFile Wimp_MessageHeader_MEMBERS
DDEUtils_FullMessageInfoForFile_file_name #       236*Char
DDEUtils_FullMessageInfoForFile *       @

        ^       0
DDEUtils_FullMessageInfoDetails Wimp_MessageHeader_MEMBERS
DDEUtils_FullMessageInfoDetails_line_no #       Int
DDEUtils_FullMessageInfoDetails_severity #       Int
DDEUtils_FullMessageInfoDetails_message #       228*Char
DDEUtils_FullMessageInfoDetails *       @


;Symbols for SWI's and SWI reason codes
XDDEUtils_Prefix                *       &62580
DDEUtils_Prefix                 *       &42580
   ;Entry
   ;  R0 -> dir_name (String)

XDDEUtils_SetCLSize             *       &62581
DDEUtils_SetCLSize              *       &42581
   ;Entry
   ;  R0 = size (Int)
   ;Exit
   ;  R0 corrupted

XDDEUtils_SetCL                 *       &62582
DDEUtils_SetCL                  *       &42582
   ;Entry
   ;  R0 -> tail (String)

XDDEUtils_GetCLSize             *       &62583
DDEUtils_GetCLSize              *       &42583
   ;Exit
   ;  R0 = size (Int)

XDDEUtils_GetCl                 *       &62584
DDEUtils_GetCl                  *       &42584
   ;Entry
   ;  R0 = tail (pointer to String)

XDDEUtils_ThrowbackRegister     *       &62585
DDEUtils_ThrowbackRegister      *       &42585
   ;Entry
   ;  R0 = task (Wimp_T)

XDDEUtils_ThrowbackUnRegister   *       &62586
DDEUtils_ThrowbackUnRegister    *       &42586
   ;Entry
   ;  R0 = task (Wimp_T)

XDDEUtils_ThrowbackStart        *       &62587
DDEUtils_ThrowbackStart         *       &42587

XDDEUtils_ThrowbackSend         *       &62588
DDEUtils_ThrowbackSend          *       &42588
   ;Entry
   ;  R0 = reason (Int)
   ;  R2 -> file_name (String)
   ;  R3 = line_no (Int)
   ;  R4 = severity (Int)
   ;  R5 -> message (String)
   ;Exit
   ;  R5 corrupted

XDDEUtils_ThrowbackEnd          *       &62589
DDEUtils_ThrowbackEnd           *       &42589
   ;Exit
   ;  R4 corrupted

XDDEUtils_ReadPrefix            *       &6258A
DDEUtils_ReadPrefix             *       &4258A

XDDEUtils_FlushCL               *       &6258B
DDEUtils_FlushCL                *       &4258B

        ]
        END
