; Assembler header file for ExtEdit
; Written by DefMod (Dec  9 2012) on Sun Dec  9 15:44:04 2012
; Tom Hughes, tom@compton.nu, 28 Oct 2001

; 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: ExtEdit_Hdr
        GBLS    ExtEdit_Hdr

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

;Symbols for constants
Message_ExtEditRq               *       &45D80
Message_ExtEditAck              *       &45D81
Message_ExtEditReturn           *       &45D82
Message_ExtEditAbort            *       &45D83
Message_ExtEditDataSave         *       &45D84
Message_ExtEditCursor           *       &45D85
ExtEdit_FileType                *       &FFFF
ExtEdit_SubType                 *       &FFFF0000
ExtEdit_SubTypeShift            *       16
ExtEdit_ClientHandle            *       &FFFF
ExtEdit_EditorHandle            *       &FFFF0000
ExtEdit_EditorHandleShift       *       16
ExtEdit_ContinueEditing         *       &1
ExtEdit_SelectionOnly           *       &2
ExtEdit_ReadOnly                *       &4
ExtEdit_ImmediateExecution      *       &8
ExtEdit_AdjustSelection         *       &10
ExtEdit_BeforeStart             *       0
ExtEdit_AfterEnd                *       -2
ExtEdit_NoChange                *       -1

;Symbols for structure offsets and sizes
        ^       0
        #       Bits
ExtEdit_DataType                *       @

        ^       0
        #       Bits
ExtEdit_JobHandle               *       @

        ^       0
        #       Bits
ExtEdit_Flags                   *       @

        ^       0
ExtEdit_MessageRq_data_type     #       ExtEdit_DataType
ExtEdit_MessageRq_job_handle    #       ExtEdit_JobHandle
ExtEdit_MessageRq_flags         #       ExtEdit_Flags
ExtEdit_MessageRq_parent_name   #       20*Char
ExtEdit_MessageRq_leaf_name     #       204*Char
ExtEdit_MessageRq               *       @

        ^       0
ExtEdit_MessageAck_data_type    #       ExtEdit_DataType
ExtEdit_MessageAck_job_handle   #       ExtEdit_JobHandle
ExtEdit_MessageAck_flags        #       ExtEdit_Flags
ExtEdit_MessageAck              *       @

        ^       0
ExtEdit_MessageReturn_data_type #       ExtEdit_DataType
ExtEdit_MessageReturn_job_handle #       ExtEdit_JobHandle
ExtEdit_MessageReturn_flags     #       ExtEdit_Flags
ExtEdit_MessageReturn           *       @

        ^       0
ExtEdit_MessageAbort_reserved   #       4*Byte
ExtEdit_MessageAbort_job_handle #       ExtEdit_JobHandle
ExtEdit_MessageAbort            *       @

        ^       0
ExtEdit_MessageDataSave_job_handle #       ExtEdit_JobHandle
ExtEdit_MessageDataSave_reserved #       12*Byte
ExtEdit_MessageDataSave_est_size #       Int
ExtEdit_MessageDataSave_file_type #       Bits
ExtEdit_MessageDataSave_file_name #       212*Char
ExtEdit_MessageDataSave         *       @

        ^       0
ExtEdit_MessageCursor_reserved  #       4*Byte
ExtEdit_MessageCursor_job_handle #       ExtEdit_JobHandle
ExtEdit_MessageCursor_flags     #       ExtEdit_Flags
ExtEdit_MessageCursor_new_cursor_pos #       Int
ExtEdit_MessageCursor_new_sos_pos #       Int
ExtEdit_MessageCursor_new_eos_pos #       Int
ExtEdit_MessageCursor_old_cursor_pos #       Int
ExtEdit_MessageCursor_old_sos_pos #       Int
ExtEdit_MessageCursor_old_eos_pos #       Int
ExtEdit_MessageCursor           *       @


        ]
        END
