@ GNU AS assembler header file for Filter
@ Written by DefMod (Dec  9 2012) on Sun Dec  9 15:50:43 2012
@ Jonathan Coxhead, jonathan@doves.demon.co.uk, 17 May 1995

@ 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 Filter_Hdr
#  define Filter_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 Filter_NameLimit 0x28
#  define Filter_AllTasks 0x0

@Symbols for SWI's and SWI reason codes
.set XFilter_RegisterPreFilter,0x62640
.set Filter_RegisterPreFilter,0x42640
   @Entry
   @  R0 -> filter_name (String)
   @  R1 = code (pointer to code)
   @  R2 = handle (pointer to data)
   @  R3 = task (Wimp_T)

.set XFilter_RegisterPostFilter,0x62641
.set Filter_RegisterPostFilter,0x42641
   @Entry
   @  R0 -> filter_name (String)
   @  R1 = code (pointer to code)
   @  R2 = handle (pointer to data)
   @  R3 = task (Wimp_T)
   @  R4 = mask (Wimp_PollFlags)

.set XFilter_DeRegisterPreFilter,0x62642
.set Filter_DeRegisterPreFilter,0x42642
   @Entry
   @  R0 -> filter_name (String)
   @  R1 = code (pointer to code)
   @  R2 = handle (pointer to data)
   @  R3 = task (Wimp_T)

.set XFilter_DeRegisterPostFilter,0x62643
.set Filter_DeRegisterPostFilter,0x42643
   @Entry
   @  R0 -> filter_name (String)
   @  R1 = code (pointer to code)
   @  R2 = handle (pointer to data)
   @  R3 = task (Wimp_T)
   @  R4 = mask (Wimp_PollFlags)

.set XFilter_RegisterRectFilter,0x62644
.set Filter_RegisterRectFilter,0x42644
   @Entry
   @  R0 -> filter_name (String)
   @  R1 = code (pointer to code)
   @  R2 = handle (pointer to data)
   @  R3 = task (Wimp_T)

.set XFilter_DeRegisterRectFilter,0x62645
.set Filter_DeRegisterRectFilter,0x42645
   @Entry
   @  R0 -> filter_name (String)
   @  R1 = code (pointer to code)
   @  R2 = handle (pointer to data)
   @  R3 = task (Wimp_T)

.set XFilter_RegisterCopyFilter,0x62646
.set Filter_RegisterCopyFilter,0x42646
   @Entry
   @  R0 -> filter_name (String)
   @  R1 = code (pointer to code)
   @  R2 = handle (pointer to data)

.set XFilter_DeRegisterCopyFilter,0x62647
.set Filter_DeRegisterCopyFilter,0x42647
   @Entry
   @  R0 -> filter_name (String)
   @  R1 = code (pointer to code)
   @  R2 = handle (pointer to data)

.set XFilter_RegisterPostRectFilter,0x62648
.set Filter_RegisterPostRectFilter,0x42648
   @Entry
   @  R0 -> filter_name (String)
   @  R1 = code (pointer to code)
   @  R2 = handle (pointer to data)
   @  R3 = task (Wimp_T)

.set XFilter_DeRegisterPostRectFilter,0x62649
.set Filter_DeRegisterPostRectFilter,0x42649
   @Entry
   @  R0 -> filter_name (String)
   @  R1 = code (pointer to code)
   @  R2 = handle (pointer to data)
   @  R3 = task (Wimp_T)

.set XFilter_RegisterPostIconFilter,0x6264a
.set Filter_RegisterPostIconFilter,0x4264a
   @Entry
   @  R0 -> filter_name (String)
   @  R1 = code (pointer to code)
   @  R2 = handle (pointer to data)
   @  R3 = task (Wimp_T)

.set XFilter_DeRegisterPostIconFilter,0x6264b
.set Filter_DeRegisterPostIconFilter,0x4264b
   @Entry
   @  R0 -> filter_name (String)
   @  R1 = code (pointer to code)
   @  R2 = handle (pointer to data)
   @  R3 = task (Wimp_T)

#  define Service_FilterManagerInstalled 0x87
   @Entry
   @  R0 = version (Int)
   @  R1 = &87

#  define Service_FilterManagerDying 0x88
   @Entry
   @  R1 = &88

#endif
