@ GNU AS assembler header file for MimeMap
@ Written by DefMod (Dec  9 2012) on Sun Dec  9 15:46:01 2012
@ Tom Hughes, tom@compton.nu, 15 Feb 2000

@ 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 MimeMap_Hdr
#  define MimeMap_Hdr

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

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

@Symbols for constants
#  define MimeMap_FormatFiletype 0x0
#  define MimeMap_FormatFiletypeName 0x1
#  define MimeMap_FormatMIMEType 0x2
#  define MimeMap_FormatExtension 0x3
#  define MimeMap_FormatMac 0x4

@Symbols for structure offsets and sizes
        .struct 0
        .skip   Int
MimeMap_Format                 : 


@Symbols for SWI's and SWI reason codes
.set XMimeMap_Translate,0x70b00
.set MimeMap_Translate,0x50b00

#  define MimeMapTranslate_FileTypeToAnything 0x0
   @Entry
   @  R0 = &0
   @  R1 = file_type (Bits)
   @  R2 = output_format (MimeMap_Format)
   @  R3 = output (pointer to Char)

#  define MimeMapTranslate_AnythingToFileType 0x0
   @Entry
   @  R0 = input_format (MimeMap_Format)
   @  R1 -> input (Char)
   @  R2 = &0
   @Exit
   @  R3 = file_type (Bits)

#  define MimeMapTranslate_FiletypeToFiletypeName 0x0
   @Entry
   @  R0 = &0
   @  R1 = file_type (Bits)
   @  R2 = &1
   @  R3 = file_type_name (pointer to String)

#  define MimeMapTranslate_FiletypeToMIMEType 0x0
   @Entry
   @  R0 = &0
   @  R1 = file_type (Bits)
   @  R2 = &2
   @  R3 = mime_type (pointer to String)

#  define MimeMapTranslate_FiletypeToExtension 0x0
   @Entry
   @  R0 = &0
   @  R1 = file_type (Bits)
   @  R2 = &3
   @  R3 = extension (pointer to String)

#  define MimeMapTranslate_FiletypeNameToFiletype 0x1
   @Entry
   @  R0 = &1
   @  R1 -> file_type_name (String)
   @  R2 = &0
   @Exit
   @  R3 = file_type (Bits)

#  define MimeMapTranslate_FiletypeNameToMIMEType 0x1
   @Entry
   @  R0 = &1
   @  R1 -> file_type_name (String)
   @  R2 = &2
   @  R3 = mime_type (pointer to String)

#  define MimeMapTranslate_FiletypeNameToExtension 0x1
   @Entry
   @  R0 = &1
   @  R1 -> file_type_name (String)
   @  R2 = &3
   @  R3 = extension (pointer to String)

#  define MimeMapTranslate_MIMETypeToFiletype 0x2
   @Entry
   @  R0 = &2
   @  R1 -> mime_type (String)
   @  R2 = &0
   @Exit
   @  R3 = file_type (Bits)

#  define MimeMapTranslate_MIMETypeToFiletypeName 0x2
   @Entry
   @  R0 = &2
   @  R1 -> mime_type (String)
   @  R2 = &1
   @  R3 = file_type_name (pointer to String)

#  define MimeMapTranslate_MIMETypeToExtension 0x2
   @Entry
   @  R0 = &2
   @  R1 -> mime_type (String)
   @  R2 = &3
   @  R3 = extension (pointer to String)

#  define MimeMapTranslate_ExtensionToFiletype 0x3
   @Entry
   @  R0 = &3
   @  R1 -> extension (String)
   @  R2 = &0
   @Exit
   @  R3 = file_type (Bits)

#  define MimeMapTranslate_ExtensionToFiletypeName 0x3
   @Entry
   @  R0 = &3
   @  R1 -> extension (String)
   @  R2 = &1
   @  R3 = file_type_name (pointer to String)

#  define MimeMapTranslate_ExtensionToMIMEType 0x3
   @Entry
   @  R0 = &3
   @  R1 -> extension (String)
   @  R2 = &2
   @  R3 = mime_type (pointer to String)

#endif
