; ImageFileRender - module header, for RISC OS 64.
;
; An implementation of the ImageFileRender API written from the published
; specification (the original module, Charles Ferguson 1999-2009, was a
; RISC OS Select component, 26-bit only). The SWI chunk, flags, block
; layouts and error numbers are the specification's, because existing
; clients call them unchanged. No code was taken from, or derived from,
; the original binaries.
;
; Copyright (c) RISC OS Technologies 2026. MIT licence - see LICENSE.
; Thanks to Charles Ferguson (Gerph); updated by the RISC OS One Project.

#include "Global/RISCOS.h"
#include "Global/Services.h"
#include "../VersionNum"

initialisation-code:	ifr_init

finalisation-code:	ifr_final

; Service_ModulePostFinal, so a renderer whose module was killed without
; deregistering does not leave entry points behind.
service-call-handler:	ifr_service &DB

title-string:		ImageFileRender

help-string:		ImageFileRender\tModule_MajorVersion_CMHG

date-string:		Module_Date_CMHG

; The allocated chunk for this API. Clients hard-code these, so they are
; not ours to choose.
swi-chunk-base-number:	0x562C0

swi-handler-code:	ifr_swi

swi-decoding-table:	ImageFileRender,
			Render, BBox, Transform, DeclareFonts, Info,
			RendererInfo, Register, Deregister, EnumerateRenderers

command-keyword-table:	ifr_commands
	ImageFileRenderers( min-args:0, max-args:0,
		international:,
		help-text: "HIFRLIST",
		invalid-syntax: "SIFRLIST" ),
	ImageFileViewer( min-args:1, max-args:2,
		international:,
		help-text: "HIFRVIEW",
		invalid-syntax: "SIFRVIEW" )

international-help-file:	"Resources:$.Resources.ImageFileRender.Messages"
