/*
 * Created by cmhg vsn 5.42 [01 Mar 2002]
 */

#ifndef __cmhg_PDumperAF_h
#define __cmhg_PDumperAF_h

#ifndef __kernel_h
#include "kernel.h"
#endif

#define CMHG_VERSION 542

#define Module_Title                     "PDumperAF"
#define Module_Help                      "PDumperAF"
#define Module_VersionString             "0.01"
#define Module_VersionNumber             1
#ifndef Module_Date
#define Module_Date                      "23 Oct 2002"
#endif


/*
 * Initialisation code
 * ===================
 *
 * Return NULL if your initialisation succeeds; otherwise return a pointer
 * to an error block. cmd_tail points to the string of arguments with which
 * the module is invoked (may be "", and is control-terminated, not zero
 * terminated).
 * podule_base is 0 unless the code has been invoked from a podule.
 * pw is the 'R12' value established by module initialisation. You may
 * assume nothing about its value (in fact it points to some RMA space
 * claimed and used by the module veneers). All you may do is pass it back
 * for your module veneers via an intermediary such as SWI OS_CallEvery
 * (use _swix() to issue the SWI call).
 */
_kernel_oserror *PDumperAF_initialise(const char *cmd_tail, int podule_base, void *pw);


/*
 * Service call handler
 * ====================
 *
 * Return values should be poked directly into r->r[n]; the right
 * value/register to use depends on the service number (see the relevant
 * RISC OS Programmer's Reference Manual section for details).
 * pw is the private word (the 'R12' value).
 */
void PDumperAF_service(int service_number, _kernel_swi_regs *r, void *pw);

#endif
